v0.6.1+
The video component can be used to embed video content in a weex page.
example
<template> <div> <text>Big Eater!</text> <video onstart='onstart' onpause='onpause' onfinish='onfinish' onfail='onfail' auto-play="false" play-status="pause" src="{{src}}" style="width:750;height:500;"></video> </div> </div> </template> <script> module.exports ={ data: { src:'http://flv2.bn.netease.com/videolib3/1611/01/XGqSL5981/SD/XGqSL5981-mobile.mp4' }, methods:{ onstart:function(e){ console.log('onstart'); console.log(e); }, onpause:function(e){ console.log('onpause'); }, onfinish:function(e){ console.log('onfinish'); }, onfail:function(e){ console.log('onfail'); }, } } </script>
Other attributes please check out the common attributes.
common styles: check out common styles for components