fcfb4b6419a1213172833b302f603f787fe6611d.svn-base 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>无人机页面demo</title>
  6. <script src="/nwyj/scripts/qui/libs/js/jquery.js"></script>
  7. <script type="text/javascript" src="/nwyj/page/cockpit/ckplayer6.7/ckplayer/ckplayer.js" charset="utf-8"></script>
  8. <style type="text/css">
  9. html,body{width:100%;height:100%;margin:0;padding:0;}
  10. .title{width:100%;height:10%;background-color:#F25C27;position:relative;}
  11. .title_text{font-weight: bold; font-size: 30px; font-family: "微软雅黑", "宋体", arial;
  12. width: 30%;height: 50%;overflow: auto;margin: auto 10%;position:absolute;
  13. top: 0; left: 0; bottom: 0; right: 0; }
  14. .in_sceen_box{display: block; position: absolute; right:30px; top:40%;}
  15. .trigger{display: block;position: absolute;background: url(img/pro_button.png) 0 0 no-repeat;
  16. width: 42px;height: 42px;right: 0;top: 0;cursor: pointer;}
  17. .trigger strong{display: block;background: url(img/plus-minus.png) 0 0 no-repeat;
  18. width: 11px;height: 11px;position: absolute;right: 7px;bottom: 24px;opacity: 0;}
  19. .trigger em{display: block;background: url(img/plus-minus.png) -11px 0 no-repeat;
  20. width: 11px;height: 11px;position: absolute;right: 7px;bottom: 24px;}
  21. /*.sceen_ck{width:99%;height:99%;border: 1px solid red;}*/
  22. .sceen_box{width:100%;height:90%;position: relative;}
  23. .sceen_1{width:100%;height:100%;background-color: #00a0c6}
  24. .sub_ck_box{width:100%;height:100%;}
  25. .sceen_1_1{width:100%;height:100%;background-color: #11a0c6}
  26. .sceen_2_1{width:50%;height:100%;float:left;background-color: #22a0c6}
  27. .sceen_2_2{width:50%;height:100%;float:left;background-color: #99aac6}
  28. .sceen_3_1{width:50%;height:50%;float:left;background-color: #44a0c6}
  29. .sceen_3_2{width:50%;height:100%;float:right;background-color: #55a0c6}
  30. .sceen_3_3{width:50%;height:50%;float:left;background-color: #66a0c6}
  31. .sceen_4_1{width:50%;height:50%;float:left;background-color: #11a0c6}
  32. .sceen_4_2{width:50%;height:50%;float:left;background-color: #22a0c6}
  33. .sceen_4_3{width:50%;height:50%;float:left;background-color: #33a0c6}
  34. .sceen_4_4{width:50%;height:50%;float:left;background-color: #44a0c6}
  35. .sceen_5_1{width:30%;height:50%;float:left;background-color: #11a0c6}
  36. .sceen_5_2{width:40%;height:50%;float:left;background-color: #22bb16}
  37. .sceen_5_3{width:30%;height:50%;float:left;background-color: #33a0c6}
  38. .sceen_5_4{width:50%;height:50%;float:left;background-color: #44a0c6}
  39. .sceen_5_5{width:50%;height:50%;float:left;background-color: #55a0c6}
  40. .sceen_6_1{width:30%;height:50%;float:left;background-color: #11a0c6}
  41. .sceen_6_2{width:40%;height:50%;float:left;background-color: #22a0c6}
  42. .sceen_6_3{width:30%;height:50%;float:left;background-color: #33a0c6}
  43. .sceen_6_4{width:30%;height:50%;float:left;background-color: #44a0c6}
  44. .sceen_6_5{width:40%;height:50%;float:left;background-color: #55a0c6}
  45. .sceen_6_6{width:30%;height:50%;float:left;background-color: #66a0c6}
  46. .sceen_7_1{width:30%;height:50%;float:left;background-color: #11a0c6}
  47. .sceen_7_2{width:40%;height:50%;float:left;background-color: #22a0c6}
  48. .sceen_7_3{width:30%;height:50%;float:left;background-color: #33a0c6}
  49. .sceen_7_4{width:25%;height:50%;float:left;background-color: #44a0c6}
  50. .sceen_7_5{width:25%;height:50%;float:left;background-color: #55a0c6}
  51. .sceen_7_6{width:25%;height:50%;float:left;background-color: #66a0c6}
  52. .sceen_7_7{width:25%;height:50%;float:left;background-color: #77a0c6}
  53. .sceen_8_1{width:25%;height:50%;float:left;background-color: #11a0c6}
  54. .sceen_8_2{width:25%;height:50%;float:left;background-color: #22a0c6}
  55. .sceen_8_3{width:25%;height:50%;float:left;background-color: #33a0c6}
  56. .sceen_8_4{width:25%;height:50%;float:left;background-color: #44a0c6}
  57. .sceen_8_5{width:25%;height:50%;float:left;background-color: #55a0c6}
  58. .sceen_8_6{width:25%;height:50%;float:left;background-color: #66a0c6}
  59. .sceen_8_7{width:25%;height:50%;float:left;background-color: #77a0c6}
  60. .sceen_8_8{width:25%;height:50%;float:left;background-color: #88a0c6}
  61. .sceen_9_1{width:33%;height:33%;float:left;background-color: #11a0c6}
  62. .sceen_9_2{width:34%;height:33%;float:left;background-color: #22a0c6}
  63. .sceen_9_3{width:33%;height:33%;float:left;background-color: #33a0c6}
  64. .sceen_9_4{width:33%;height:34%;float:left;background-color: #44a0c6}
  65. .sceen_9_5{width:34%;height:34%;float:left;background-color: #55a0c6}
  66. .sceen_9_6{width:33%;height:34%;float:left;background-color: #66a0c6}
  67. .sceen_9_7{width:33%;height:33%;float:left;background-color: #77a0c6}
  68. .sceen_9_8{width:34%;height:33%;float:left;background-color: #88a0c6}
  69. .sceen_9_9{width:33%;height:33%;float:left;background-color: #99a0c6}
  70. .sceen_10_1{width:33%;height:33%;float:left;background-color: #11a0c6}
  71. .sceen_10_2{width:34%;height:33%;float:left;background-color: #22a0c6}
  72. .sceen_10_3{width:33%;height:33%;float:left;background-color: #33a0c6}
  73. .sceen_10_4{width:25%;height:34%;float:left;background-color: #44a0c6}
  74. .sceen_10_5{width:25%;height:34%;float:left;background-color: #55a0c6}
  75. .sceen_10_6{width:25%;height:34%;float:left;background-color: #66a0c6}
  76. .sceen_10_7{width:25%;height:34%;float:left;background-color: #77a0c6}
  77. .sceen_10_8{width:33%;height:33%;float:left;background-color: #88a0c6}
  78. .sceen_10_9{width:34%;height:33%;float:left;background-color: #99a0c6}
  79. .sceen_10_10{width:33%;height:33%;float:left;background-color: #77a011}
  80. .sceen_11_1{width:25%;height:33%;float:left;background-color: #11a0c6}
  81. .sceen_11_2{width:25%;height:33%;float:left;background-color: #22a0c6}
  82. .sceen_11_3{width:25%;height:33%;float:left;background-color: #33a0c6}
  83. .sceen_11_4{width:25%;height:33%;float:left;background-color: #44a0c6}
  84. .sceen_11_5{width:25%;height:34%;float:left;background-color: #55a0c6}
  85. .sceen_11_6{width:25%;height:34%;float:left;background-color: #66a0c6}
  86. .sceen_11_7{width:25%;height:34%;float:left;background-color: #77a0c6}
  87. .sceen_11_8{width:25%;height:34%;float:left;background-color: #88a0c6}
  88. .sceen_11_9{width:33%;height:33%;float:left;background-color: #99a0c6}
  89. .sceen_11_10{width:34%;height:33%;float:left;background-color: #77a011}
  90. .sceen_11_11{width:33%;height:33%;float:left;background-color: #77a022}
  91. .sceen_12_1{width:25%;height:33%;float:left;background-color: #11a0c6}
  92. .sceen_12_2{width:25%;height:33%;float:left;background-color: #22a0c6}
  93. .sceen_12_3{width:25%;height:33%;float:left;background-color: #33a0c6}
  94. .sceen_12_4{width:25%;height:33%;float:left;background-color: #44a0c6}
  95. .sceen_12_5{width:25%;height:34%;float:left;background-color: #55a0c6}
  96. .sceen_12_6{width:25%;height:34%;float:left;background-color: #66a0c6}
  97. .sceen_12_7{width:25%;height:34%;float:left;background-color: #77a0c6}
  98. .sceen_12_8{width:25%;height:34%;float:left;background-color: #88a0c6}
  99. .sceen_12_9{width:25%;height:33%;float:left;background-color: #99a0c6}
  100. .sceen_12_10{width:25%;height:33%;float:left;background-color: #11a011}
  101. .sceen_12_11{width:25%;height:33%;float:left;background-color: #22a022}
  102. .sceen_12_12{width:25%;height:33%;float:left;background-color: #33a044}
  103. .sceen_13_1{width:50%;height:67%;float:left;background-color: #11a0c6}
  104. .sceen_13_2{width:16%;height:22%;float:left;background-color: #22a0c6}
  105. .sceen_13_3{width:18%;height:22%;float:left;background-color: #33a0c6}
  106. .sceen_13_4{width:16%;height:22%;float:left;background-color: #44a0c6}
  107. .sceen_13_5{width:16%;height:23%;float:left;background-color: #55a0c6}
  108. .sceen_13_6{width:18%;height:23%;float:left;background-color: #66a0c6}
  109. .sceen_13_7{width:16%;height:23%;float:left;background-color: #77a0c6}
  110. .sceen_13_8{width:16%;height:22%;float:left;background-color: #88a0c6}
  111. .sceen_13_9{width:18%;height:22%;float:left;background-color: #99a0c6}
  112. .sceen_13_10{width:16%;height:22%;float:left;background-color: #11a011}
  113. .sceen_13_11{width:33%;height:33%;float:left;background-color: #22a022}
  114. .sceen_13_12{width:34%;height:33%;float:left;background-color: #33a044}
  115. .sceen_13_13{width:33%;height:33%;float:left;background-color: #44a066}
  116. .sceen_14_1{width:50%;height:67%;float:left;background-color: #11a0c6}
  117. .sceen_14_2{width:16%;height:22%;float:left;background-color: #22a0c6}
  118. .sceen_14_3{width:18%;height:22%;float:left;background-color: #33a0c6}
  119. .sceen_14_4{width:16%;height:22%;float:left;background-color: #44a0c6}
  120. .sceen_14_5{width:16%;height:23%;float:left;background-color: #55a0c6}
  121. .sceen_14_6{width:18%;height:23%;float:left;background-color: #66a0c6}
  122. .sceen_14_7{width:16%;height:23%;float:left;background-color: #77a0c6}
  123. .sceen_14_8{width:16%;height:22%;float:left;background-color: #88a0c6}
  124. .sceen_14_9{width:18%;height:22%;float:left;background-color: #99a0c6}
  125. .sceen_14_10{width:16%;height:22%;float:left;background-color: #11a011}
  126. .sceen_14_11{width:25%;height:33%;float:left;background-color: #22a022}
  127. .sceen_14_12{width:25%;height:33%;float:left;background-color: #33a044}
  128. .sceen_14_13{width:25%;height:33%;float:left;background-color: #44a066}
  129. .sceen_14_14{width:25%;height:33%;float:left;background-color: #55a088}
  130. .sceen_15_1{width:25%;height:33%;float:left;background-color: #11a0c6}
  131. .sceen_15_2{width:25%;height:33%;float:left;background-color: #22a0c6}
  132. .sceen_15_3{width:16%;height:33%;float:left;background-color: #77a0c6}
  133. .sceen_15_4{width:18%;height:33%;float:left;background-color: #88a0c6}
  134. .sceen_15_5{width:16%;height:33%;float:left;background-color: #99a0c6}
  135. .sceen_15_6{width:25%;height:34%;float:left;background-color: #33a0c6}
  136. .sceen_15_7{width:25%;height:34%;float:left;background-color: #44a0c6}
  137. .sceen_15_8{width:16%;height:34%;float:left;background-color: #11a011}
  138. .sceen_15_9{width:18%;height:34%;float:left;background-color: #22a022}
  139. .sceen_15_10{width:16%;height:34%;float:left;background-color: #33a044}
  140. .sceen_15_11{width:25%;height:33%;float:left;background-color: #55a0c6}
  141. .sceen_15_12{width:25%;height:33%;float:left;background-color: #66a0c6}
  142. .sceen_15_13{width:16%;height:33%;float:left;background-color: #44a066}
  143. .sceen_15_14{width:18%;height:33%;float:left;background-color: #55a088}
  144. .sceen_15_15{width:16%;height:33%;float:left;background-color: #00a000}
  145. .sceen_16_1{width:25%;height:25%;float:left;background-color: #11a0c6}
  146. .sceen_16_2{width:25%;height:25%;float:left;background-color: #22a0c6}
  147. .sceen_16_3{width:25%;height:25%;float:left;background-color: #77a0c6}
  148. .sceen_16_4{width:25%;height:25%;float:left;background-color: #88a0c6}
  149. .sceen_16_5{width:25%;height:25%;float:left;background-color: #99a0c6}
  150. .sceen_16_6{width:25%;height:25%;float:left;background-color: #33a0c6}
  151. .sceen_16_7{width:25%;height:25%;float:left;background-color: #44a0c6}
  152. .sceen_16_8{width:25%;height:25%;float:left;background-color: #11a011}
  153. .sceen_16_9{width:25%;height:25%;float:left;background-color: #22a022}
  154. .sceen_16_10{width:25%;height:25%;float:left;background-color: #33a044}
  155. .sceen_16_11{width:25%;height:25%;float:left;background-color: #55a0c6}
  156. .sceen_16_12{width:25%;height:25%;float:left;background-color: #66a0c6}
  157. .sceen_16_13{width:25%;height:25%;float:left;background-color: #44a066}
  158. .sceen_16_14{width:25%;height:25%;float:left;background-color: #55a088}
  159. .sceen_16_15{width:25%;height:25%;float:left;background-color: #00a000}
  160. .sceen_16_16{width:25%;height:25%;float:left;background-color: #11a0aa}
  161. .sceen_17_1{width:20%;height:20%;float:left;background-color: #11a0c6}
  162. .sceen_17_2{width:20%;height:20%;float:left;background-color: #22a0c6}
  163. .sceen_17_3{width:20%;height:20%;float:left;background-color: #77a0c6}
  164. .sceen_17_4{width:20%;height:20%;float:left;background-color: #88a0c6}
  165. .sceen_17_5{width:20%;height:20%;float:left;background-color: #99a0c6}
  166. .sceen_17_6{width:20%;height:20%;float:left;background-color: #33a0c6;}
  167. .sceen_17_7{width:20%;height:20%;position:absolute;left:0;top:40%;background-color: #44a0c6;}
  168. .sceen_17_8{width:20%;height:20%;position:absolute;left:0;top:60%;background-color: #22a022;}
  169. .sceen_17_9{width:60%;height:60%;position:absolute;left:20%;top:20%;background-color: #22a022;}
  170. .sceen_17_10{width:20%;height:20%;position:absolute;right:0;top:20%;background-color: #33a044;display: inline-block;}
  171. .sceen_17_11{width:20%;height:20%;position:absolute;right:0;top:40%;background-color: #55a0c6;display: inline-block;}
  172. .sceen_17_12{width:20%;height:20%;position:absolute;right:0;top:60%;background-color: #66a0c6;display: inline-block;}
  173. .sceen_17_13{width:20%;height:20%;position:absolute;left:0;bottom:0;background-color: #44a066;display: inline-block;}
  174. .sceen_17_14{width:20%;height:20%;position:absolute;left:20%;bottom:0;background-color: #55a088;display: inline-block;}
  175. .sceen_17_15{width:20%;height:20%;position:absolute;left:40%;bottom:0;background-color: #00a000;display: inline-block;}
  176. .sceen_17_16{width:20%;height:20%;position:absolute;left:60%;bottom:0;background-color: #11a0aa;display: inline-block;}
  177. .sceen_17_17{width:20%;height:20%;position:absolute;left:80%;bottom:0;background-color: #22a0bb;display: inline-block;}
  178. .sceen_18_1{width:20%;height:25%;float:left;background-color: #11a0c6}
  179. .sceen_18_2{width:20%;height:25%;float:left;background-color: #22a0c6}
  180. .sceen_18_3{width:20%;height:25%;float:left;background-color: #77a0c6}
  181. .sceen_18_4{width:20%;height:25%;float:left;background-color: #88a0c6}
  182. .sceen_18_5{width:20%;height:25%;float:left;background-color: #99a0c6}
  183. .sceen_18_6{width:33%;height:25%;float:left;background-color: #33a0c6;}
  184. .sceen_18_7{width:34%;height:25%;float:left;background-color: #44a0c6;}
  185. .sceen_18_8{width:33%;height:25%;float:left;background-color: #22a022;}
  186. .sceen_18_9{width:20%;height:25%;float:left;background-color: #22a022;}
  187. .sceen_18_10{width:20%;height:25%;float:left;background-color: #33a044;}
  188. .sceen_18_11{width:20%;height:25%;float:left;background-color: #55a0c6;}
  189. .sceen_18_12{width:20%;height:25%;float:left;background-color: #66a0c6;}
  190. .sceen_18_13{width:20%;height:25%;float:left;background-color: #44a066;}
  191. .sceen_18_14{width:20%;height:25%;float:left;background-color: #55a088;}
  192. .sceen_18_15{width:20%;height:25%;float:left;background-color: #00a000;}
  193. .sceen_18_16{width:20%;height:25%;float:left;background-color: #11a0aa;}
  194. .sceen_18_17{width:20%;height:25%;float:left;background-color: #22a0bb;}
  195. .sceen_18_18{width:20%;height:25%;float:left;background-color: #22a0bb;}
  196. .sceen_19_1{width:20%;height:33%;float:left;background-color: #11a0c6}
  197. .sceen_19_2{width:20%;height:33%;float:left;background-color: #22a0c6}
  198. .sceen_19_3{width:20%;height:33%;float:left;background-color: #77a0c6}
  199. .sceen_19_4{width:20%;height:33%;float:left;background-color: #88a0c6}
  200. .sceen_19_5{width:20%;height:33%;float:left;background-color: #99a0c6}
  201. .sceen_19_6{width:16%;height:17%;position:absolute;left:0;top:33%;background-color: #33a0c6;}
  202. .sceen_19_7{width:17%;height:17%;position:absolute;left:16%;top:33%;background-color: #44a0c6;}
  203. .sceen_19_8{width:16%;height:17%;position:absolute;left:0;bottom:33%;background-color: #22a022;}
  204. .sceen_19_9{width:17%;height:17%;position:absolute;left:16%;bottom:33%;background-color: #22a022;}
  205. .sceen_19_10{width:34%;height:34%;position:absolute;left:33%;bottom:33%;background-color: #33a044;}
  206. .sceen_19_11{width:16%;height:17%;position:absolute;right:17%;top:33%;background-color: #55a0c6;}
  207. .sceen_19_12{width:17%;height:17%;position:absolute;right:0;top:33%;background-color: #66a0c6;}
  208. .sceen_19_13{width:16%;height:17%;position:absolute;right:17%;bottom:33%;background-color: #44a066;}
  209. .sceen_19_14{width:17%;height:17%;position:absolute;right:0;bottom:33%;background-color: #55a088;}
  210. .sceen_19_15{width:20%;height:33%;position:absolute;left:0;bottom:0;background-color: #00a000;}
  211. .sceen_19_16{width:20%;height:33%;position:absolute;left:20%;bottom:0;background-color: #11a0aa;}
  212. .sceen_19_17{width:20%;height:33%;position:absolute;left:40%;bottom:0;background-color: #22a0bb;}
  213. .sceen_19_18{width:20%;height:33%;position:absolute;left:60%;bottom:0;background-color: #33a0cc;}
  214. .sceen_19_19{width:20%;height:33%;position:absolute;left:80%;bottom:0;background-color: #44a0dd;}
  215. .sceen_20_1{width:20%;height:25%;float:left;background-color: #11a0c6}
  216. .sceen_20_2{width:20%;height:25%;float:left;background-color: #22a0c6}
  217. .sceen_20_3{width:20%;height:25%;float:left;background-color: #77a0c6}
  218. .sceen_20_4{width:20%;height:25%;float:left;background-color: #88a0c6}
  219. .sceen_20_5{width:20%;height:25%;float:left;background-color: #99a0c6}
  220. .sceen_20_6{width:20%;height:25%;float:left;background-color: #33a0c6;}
  221. .sceen_20_7{width:20%;height:25%;float:left;background-color: #44a0c6;}
  222. .sceen_20_8{width:20%;height:25%;float:left;background-color: #22a022;}
  223. .sceen_20_9{width:20%;height:25%;float:left;background-color: #22a022;}
  224. .sceen_20_10{width:20%;height:25%;float:left;background-color: #33a044;}
  225. .sceen_20_11{width:20%;height:25%;float:left;background-color: #55a0c6;}
  226. .sceen_20_12{width:20%;height:25%;float:left;background-color: #66a0c6;}
  227. .sceen_20_13{width:20%;height:25%;float:left;background-color: #44a066;}
  228. .sceen_20_14{width:20%;height:25%;float:left;background-color: #55a088;}
  229. .sceen_20_15{width:20%;height:25%;float:left;background-color: #00a000;}
  230. .sceen_20_16{width:20%;height:25%;float:left;background-color: #11a0aa;}
  231. .sceen_20_17{width:20%;height:25%;float:left;background-color: #22a0bb;}
  232. .sceen_20_18{width:20%;height:25%;float:left;background-color: #33a0cc;}
  233. .sceen_20_19{width:20%;height:25%;float:left;background-color: #44a0dd;}
  234. .sceen_20_20{width:20%;height:25%;float:left;background-color: #55a0ee;}
  235. </style>
  236. </head>
  237. <body>
  238. <div class="title">
  239. <span class="title_text">无人机直播</span>
  240. <span class="in_sceen_box"><input id="in_sceen"><button id="sceen_btn" title="输入序号打开对应视频">打开</button></span>
  241. <span class="trigger"><strong style="opacity: 1;"></strong><em></em></span>
  242. </div>
  243. <div class="sceen_box">
  244. <div id="sub_ck_1" class="sceen_ck sceen_1_1" num="1"></div>
  245. </div>
  246. </body>
  247. <script type="text/javascript">
  248. $(function(){
  249. $("#sceen_btn").on("click",function(){
  250. var num = $("#in_sceen").val();
  251. var mv = new MonitoringVideo();
  252. mv.init_ckplay(num);
  253. });
  254. /* var mv = new MonitoringVideo();
  255. $("#sceen_btn").on("click",function(){
  256. var num = Number($("#in_sceen").val());
  257. $(".sceen_box").empty().addClass("sbn_"+num);
  258. for(var i = 1; i <= num; i++){
  259. var $ck_box = document.createElement("div");
  260. $ck_box.id = "sceen_" + i;
  261. $($ck_box).attr("num",i).addClass("sceen_ck").addClass("sceen_"+num+"_"+i);
  262. var $sub_ck_box = document.createElement("div");
  263. $sub_ck_box.id = "sub_ck_" + i;
  264. $($sub_ck_box).addClass("sub_ck_box");
  265. $($ck_box).append($sub_ck_box);
  266. $(".sceen_box").append($ck_box);
  267. mv.init_ckplay(i);
  268. };
  269. }); */
  270. });
  271. MonitoringVideo = function(){
  272. var _this = this;
  273. /* 初始化加载视频 */
  274. this.init_ckplay = function(name){
  275. var host = window.location.host;
  276. var flashvars={
  277. // f:'rtmp://120.76.41.198:8881/hls/livestream'+name,//无人机直播
  278. // f:'http://localhost:63342/TextOne/%E8%A7%86%E9%A2%91%E7%9B%B4%E6%92%AD/1.mp4',
  279. f:'rtmp://120.76.41.198:8881/hls/livestream13',//无人机1路直播
  280. c:0,
  281. p:'1',
  282. lv:'1',
  283. loaded:'loadedHandler',
  284. b:1
  285. };
  286. alert(flashvars.f)
  287. var params={bgcolor:'#FFF',allowFullScreen:true,allowScriptAccess:'always',wmode:'transparent'};
  288. //CKobject.embedSWF('/nwyj/page/cockpit/ckplayer6.7/ckplayer/ckplayer.swf','sub_ck_'+name,'ckplayer_a1','100%','100%',flashvars,params);
  289. CKobject.embedSWF('/nwyj/page/cockpit/ckplayer6.7/ckplayer/ckplayer.swf','sub_ck_1','ckplayer_a1','100%','100%',flashvars,params);
  290. };
  291. };
  292. var flashvars={
  293. // f:'http://localhost:63342/TextOne/%E8%A7%86%E9%A2%91%E7%9B%B4%E6%92%AD/1.mp4',
  294. // f:'rtmp://localhost/live/livestreame',
  295. // f:'rtmp://live.hkstv.hk.lxdns.com/live/hks',//香港卫视
  296. f:'rtmp://120.76.41.198:8881/hls/livestream13',//无人机1路直播
  297. c:0,
  298. p:'1',
  299. lv:'1',
  300. loaded:'loadedHandler',
  301. b:1
  302. };
  303. // var video=['http://live.hkstv.hk.lxdns.com/live/hks/playlist.m3u8'];
  304. // CKobject.embed('ckplayer/ckplayer.swf','a1','ckplayer_a1','600','400',false,flashvars,video);
  305. var params={bgcolor:'#FFF',allowFullScreen:true,allowScriptAccess:'always',wmode:'transparent'};
  306. CKobject.embedSWF('/nwyj/page/cockpit/ckplayer6.7/ckplayer/ckplayer.swf','sub_ck_1','_ck_1','100%','100%',flashvars,params);
  307. /*
  308. CKobject.embedSWF(播放器路径,容器id,播放器id/name,播放器宽,播放器高,flashvars的值,其它定义也可省略);
  309. 下面三行是调用html5播放器用到的
  310. */
  311. // var video=['http://movie.ks.js.cn/flv/other/1_0.mp4->video/mp4','http://www.ckplayer.com/webm/0.webm->video/webm','http://www.ckplayer.com/webm/0.ogv->video/ogg'];
  312. // var support=['iPad','iPhone','ios','android+false','msie10+false'];
  313. // CKobject.embedHTML5('a1','ckplayer_a1',600,400,video,flashvars,support);
  314. function loadedHandler(){
  315. if(CKobject.getObjectById('_ck_1').getType()){
  316. alert('播放器已加载,调用的是HTML5播放模块');
  317. CKobject.getObjectById('_ck_1').addListener('play',playHandler);
  318. }
  319. else{
  320. alert('播放器已加载,调用的是Flash播放模块');
  321. CKobject.getObjectById('_ck_1').addListener('play','playHandler');
  322. }
  323. }
  324. function playHandler(){
  325. alert('播放了');
  326. }
  327. </script>
  328. </html>