PageRenderTime 22ms CodeModel.GetById 19ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/tv/tv_live.php

https://code.google.com/p/hdforall/
PHP | 360 lines | 327 code | 32 blank | 1 comment | 15 complexity | f7469061057a2bba4bd15a561c35c52d MD5 | raw file
  1#!/usr/local/bin/Resource/www/cgi-bin/php
  2<?php echo "<?xml version='1.0' encoding='UTF8' ?>";
  3$host = "http://127.0.0.1/cgi-bin";
  4?>
  5<rss version="2.0">
  6<onEnter>
  7  startitem = "middle";
  8  setRefreshTime(1);
  9</onEnter>
 10
 11<onRefresh>
 12  setRefreshTime(-1);
 13  itemCount = getPageInfo("itemCount");
 14</onRefresh>
 15
 16<mediaDisplay name="threePartsView"
 17	sideLeftWidthPC="0"
 18	sideRightWidthPC="0"
 19
 20	headerImageWidthPC="0"
 21	selectMenuOnRight="no"
 22	autoSelectMenu="no"
 23	autoSelectItem="no"
 24	itemImageHeightPC="0"
 25	itemImageWidthPC="0"
 26	itemXPC="8"
 27	itemYPC="25"
 28	itemWidthPC="50"
 29	itemHeightPC="8"
 30	capXPC="8"
 31	capYPC="25"
 32	capWidthPC="50"
 33	capHeightPC="64"
 34	itemBackgroundColor="0:0:0"
 35	itemPerPage="8"
 36  itemGap="0"
 37	bottomYPC="90"
 38	backgroundColor="0:0:0"
 39	showHeader="no"
 40	showDefaultInfo="no"
 41	imageFocus=""
 42	sliding="no"
 43	idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10"
 44>
 45
 46  	<text align="center" offsetXPC="0" offsetYPC="0" widthPC="100" heightPC="20" fontSize="30" backgroundColor="10:105:150" foregroundColor="100:200:255">
 47		  <script>getPageInfo("pageTitle");</script>
 48		</text>
 49
 50  	<text redraw="yes" offsetXPC="85" offsetYPC="12" widthPC="10" heightPC="6" fontSize="20" backgroundColor="10:105:150" foregroundColor="60:160:205">
 51		  <script>sprintf("%s / ", focus-(-1))+itemCount;</script>
 52		</text>
 53  	<text  redraw="yes" align="center" offsetXPC="0" offsetYPC="90" widthPC="100" heightPC="8" fontSize="17" backgroundColor="10:105:150" foregroundColor="100:200:255">
 54		  <script>print(annotation); annotation;</script>
 55		</text>
 56		<image  redraw="yes" offsetXPC=60 offsetYPC=35 widthPC=30 heightPC=30>
 57  image/tv_radio.png
 58		</image>
 59		<idleImage> image/POPUP_LOADING_01.png </idleImage>
 60		<idleImage> image/POPUP_LOADING_02.png </idleImage>
 61		<idleImage> image/POPUP_LOADING_03.png </idleImage>
 62		<idleImage> image/POPUP_LOADING_04.png </idleImage>
 63		<idleImage> image/POPUP_LOADING_05.png </idleImage>
 64		<idleImage> image/POPUP_LOADING_06.png </idleImage>
 65		<idleImage> image/POPUP_LOADING_07.png </idleImage>
 66		<idleImage> image/POPUP_LOADING_08.png </idleImage>
 67
 68		<itemDisplay>
 69			<text align="left" lines="1" offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100>
 70				<script>
 71					idx = getQueryItemIndex();
 72					focus = getFocusItemIndex();
 73					if(focus==idx)
 74					{
 75					  annotation = getItemInfo(idx, "title");
 76					}
 77					getItemInfo(idx, "title");
 78				</script>
 79				<fontSize>
 80  				<script>
 81  					idx = getQueryItemIndex();
 82  					focus = getFocusItemIndex();
 83  			    if(focus==idx) "16"; else "14";
 84  				</script>
 85				</fontSize>
 86			  <backgroundColor>
 87  				<script>
 88  					idx = getQueryItemIndex();
 89  					focus = getFocusItemIndex();
 90  			    if(focus==idx) "10:80:120"; else "-1:-1:-1";
 91  				</script>
 92			  </backgroundColor>
 93			  <foregroundColor>
 94  				<script>
 95  					idx = getQueryItemIndex();
 96  					focus = getFocusItemIndex();
 97  			    if(focus==idx) "255:255:255"; else "140:140:140";
 98  				</script>
 99			  </foregroundColor>
100			</text>
101
102		</itemDisplay>
103
104<onUserInput>
105<script>
106ret = "false";
107userInput = currentUserInput();
108
109if (userInput == "pagedown" || userInput == "pageup")
110{
111  idx = Integer(getFocusItemIndex());
112  if (userInput == "pagedown")
113  {
114    idx -= -8;
115    if(idx &gt;= itemCount)
116      idx = itemCount-1;
117  }
118  else
119  {
120    idx -= 8;
121    if(idx &lt; 0)
122      idx = 0;
123  }
124
125  print("new idx: "+idx);
126  setFocusItemIndex(idx);
127	setItemFocus(0);
128  redrawDisplay();
129  "true";
130}
131ret;
132</script>
133</onUserInput>
134
135	</mediaDisplay>
136
137	<item_template>
138		<mediaDisplay  name="threePartsView" idleImageXPC="5" idleImageYPC="5" idleImageWidthPC="8" idleImageHeightPC="10">
139        <idleImage>image/POPUP_LOADING_01.png</idleImage>
140        <idleImage>image/POPUP_LOADING_02.png</idleImage>
141        <idleImage>image/POPUP_LOADING_03.png</idleImage>
142        <idleImage>image/POPUP_LOADING_04.png</idleImage>
143        <idleImage>image/POPUP_LOADING_05.png</idleImage>
144        <idleImage>image/POPUP_LOADING_06.png</idleImage>
145        <idleImage>image/POPUP_LOADING_07.png</idleImage>
146        <idleImage>image/POPUP_LOADING_08.png</idleImage>
147		</mediaDisplay>
148
149	</item_template>
150  <channel>
151
152    <title>TV Live</title>
153
154<item>
155<title>TV Live - România</title>
156<link><?php echo $host; ?>/scripts/tv/tv_rom.php</link>
157<media:thumbnail url="image/tv_radio.png" />
158<mediaDisplay name="threePartsView"/>
159</item>
160
161<item>
162<title>MediaDirect</title>
163<link><?php echo $host; ?>/scripts/tv/mediadirect.php</link>
164<media:thumbnail url="image/tv_radio.png" />
165<mediaDisplay name="threePartsView"/>
166</item>
167
168<item>
169<title>DolceTV</title>
170<link><?php echo $host; ?>/scripts/tv/dolce.php</link>
171<media:thumbnail url="image/tv_radio.png" />
172<mediaDisplay name="threePartsView"/>
173</item>
174
175<item>
176<title>TV Live - PBX România</title>
177<link><?php echo $host; ?>/scripts/tv/pbx.php</link>
178<media:thumbnail url="image/tv_radio.png" />
179<mediaDisplay name="threePartsView"/>
180</item>
181<!--
182<item>
183<title>High Definition TV</title>
184<link><?php echo $host; ?>/scripts/tv/tvsector.php</link>
185<media:thumbnail url="image/tv_radio.png" />
186<mediaDisplay name="threePartsView"/>
187</item>
188-->
189<item>
190<title>TV Live - Muzic?</title>
191<link><?php echo $host; ?>/scripts/tv/music_tv.php</link>
192<media:thumbnail url="image/tv_radio.png" />
193<mediaDisplay name="threePartsView"/>
194</item>
195
196<item>
197<title>TV Live - Sport extern</title>
198<link><?php echo $host; ?>/scripts/tv/tv_sport_live.php</link>
199<media:thumbnail url="image/tv_radio.png" />
200<mediaDisplay name="threePartsView"/>
201</item>
202<!--
203<?php
204echo '
205<item>
206<title>FilmOn</title>
207<link>'.$host.'/scripts/tv/php/filmon.php</link>
208<media:thumbnail url="image/tv_radio.png" />
209<mediaDisplay name="threePartsView"/>
210</item>
211';
212?>
213-->
214<item>
215<title>TV Live - rtmpGui - wilmaa</title>
216<link><?php echo $host; ?>/scripts/tv/wilmaa.php</link>
217<media:thumbnail url="image/tv_radio.png" />
218<mediaDisplay name="threePartsView"/>
219</item>
220<!--
221<item>
222<title>TV Live - rtmpGui - tvsector</title>
223<link><?php echo $host; ?>/scripts/tv/tvsector1.php</link>
224<media:thumbnail url="image/tv_radio.png" />
225<mediaDisplay name="threePartsView"/>
226</item>
227-->
228<item>
229<title>TV Live - rtmpGui - alte canale</title>
230<link><?php echo $host; ?>/scripts/tv/ohlulz.php</link>
231<media:thumbnail url="image/tv_radio.png" />
232<mediaDisplay name="threePartsView"/>
233</item>
234
235<item>
236<title>TV Live - RTMP US</title>
237<link><?php echo $host; ?>/scripts/tv/rtmp_bat.php?file=http://hdforall.googlecode.com/files/rtmp_us.txt,RTMP+US</link>
238<media:thumbnail url="image/tv_radio.png" />
239<mediaDisplay name="threePartsView"/>
240</item>
241<!--
242<item>
243<title>TV Live - RTMP Portugalia</title>
244<link><?php echo $host; ?>/scripts/tv/rtmp_bat.php?file=http://hdforall.googlecode.com/files/rtmp_port.txt,RTMP+Portugalia</link>
245<media:thumbnail url="image/tv_radio.png" />
246<mediaDisplay name="threePartsView"/>
247</item>
248-->
249<item>
250<title>TV Live - RTMP - favorite list</title>
251<link><?php echo $host; ?>/scripts/tv/php/ohlulz_fav.php</link>
252<media:thumbnail url="image/tv_radio.png" />
253<mediaDisplay name="threePartsView"/>
254</item>
255
256<item>
257<title>TV Live - Diverse Canale</title>
258<link><?php echo $host; ?>/scripts/tv/tv_diverse_live.php</link>
259<media:thumbnail url="image/tv_radio.png" />
260<mediaDisplay name="threePartsView"/>
261</item>
262
263<!--
264<item>
265<title>TV Live from watchmytv.net</title>
266<link><?php echo $host; ?>/scripts/tv/watchmytv.php</link>
267<media:thumbnail url="image/tv_radio.png" />
268<mediaDisplay name="threePartsView"/>
269</item>
270-->
271<item>
272<title>TV Live from veetle.com (only LQ) - popular</title>
273<link>/usr/local/etc/www/cgi-bin/scripts/tv/veetle_main.rss</link>
274<media:thumbnail url="image/tv_radio.png" />
275<mediaDisplay name="threePartsView"/>
276</item>
277
278<item>
279<title>TV Live from freedocast.com</title>
280<link><?php echo $host; ?>/scripts/tv/freedocast.php?query=1,</link>
281<media:thumbnail url="image/tv_radio.png" />
282<mediaDisplay name="threePartsView"/>
283</item>
284
285<item>
286<title>TV Live from sovok.tv</title>
287<link><?php echo $host; ?>/scripts/tv/sovok.php</link>
288<media:thumbnail url="image/tv_radio.png" />
289<mediaDisplay name="threePartsView"/>
290</item>
291
292<!--
293<item>
294<title>TV Live from freeiptv.be</title>
295<link><?php echo $host; ?>/scripts/tv/php/freeiptv.php</link>
296<media:thumbnail url="image/tv_radio.png" />
297<mediaDisplay name="threePartsView"/>
298</item>
299-->
300<item>
301<title>Justin.tv</title>
302<link><?php echo $host; ?>/scripts/tv/php/justintv_main.php</link>
303<media:thumbnail url="image/tv_radio.png" />
304<mediaDisplay name="threePartsView"/>
305</item>
306
307<item>
308<title>Spice TV</title>
309<link><?php echo $host; ?>/scripts/tv/spice.php</link>
310<media:thumbnail url="image/tv_radio.png" />
311<mediaDisplay name="threePartsView"/>
312</item>
313
314<item>
315<title>Czech &amp; Slovak TV</title>
316<link><?php echo $host; ?>/scripts/tv/cz.php</link>
317<media:thumbnail url="image/tv_radio.png" />
318<mediaDisplay name="threePartsView"/>
319</item>
320
321
322<item>
323<title>TV Live - Deutschland</title>
324<link><?php echo $host; ?>/scripts/tv/german_tv.php</link>
325<media:thumbnail url="image/tv_radio.png" />
326<mediaDisplay name="threePartsView"/>
327</item>
328
329<item>
330<title>TV from Hungary</title>
331<link><?php echo $host; ?>/scripts/tv/hungary_tv.php</link>
332<media:thumbnail url="image/tv_radio.png" />
333<mediaDisplay name="threePartsView"/>
334</item>
335<!--
336<item>
337<title>vtc.com.vn</title>
338<link><?php echo $host; ?>/scripts/tv/vtc.php</link>
339<media:thumbnail url="image/tv_radio.png" />
340<mediaDisplay name="threePartsView"/>
341</item>
342-->
343<!--
344<item>
345<title>mozhay TV (Russian) - press Audio to change channel</title>
346<link><?php echo $host; ?>/scripts/tv/mozhay.php</link>
347<media:thumbnail url="image/tv_radio.png" />
348<mediaDisplay name="threePartsView"/>
349</item>
350-->
351
352
353<item>
354<title>Liste TV Live online</title>
355<link>http://hdforall.freehostia.com/tv1/temp_tv.php</link>
356<media:thumbnail url="image/tv_radio.png" />
357<mediaDisplay name="threePartsView"/>
358</item>
359</channel>
360</rss>