搜索:

m3u8-hls形式播放视频,浏览本页效果请使用chrome,firefox,ie11浏览器

调用代码如下:

<script type="text/javascript" src="ckplayer/x/ckplayer.js"></script>
<div class="video" style="width: 1000px;height: 600px;"></div>
<script type="text/javascript">
	var videoObject = {
		container: '.video',//“#”代表容器的ID,“.”或“”代表容器的class
		variable: 'player',//该属性必需设置,值等于下面的new chplayer()的对象
		autoplay:true,
		html5m3u8:true,
		video:'http://cdn.theoplayer.com/video/star_wars_episode_vii-the_force_awakens_official_comic-con_2015_reel_(2015)/index.m3u8'//视频地址
	};
	var player=new ckplayer(videoObject);
</script>

支持在h5的环境中播放m3u8格式视频

Powered by ckplayer.com
Copyright©ckplayer,2011-2017( 苏ICP备11026158号 )