ckplayer is a free software that plays video on a web page. The main features are: free, small, powerful, and convenient to customize.
any commercial website and non-commercial website (including personal, public interest website) can be used free of charge without modifying the right copyright.
Official Web site http://www.ckplayer.com/manual/10/1.htm
download address http://www.ckplayer.com/down/
[secure policy file]crossdomain.xml
>! -- m -->http:// www.ckplayer.com/manual/14/16.htm
generally, we use normal video formats such as MP4 and flv to play, but if the video files are too large, they will load slower.
so we can turn video into m3u8 format to solve this problem (you can see the Baidu m3u8 to understand the principle, simply that he cuts the video into several slices, each slice can be played independently and the size is small, and then play these files in a file index, so it's fast)
>! -- m -->http://www.cnblogs.com/saysmy/p/5629019.html
but it is not supported on PC. Fortunately, ckplayer has plug-ins that support m3u8 playing in PC.
but notice. There is a huge pit, do not install the configuration plug-in according to the instructions of ckplayer official website. There will be a variety of mistakes!
is actually very simple, download the plug-in: m3u8.swf http://bbs.ckplayer.com/forum.php? Any directory can be accessed. For convenience, I put it in the ckplyer plug-in folder.
OK! Configuration success! Is it very simple? Just copy the OK!
next is js:
[code]showPlayer ('http://static.guojiang.tv/pc/video/sound/1/playlist.m3u8','videoWrap')
function showPlayer (SRC, ID) {
> > > > > C: 0,
s:4,
lv:0//, if it is live, you need to set lv:1
};
var params={bgcolor:'#FFF', allowFullScreen:true, allowScriptAccess:'always', wmode:'transparent'}; /ckplayer/ckplayer.swf', ID,'ck-video','100%','100%', false, flashvars, video, params);
}[/code]
============================
remember: don't follow the steps of official website. Remember!