demo.html 721 Bytes
<div id="video" class="page out" data-title="视频插件">
	<div id="video-header"></div>
	<div id="video-a"></div>
</div>
<script>
require(["NavHeader", "Video"], function(NavHeader, Video) {
	var _u = require("mUtil");
	var hasClsPicker = typeof clsPicker !== "undefined";
	if(!hasClsPicker) {
		new NavHeader({
			el: "video-header",
			option: {
				title:"视频插件", 
				smallTitle:"video"
			}
		}).render();
	}
	new Video({
		el: "video-a",
		option: {
			url : "http://e8pc.e-cology.com.cn/mobilemode/upload/videos/14703758665431691864853.mp4",
			autoplay : true,
			loop : true,
			width: "100%"
		}
	}).render().then(function(){
		if (!hasClsPicker) return;
		_u.vetically("#video-a");
	});
});
</script>