HTML5 Video Player: playease.js,支持FLV/fMP4/DASH等,兼容IE8+

playease.js

这是一个HTML5播放器,支持RTMP(IE8-10)、HTTP/WebSocket-FLV、HTTP/WebSocket-fMP4、MPEG-DASH、HLS(iOS)等直播,以及HTML5之3大格式(eg. Ogg, Mpeg4, WebM)。同样采用MVC、事件驱动等,源码易于阅读和扩展。

HTML5 Video Player: playease.js,支持FLV/fMP4/DASH等,兼容IE8+_第1张图片

项目地址:https://github.com/studease/playease

快速预览:http://studease.cn/playease.html

 

配置示例:

 

playease('player').setup({
	width: width,
	height: height,
	aspectratio: '16:9',
	file: '/vod/sample.flv',
	/*sources: [{
		file: 'http://127.0.0.1/live/sample.flv',
		type: 'flv',
		label: 'HTTP-FLV'
	}, {
		file: 'ws://127.0.0.1/live/sample.flv',
		type: 'flv',
		label: 'WS-FLV'
	}, {
		file: 'ws://127.0.0.1/live/sample',
		type: 'wss',
		label: 'WS-fMP4'
	}, {
		file: 'http://127.0.0.1/live/sample/manifest.mpd',
		type: 'dash',
		label: 'MPEG-DASH'
	}, {
		file: 'rtmp://127.0.0.1/live/sample',
		type: 'flash',
		label: 'RTMP-STREAM'
	}, {
		file: 'http://127.0.0.1/live/sample/index.m3u8',
		type: 'def'
	}],*/
	mode: 'vod',
	bufferTime: 1,
	maxRetries: 0,
	retryDelay: 3000,
	controls: true,
	autoplay: false,
	//poster: 'sample.png',
	//report: true,
	loader: {
		name: 'xhr-chunked-loader',
		chunkSize: 2 * 1024 * 1024,
		mode: 'cors'
	},
	bulletCurtain: {
		enable: true,
		visible: true
	},
	fullpage: {
		visible: false
	},
	render: {
		name: 'flv',
		bufferLength: 4 * 1024 * 1024,
		swf: '../swf/playease.swf'
	}
});

 

 

 

 

 

更多细节见项目主页

 

你可能感兴趣的:(html5,flash,media)