Commit 0bef566
Robert McNamara
Capture API: Add methods to query configured capture devices.
Also, disambiguate some capture API arguments (Id -> CardId and CardInputId)
Adds the following APIs:
==GetCaptureCardList==
* Returns a list of configured capture devices using the CaptureCardList data contract.
* Takes optional arguments CardType and HostName to filter by those two criteria, otherwise return all capture devices.
Usage:
http://BackendServerIP:6544/Capture/GetCaptureCardList?CardType=HDHOMERUN&HostName=myhost
Return:
<CaptureCardList version="1.0" serializerVersion="1.1">
<CaptureCards>
<CaptureCard>
<CardId>3</CardId>
<VideoDevice>12345678-0</VideoDevice>
<AudioDevice/>
<VBIDevice/>
<CardType>HDHOMERUN</CardType>
<DefaultInput>MPEG2TS</DefaultInput>
<AudioRateLimit>0</AudioRateLimit>
<HostName>myhost</HostName>
<DVBSWFilter>0</DVBSWFilter>
<DVBSatType>0</DVBSatType>
<DVBWaitForSeqStart>true</DVBWaitForSeqStart>
<SkipBTAudio>false</SkipBTAudio>
<DVBOnDemand>false</DVBOnDemand>
<DVBDiSEqCType>0</DVBDiSEqCType>
<FirewireSpeed>0</FirewireSpeed>
<FirewireModel/>
<FirewireConnection>0</FirewireConnection>
<SignalTimeout>1000</SignalTimeout>
<ChannelTimeout>3000</ChannelTimeout>
<DVBTuningDelay>0</DVBTuningDelay>
<Contrast>0</Contrast>
<Brightness>0</Brightness>
<Colour>0</Colour>
<Hue>0</Hue>
<DiSEqCId>0</DiSEqCId>
<DVBEITScan>true</DVBEITScan>
</CaptureCard>
</CaptureCards>
</CaptureCardList>
==GetCaptureCard==
* Returns a single Capture Device, by cardid, using the CaptureCard data contract.
* Takes mandatory argument CardId.
Usage:
http://BackendServerIP:6544/Capture/GetCaptureCard?CardId=1
Return:
<CaptureCard version="1.0" serializerVersion="1.1">
<CardId>1</CardId>
<VideoDevice>/dev/dvb/adapter0/frontend0</VideoDevice>
<AudioDevice/>
<VBIDevice/>
<CardType>DVB</CardType>
<DefaultInput>DVBInput</DefaultInput>
<AudioRateLimit>0</AudioRateLimit>
<HostName>myhost</HostName>
<DVBSWFilter>0</DVBSWFilter>
<DVBSatType>0</DVBSatType>
<DVBWaitForSeqStart>true</DVBWaitForSeqStart>
<SkipBTAudio>false</SkipBTAudio>
<DVBOnDemand>false</DVBOnDemand>
<DVBDiSEqCType>0</DVBDiSEqCType>
<FirewireSpeed>0</FirewireSpeed>
<FirewireModel/>
<FirewireConnection>0</FirewireConnection>
<SignalTimeout>500</SignalTimeout>
<ChannelTimeout>3000</ChannelTimeout>
<DVBTuningDelay>0</DVBTuningDelay>
<Contrast>0</Contrast>
<Brightness>0</Brightness>
<Colour>0</Colour>
<Hue>0</Hue>
<DiSEqCId>0</DiSEqCId>
<DVBEITScan>true</DVBEITScan>
</CaptureCard>1 parent d0742ba commit 0bef566
File tree
5 files changed
+189
-26
lines changed- mythtv
- libs/libmythservicecontracts
- datacontracts
- services
- programs/mythbackend/services
5 files changed
+189
-26
lines changedLines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
66 | | - | |
| 67 | + | |
67 | 68 | | |
68 | 69 | | |
| 70 | + | |
69 | 71 | | |
70 | 72 | | |
71 | 73 | | |
| |||
100 | 102 | | |
101 | 103 | | |
102 | 104 | | |
103 | | - | |
| 105 | + | |
104 | 106 | | |
105 | 107 | | |
106 | 108 | | |
| |||
Lines changed: 10 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
76 | 81 | | |
77 | 82 | | |
78 | 83 | | |
| |||
100 | 105 | | |
101 | 106 | | |
102 | 107 | | |
103 | | - | |
| 108 | + | |
104 | 109 | | |
105 | 110 | | |
106 | 111 | | |
107 | 112 | | |
108 | 113 | | |
109 | | - | |
| 114 | + | |
110 | 115 | | |
111 | 116 | | |
112 | 117 | | |
| |||
122 | 127 | | |
123 | 128 | | |
124 | 129 | | |
125 | | - | |
| 130 | + | |
126 | 131 | | |
127 | 132 | | |
128 | 133 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
| 41 | + | |
41 | 42 | | |
42 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
43 | 196 | | |
44 | 197 | | |
45 | | - | |
| 198 | + | |
46 | 199 | | |
47 | 200 | | |
48 | 201 | | |
| |||
96 | 249 | | |
97 | 250 | | |
98 | 251 | | |
99 | | - | |
| 252 | + | |
100 | 253 | | |
101 | 254 | | |
102 | 255 | | |
103 | | - | |
| 256 | + | |
104 | 257 | | |
105 | 258 | | |
106 | | - | |
| 259 | + | |
107 | 260 | | |
108 | 261 | | |
109 | 262 | | |
110 | 263 | | |
111 | | - | |
| 264 | + | |
112 | 265 | | |
113 | | - | |
| 266 | + | |
114 | 267 | | |
115 | 268 | | |
116 | | - | |
| 269 | + | |
117 | 270 | | |
118 | 271 | | |
119 | 272 | | |
| |||
144 | 297 | | |
145 | 298 | | |
146 | 299 | | |
147 | | - | |
| 300 | + | |
148 | 301 | | |
149 | 302 | | |
150 | 303 | | |
151 | | - | |
| 304 | + | |
152 | 305 | | |
153 | 306 | | |
154 | | - | |
| 307 | + | |
155 | 308 | | |
156 | 309 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
41 | 46 | | |
42 | 47 | | |
43 | 48 | | |
| |||
65 | 70 | | |
66 | 71 | | |
67 | 72 | | |
68 | | - | |
| 73 | + | |
69 | 74 | | |
70 | 75 | | |
71 | 76 | | |
72 | 77 | | |
73 | 78 | | |
74 | | - | |
| 79 | + | |
75 | 80 | | |
76 | 81 | | |
77 | 82 | | |
| |||
87 | 92 | | |
88 | 93 | | |
89 | 94 | | |
90 | | - | |
| 95 | + | |
91 | 96 | | |
92 | 97 | | |
93 | 98 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
472 | 472 | | |
473 | 473 | | |
474 | 474 | | |
475 | | - | |
476 | | - | |
477 | 475 | | |
478 | 476 | | |
479 | 477 | | |
| |||
0 commit comments