资源简介
<div id="a1" style="text-align:center;"></div>
<script type="text/javascript" src="./ckplayer/ckplayer.js" charset="utf-8"></script>
<script type="text/javascript">
window.onload = showPlayer('http://tv.sznews.com/live/live_250_mc169/playlist.m3u8', 'a1');
function showPlayer(src, id) {
//player
var flashvars = {
f: '/m3u8/ckplayer/m3u8.swf',
a: src,
c: 0,
s: 4,
p: 1,
lv: 1,//注意,如果是直播,需设置lv:1
my_pic: "loading.jpg"
};
var params = { bgcolor: '#FFF', allowFullScreen: true, allowScriptAccess: 'always', wmode: 'transparent' };
var video = [src];
var h = '570';
if (window.screen.width < 768) {
h = '100%';
}
CKobject.embed('/m3u8/ckplayer/ckplayer.swf', id, 'ck-video', '100%', h, false, flashvars, video, params);
console.log(h);
}
</script>
<script type="text/javascript" src="./ckplayer/ckplayer.js" charset="utf-8"></script>
<script type="text/javascript">
window.onload = showPlayer('http://tv.sznews.com/live/live_250_mc169/playlist.m3u8', 'a1');
function showPlayer(src, id) {
//player
var flashvars = {
f: '/m3u8/ckplayer/m3u8.swf',
a: src,
c: 0,
s: 4,
p: 1,
lv: 1,//注意,如果是直播,需设置lv:1
my_pic: "loading.jpg"
};
var params = { bgcolor: '#FFF', allowFullScreen: true, allowScriptAccess: 'always', wmode: 'transparent' };
var video = [src];
var h = '570';
if (window.screen.width < 768) {
h = '100%';
}
CKobject.embed('/m3u8/ckplayer/ckplayer.swf', id, 'ck-video', '100%', h, false, flashvars, video, params);
console.log(h);
}
</script>
评论
共有 条评论