123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>无人机页面demo</title>
- <script src="/nwyj/scripts/qui/libs/js/jquery.js"></script>
- <script type="text/javascript" src="/nwyj/page/cockpit/ckplayer6.7/ckplayer/ckplayer.js" charset="utf-8"></script>
- <style type="text/css">
- html,body{width:100%;height:100%;margin:0;padding:0;}
- .title{width:100%;height:10%;background-color:#F25C27;position:relative;}
- .title_text{font-weight: bold; font-size: 30px; font-family: "微软雅黑", "宋体", arial;
- width: 30%;height: 50%;overflow: auto;margin: auto 10%;position:absolute;
- top: 0; left: 0; bottom: 0; right: 0; }
- .in_sceen_box{display: block; position: absolute; right:30px; top:40%;}
- .trigger{display: block;position: absolute;background: url(img/pro_button.png) 0 0 no-repeat;
- width: 42px;height: 42px;right: 0;top: 0;cursor: pointer;}
- .trigger strong{display: block;background: url(img/plus-minus.png) 0 0 no-repeat;
- width: 11px;height: 11px;position: absolute;right: 7px;bottom: 24px;opacity: 0;}
- .trigger em{display: block;background: url(img/plus-minus.png) -11px 0 no-repeat;
- width: 11px;height: 11px;position: absolute;right: 7px;bottom: 24px;}
- /*.sceen_ck{width:99%;height:99%;border: 1px solid red;}*/
- .sceen_box{width:100%;height:90%;position: relative;}
- .sceen_1{width:100%;height:100%;background-color: #00a0c6}
- .sub_ck_box{width:100%;height:100%;}
- .sceen_1_1{width:100%;height:100%;background-color: #11a0c6}
- .sceen_2_1{width:50%;height:100%;float:left;background-color: #22a0c6}
- .sceen_2_2{width:50%;height:100%;float:left;background-color: #99aac6}
- .sceen_3_1{width:50%;height:50%;float:left;background-color: #44a0c6}
- .sceen_3_2{width:50%;height:100%;float:right;background-color: #55a0c6}
- .sceen_3_3{width:50%;height:50%;float:left;background-color: #66a0c6}
- .sceen_4_1{width:50%;height:50%;float:left;background-color: #11a0c6}
- .sceen_4_2{width:50%;height:50%;float:left;background-color: #22a0c6}
- .sceen_4_3{width:50%;height:50%;float:left;background-color: #33a0c6}
- .sceen_4_4{width:50%;height:50%;float:left;background-color: #44a0c6}
- .sceen_5_1{width:30%;height:50%;float:left;background-color: #11a0c6}
- .sceen_5_2{width:40%;height:50%;float:left;background-color: #22bb16}
- .sceen_5_3{width:30%;height:50%;float:left;background-color: #33a0c6}
- .sceen_5_4{width:50%;height:50%;float:left;background-color: #44a0c6}
- .sceen_5_5{width:50%;height:50%;float:left;background-color: #55a0c6}
- .sceen_6_1{width:30%;height:50%;float:left;background-color: #11a0c6}
- .sceen_6_2{width:40%;height:50%;float:left;background-color: #22a0c6}
- .sceen_6_3{width:30%;height:50%;float:left;background-color: #33a0c6}
- .sceen_6_4{width:30%;height:50%;float:left;background-color: #44a0c6}
- .sceen_6_5{width:40%;height:50%;float:left;background-color: #55a0c6}
- .sceen_6_6{width:30%;height:50%;float:left;background-color: #66a0c6}
- .sceen_7_1{width:30%;height:50%;float:left;background-color: #11a0c6}
- .sceen_7_2{width:40%;height:50%;float:left;background-color: #22a0c6}
- .sceen_7_3{width:30%;height:50%;float:left;background-color: #33a0c6}
- .sceen_7_4{width:25%;height:50%;float:left;background-color: #44a0c6}
- .sceen_7_5{width:25%;height:50%;float:left;background-color: #55a0c6}
- .sceen_7_6{width:25%;height:50%;float:left;background-color: #66a0c6}
- .sceen_7_7{width:25%;height:50%;float:left;background-color: #77a0c6}
- .sceen_8_1{width:25%;height:50%;float:left;background-color: #11a0c6}
- .sceen_8_2{width:25%;height:50%;float:left;background-color: #22a0c6}
- .sceen_8_3{width:25%;height:50%;float:left;background-color: #33a0c6}
- .sceen_8_4{width:25%;height:50%;float:left;background-color: #44a0c6}
- .sceen_8_5{width:25%;height:50%;float:left;background-color: #55a0c6}
- .sceen_8_6{width:25%;height:50%;float:left;background-color: #66a0c6}
- .sceen_8_7{width:25%;height:50%;float:left;background-color: #77a0c6}
- .sceen_8_8{width:25%;height:50%;float:left;background-color: #88a0c6}
- .sceen_9_1{width:33%;height:33%;float:left;background-color: #11a0c6}
- .sceen_9_2{width:34%;height:33%;float:left;background-color: #22a0c6}
- .sceen_9_3{width:33%;height:33%;float:left;background-color: #33a0c6}
- .sceen_9_4{width:33%;height:34%;float:left;background-color: #44a0c6}
- .sceen_9_5{width:34%;height:34%;float:left;background-color: #55a0c6}
- .sceen_9_6{width:33%;height:34%;float:left;background-color: #66a0c6}
- .sceen_9_7{width:33%;height:33%;float:left;background-color: #77a0c6}
- .sceen_9_8{width:34%;height:33%;float:left;background-color: #88a0c6}
- .sceen_9_9{width:33%;height:33%;float:left;background-color: #99a0c6}
- .sceen_10_1{width:33%;height:33%;float:left;background-color: #11a0c6}
- .sceen_10_2{width:34%;height:33%;float:left;background-color: #22a0c6}
- .sceen_10_3{width:33%;height:33%;float:left;background-color: #33a0c6}
- .sceen_10_4{width:25%;height:34%;float:left;background-color: #44a0c6}
- .sceen_10_5{width:25%;height:34%;float:left;background-color: #55a0c6}
- .sceen_10_6{width:25%;height:34%;float:left;background-color: #66a0c6}
- .sceen_10_7{width:25%;height:34%;float:left;background-color: #77a0c6}
- .sceen_10_8{width:33%;height:33%;float:left;background-color: #88a0c6}
- .sceen_10_9{width:34%;height:33%;float:left;background-color: #99a0c6}
- .sceen_10_10{width:33%;height:33%;float:left;background-color: #77a011}
- .sceen_11_1{width:25%;height:33%;float:left;background-color: #11a0c6}
- .sceen_11_2{width:25%;height:33%;float:left;background-color: #22a0c6}
- .sceen_11_3{width:25%;height:33%;float:left;background-color: #33a0c6}
- .sceen_11_4{width:25%;height:33%;float:left;background-color: #44a0c6}
- .sceen_11_5{width:25%;height:34%;float:left;background-color: #55a0c6}
- .sceen_11_6{width:25%;height:34%;float:left;background-color: #66a0c6}
- .sceen_11_7{width:25%;height:34%;float:left;background-color: #77a0c6}
- .sceen_11_8{width:25%;height:34%;float:left;background-color: #88a0c6}
- .sceen_11_9{width:33%;height:33%;float:left;background-color: #99a0c6}
- .sceen_11_10{width:34%;height:33%;float:left;background-color: #77a011}
- .sceen_11_11{width:33%;height:33%;float:left;background-color: #77a022}
- .sceen_12_1{width:25%;height:33%;float:left;background-color: #11a0c6}
- .sceen_12_2{width:25%;height:33%;float:left;background-color: #22a0c6}
- .sceen_12_3{width:25%;height:33%;float:left;background-color: #33a0c6}
- .sceen_12_4{width:25%;height:33%;float:left;background-color: #44a0c6}
- .sceen_12_5{width:25%;height:34%;float:left;background-color: #55a0c6}
- .sceen_12_6{width:25%;height:34%;float:left;background-color: #66a0c6}
- .sceen_12_7{width:25%;height:34%;float:left;background-color: #77a0c6}
- .sceen_12_8{width:25%;height:34%;float:left;background-color: #88a0c6}
- .sceen_12_9{width:25%;height:33%;float:left;background-color: #99a0c6}
- .sceen_12_10{width:25%;height:33%;float:left;background-color: #11a011}
- .sceen_12_11{width:25%;height:33%;float:left;background-color: #22a022}
- .sceen_12_12{width:25%;height:33%;float:left;background-color: #33a044}
- .sceen_13_1{width:50%;height:67%;float:left;background-color: #11a0c6}
- .sceen_13_2{width:16%;height:22%;float:left;background-color: #22a0c6}
- .sceen_13_3{width:18%;height:22%;float:left;background-color: #33a0c6}
- .sceen_13_4{width:16%;height:22%;float:left;background-color: #44a0c6}
- .sceen_13_5{width:16%;height:23%;float:left;background-color: #55a0c6}
- .sceen_13_6{width:18%;height:23%;float:left;background-color: #66a0c6}
- .sceen_13_7{width:16%;height:23%;float:left;background-color: #77a0c6}
- .sceen_13_8{width:16%;height:22%;float:left;background-color: #88a0c6}
- .sceen_13_9{width:18%;height:22%;float:left;background-color: #99a0c6}
- .sceen_13_10{width:16%;height:22%;float:left;background-color: #11a011}
- .sceen_13_11{width:33%;height:33%;float:left;background-color: #22a022}
- .sceen_13_12{width:34%;height:33%;float:left;background-color: #33a044}
- .sceen_13_13{width:33%;height:33%;float:left;background-color: #44a066}
- .sceen_14_1{width:50%;height:67%;float:left;background-color: #11a0c6}
- .sceen_14_2{width:16%;height:22%;float:left;background-color: #22a0c6}
- .sceen_14_3{width:18%;height:22%;float:left;background-color: #33a0c6}
- .sceen_14_4{width:16%;height:22%;float:left;background-color: #44a0c6}
- .sceen_14_5{width:16%;height:23%;float:left;background-color: #55a0c6}
- .sceen_14_6{width:18%;height:23%;float:left;background-color: #66a0c6}
- .sceen_14_7{width:16%;height:23%;float:left;background-color: #77a0c6}
- .sceen_14_8{width:16%;height:22%;float:left;background-color: #88a0c6}
- .sceen_14_9{width:18%;height:22%;float:left;background-color: #99a0c6}
- .sceen_14_10{width:16%;height:22%;float:left;background-color: #11a011}
- .sceen_14_11{width:25%;height:33%;float:left;background-color: #22a022}
- .sceen_14_12{width:25%;height:33%;float:left;background-color: #33a044}
- .sceen_14_13{width:25%;height:33%;float:left;background-color: #44a066}
- .sceen_14_14{width:25%;height:33%;float:left;background-color: #55a088}
- .sceen_15_1{width:25%;height:33%;float:left;background-color: #11a0c6}
- .sceen_15_2{width:25%;height:33%;float:left;background-color: #22a0c6}
- .sceen_15_3{width:16%;height:33%;float:left;background-color: #77a0c6}
- .sceen_15_4{width:18%;height:33%;float:left;background-color: #88a0c6}
- .sceen_15_5{width:16%;height:33%;float:left;background-color: #99a0c6}
- .sceen_15_6{width:25%;height:34%;float:left;background-color: #33a0c6}
- .sceen_15_7{width:25%;height:34%;float:left;background-color: #44a0c6}
- .sceen_15_8{width:16%;height:34%;float:left;background-color: #11a011}
- .sceen_15_9{width:18%;height:34%;float:left;background-color: #22a022}
- .sceen_15_10{width:16%;height:34%;float:left;background-color: #33a044}
- .sceen_15_11{width:25%;height:33%;float:left;background-color: #55a0c6}
- .sceen_15_12{width:25%;height:33%;float:left;background-color: #66a0c6}
- .sceen_15_13{width:16%;height:33%;float:left;background-color: #44a066}
- .sceen_15_14{width:18%;height:33%;float:left;background-color: #55a088}
- .sceen_15_15{width:16%;height:33%;float:left;background-color: #00a000}
- .sceen_16_1{width:25%;height:25%;float:left;background-color: #11a0c6}
- .sceen_16_2{width:25%;height:25%;float:left;background-color: #22a0c6}
- .sceen_16_3{width:25%;height:25%;float:left;background-color: #77a0c6}
- .sceen_16_4{width:25%;height:25%;float:left;background-color: #88a0c6}
- .sceen_16_5{width:25%;height:25%;float:left;background-color: #99a0c6}
- .sceen_16_6{width:25%;height:25%;float:left;background-color: #33a0c6}
- .sceen_16_7{width:25%;height:25%;float:left;background-color: #44a0c6}
- .sceen_16_8{width:25%;height:25%;float:left;background-color: #11a011}
- .sceen_16_9{width:25%;height:25%;float:left;background-color: #22a022}
- .sceen_16_10{width:25%;height:25%;float:left;background-color: #33a044}
- .sceen_16_11{width:25%;height:25%;float:left;background-color: #55a0c6}
- .sceen_16_12{width:25%;height:25%;float:left;background-color: #66a0c6}
- .sceen_16_13{width:25%;height:25%;float:left;background-color: #44a066}
- .sceen_16_14{width:25%;height:25%;float:left;background-color: #55a088}
- .sceen_16_15{width:25%;height:25%;float:left;background-color: #00a000}
- .sceen_16_16{width:25%;height:25%;float:left;background-color: #11a0aa}
- .sceen_17_1{width:20%;height:20%;float:left;background-color: #11a0c6}
- .sceen_17_2{width:20%;height:20%;float:left;background-color: #22a0c6}
- .sceen_17_3{width:20%;height:20%;float:left;background-color: #77a0c6}
- .sceen_17_4{width:20%;height:20%;float:left;background-color: #88a0c6}
- .sceen_17_5{width:20%;height:20%;float:left;background-color: #99a0c6}
- .sceen_17_6{width:20%;height:20%;float:left;background-color: #33a0c6;}
- .sceen_17_7{width:20%;height:20%;position:absolute;left:0;top:40%;background-color: #44a0c6;}
- .sceen_17_8{width:20%;height:20%;position:absolute;left:0;top:60%;background-color: #22a022;}
- .sceen_17_9{width:60%;height:60%;position:absolute;left:20%;top:20%;background-color: #22a022;}
- .sceen_17_10{width:20%;height:20%;position:absolute;right:0;top:20%;background-color: #33a044;display: inline-block;}
- .sceen_17_11{width:20%;height:20%;position:absolute;right:0;top:40%;background-color: #55a0c6;display: inline-block;}
- .sceen_17_12{width:20%;height:20%;position:absolute;right:0;top:60%;background-color: #66a0c6;display: inline-block;}
- .sceen_17_13{width:20%;height:20%;position:absolute;left:0;bottom:0;background-color: #44a066;display: inline-block;}
- .sceen_17_14{width:20%;height:20%;position:absolute;left:20%;bottom:0;background-color: #55a088;display: inline-block;}
- .sceen_17_15{width:20%;height:20%;position:absolute;left:40%;bottom:0;background-color: #00a000;display: inline-block;}
- .sceen_17_16{width:20%;height:20%;position:absolute;left:60%;bottom:0;background-color: #11a0aa;display: inline-block;}
- .sceen_17_17{width:20%;height:20%;position:absolute;left:80%;bottom:0;background-color: #22a0bb;display: inline-block;}
- .sceen_18_1{width:20%;height:25%;float:left;background-color: #11a0c6}
- .sceen_18_2{width:20%;height:25%;float:left;background-color: #22a0c6}
- .sceen_18_3{width:20%;height:25%;float:left;background-color: #77a0c6}
- .sceen_18_4{width:20%;height:25%;float:left;background-color: #88a0c6}
- .sceen_18_5{width:20%;height:25%;float:left;background-color: #99a0c6}
- .sceen_18_6{width:33%;height:25%;float:left;background-color: #33a0c6;}
- .sceen_18_7{width:34%;height:25%;float:left;background-color: #44a0c6;}
- .sceen_18_8{width:33%;height:25%;float:left;background-color: #22a022;}
- .sceen_18_9{width:20%;height:25%;float:left;background-color: #22a022;}
- .sceen_18_10{width:20%;height:25%;float:left;background-color: #33a044;}
- .sceen_18_11{width:20%;height:25%;float:left;background-color: #55a0c6;}
- .sceen_18_12{width:20%;height:25%;float:left;background-color: #66a0c6;}
- .sceen_18_13{width:20%;height:25%;float:left;background-color: #44a066;}
- .sceen_18_14{width:20%;height:25%;float:left;background-color: #55a088;}
- .sceen_18_15{width:20%;height:25%;float:left;background-color: #00a000;}
- .sceen_18_16{width:20%;height:25%;float:left;background-color: #11a0aa;}
- .sceen_18_17{width:20%;height:25%;float:left;background-color: #22a0bb;}
- .sceen_18_18{width:20%;height:25%;float:left;background-color: #22a0bb;}
- .sceen_19_1{width:20%;height:33%;float:left;background-color: #11a0c6}
- .sceen_19_2{width:20%;height:33%;float:left;background-color: #22a0c6}
- .sceen_19_3{width:20%;height:33%;float:left;background-color: #77a0c6}
- .sceen_19_4{width:20%;height:33%;float:left;background-color: #88a0c6}
- .sceen_19_5{width:20%;height:33%;float:left;background-color: #99a0c6}
- .sceen_19_6{width:16%;height:17%;position:absolute;left:0;top:33%;background-color: #33a0c6;}
- .sceen_19_7{width:17%;height:17%;position:absolute;left:16%;top:33%;background-color: #44a0c6;}
- .sceen_19_8{width:16%;height:17%;position:absolute;left:0;bottom:33%;background-color: #22a022;}
- .sceen_19_9{width:17%;height:17%;position:absolute;left:16%;bottom:33%;background-color: #22a022;}
- .sceen_19_10{width:34%;height:34%;position:absolute;left:33%;bottom:33%;background-color: #33a044;}
- .sceen_19_11{width:16%;height:17%;position:absolute;right:17%;top:33%;background-color: #55a0c6;}
- .sceen_19_12{width:17%;height:17%;position:absolute;right:0;top:33%;background-color: #66a0c6;}
- .sceen_19_13{width:16%;height:17%;position:absolute;right:17%;bottom:33%;background-color: #44a066;}
- .sceen_19_14{width:17%;height:17%;position:absolute;right:0;bottom:33%;background-color: #55a088;}
- .sceen_19_15{width:20%;height:33%;position:absolute;left:0;bottom:0;background-color: #00a000;}
- .sceen_19_16{width:20%;height:33%;position:absolute;left:20%;bottom:0;background-color: #11a0aa;}
- .sceen_19_17{width:20%;height:33%;position:absolute;left:40%;bottom:0;background-color: #22a0bb;}
- .sceen_19_18{width:20%;height:33%;position:absolute;left:60%;bottom:0;background-color: #33a0cc;}
- .sceen_19_19{width:20%;height:33%;position:absolute;left:80%;bottom:0;background-color: #44a0dd;}
- .sceen_20_1{width:20%;height:25%;float:left;background-color: #11a0c6}
- .sceen_20_2{width:20%;height:25%;float:left;background-color: #22a0c6}
- .sceen_20_3{width:20%;height:25%;float:left;background-color: #77a0c6}
- .sceen_20_4{width:20%;height:25%;float:left;background-color: #88a0c6}
- .sceen_20_5{width:20%;height:25%;float:left;background-color: #99a0c6}
- .sceen_20_6{width:20%;height:25%;float:left;background-color: #33a0c6;}
- .sceen_20_7{width:20%;height:25%;float:left;background-color: #44a0c6;}
- .sceen_20_8{width:20%;height:25%;float:left;background-color: #22a022;}
- .sceen_20_9{width:20%;height:25%;float:left;background-color: #22a022;}
- .sceen_20_10{width:20%;height:25%;float:left;background-color: #33a044;}
- .sceen_20_11{width:20%;height:25%;float:left;background-color: #55a0c6;}
- .sceen_20_12{width:20%;height:25%;float:left;background-color: #66a0c6;}
- .sceen_20_13{width:20%;height:25%;float:left;background-color: #44a066;}
- .sceen_20_14{width:20%;height:25%;float:left;background-color: #55a088;}
- .sceen_20_15{width:20%;height:25%;float:left;background-color: #00a000;}
- .sceen_20_16{width:20%;height:25%;float:left;background-color: #11a0aa;}
- .sceen_20_17{width:20%;height:25%;float:left;background-color: #22a0bb;}
- .sceen_20_18{width:20%;height:25%;float:left;background-color: #33a0cc;}
- .sceen_20_19{width:20%;height:25%;float:left;background-color: #44a0dd;}
- .sceen_20_20{width:20%;height:25%;float:left;background-color: #55a0ee;}
- </style>
- </head>
- <body>
- <div class="title">
- <span class="title_text">无人机直播</span>
- <span class="in_sceen_box"><input id="in_sceen"><button id="sceen_btn" title="输入序号打开对应视频">打开</button></span>
- <span class="trigger"><strong style="opacity: 1;"></strong><em></em></span>
- </div>
- <div class="sceen_box">
- <div id="sub_ck_1" class="sceen_ck sceen_1_1" num="1"></div>
- </div>
- </body>
- <script type="text/javascript">
- $(function(){
- $("#sceen_btn").on("click",function(){
- var num = $("#in_sceen").val();
- var mv = new MonitoringVideo();
- mv.init_ckplay(num);
- });
- /* var mv = new MonitoringVideo();
- $("#sceen_btn").on("click",function(){
- var num = Number($("#in_sceen").val());
- $(".sceen_box").empty().addClass("sbn_"+num);
- for(var i = 1; i <= num; i++){
- var $ck_box = document.createElement("div");
- $ck_box.id = "sceen_" + i;
- $($ck_box).attr("num",i).addClass("sceen_ck").addClass("sceen_"+num+"_"+i);
- var $sub_ck_box = document.createElement("div");
- $sub_ck_box.id = "sub_ck_" + i;
- $($sub_ck_box).addClass("sub_ck_box");
- $($ck_box).append($sub_ck_box);
- $(".sceen_box").append($ck_box);
- mv.init_ckplay(i);
- };
- }); */
- });
- MonitoringVideo = function(){
- var _this = this;
- /* 初始化加载视频 */
- this.init_ckplay = function(name){
- var host = window.location.host;
- var flashvars={
- // f:'rtmp://120.76.41.198:8881/hls/livestream'+name,//无人机直播
- // f:'http://localhost:63342/TextOne/%E8%A7%86%E9%A2%91%E7%9B%B4%E6%92%AD/1.mp4',
- f:'rtmp://120.76.41.198:8881/hls/livestream13',//无人机1路直播
- c:0,
- p:'1',
- lv:'1',
- loaded:'loadedHandler',
- b:1
- };
- alert(flashvars.f)
- var params={bgcolor:'#FFF',allowFullScreen:true,allowScriptAccess:'always',wmode:'transparent'};
- //CKobject.embedSWF('/nwyj/page/cockpit/ckplayer6.7/ckplayer/ckplayer.swf','sub_ck_'+name,'ckplayer_a1','100%','100%',flashvars,params);
- CKobject.embedSWF('/nwyj/page/cockpit/ckplayer6.7/ckplayer/ckplayer.swf','sub_ck_1','ckplayer_a1','100%','100%',flashvars,params);
- };
- };
- var flashvars={
- // f:'http://localhost:63342/TextOne/%E8%A7%86%E9%A2%91%E7%9B%B4%E6%92%AD/1.mp4',
- // f:'rtmp://localhost/live/livestreame',
- // f:'rtmp://live.hkstv.hk.lxdns.com/live/hks',//香港卫视
- f:'rtmp://120.76.41.198:8881/hls/livestream13',//无人机1路直播
- c:0,
- p:'1',
- lv:'1',
- loaded:'loadedHandler',
- b:1
- };
- // var video=['http://live.hkstv.hk.lxdns.com/live/hks/playlist.m3u8'];
- // CKobject.embed('ckplayer/ckplayer.swf','a1','ckplayer_a1','600','400',false,flashvars,video);
- var params={bgcolor:'#FFF',allowFullScreen:true,allowScriptAccess:'always',wmode:'transparent'};
- CKobject.embedSWF('/nwyj/page/cockpit/ckplayer6.7/ckplayer/ckplayer.swf','sub_ck_1','_ck_1','100%','100%',flashvars,params);
- /*
- CKobject.embedSWF(播放器路径,容器id,播放器id/name,播放器宽,播放器高,flashvars的值,其它定义也可省略);
- 下面三行是调用html5播放器用到的
- */
- // 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'];
- // var support=['iPad','iPhone','ios','android+false','msie10+false'];
- // CKobject.embedHTML5('a1','ckplayer_a1',600,400,video,flashvars,support);
- function loadedHandler(){
- if(CKobject.getObjectById('_ck_1').getType()){
- alert('播放器已加载,调用的是HTML5播放模块');
- CKobject.getObjectById('_ck_1').addListener('play',playHandler);
- }
- else{
- alert('播放器已加载,调用的是Flash播放模块');
- CKobject.getObjectById('_ck_1').addListener('play','playHandler');
- }
- }
- function playHandler(){
- alert('播放了');
- }
- </script>
- </html>
|