summaryrefslogtreecommitdiff
path: root/templates/default/flumotion/http-stream.xml.j2
blob: d0cce339a7705258b826e615b4234b7095a8209b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
    <component name="{{ name }}"
               type="http-streamer"
               label="{{ component.desc }}"
               worker="{{ component.worker }}"
               project="flumotion"
               version="{{ globals.version }}">
        <eater name="default">
          <feed alias="default">{{ component.feeder }}</feed>
        </eater>
%% if component.plugs is defined
        <plugs>
%%   for name, value in component.plugs.items()
%%     if name == 'rrd'
          <plug socket="flumotion.component.plugs.rrd.ComponentRRDPlug" type="component-rrd">
            <property name="clients-connected-file">{{ value.clients }}</property>
            <property name="bytes-transferred-file">{{ value.bytes }}</property>
          </plug>
%%     endif
%%     if name == 'sfive'
          <plug socket="flumotion.component.plugs.s5.ComponentSFivePlug" type="component-s5">
%%       for name, value in value.items()
%%         if name != 'tags'
            <property name="{{ name }}">{{ value }}</property>
%%         else
            <property name="tags">{{ value|join(', ') }}</property>
%%         endif
%%       endfor
          </plug>
%%     endif
%%   endfor
        </plugs>
%% endif
%% for name, value in component.properties.items()
%%   if name != 'samplerate'
        <property name="{{ name }}">{{ value }}</property>
%%   endif
%% endfor
        <clock-master>false</clock-master>
    </component>