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