rax-video
支持
Web / Weex / 阿里小程序 / 微信小程序 / 字节跳动小程序
描述
视频播放组件
安装
$ npm install rax-video --save
属性
示例
import { createElement, render } from 'rax';
import Video from 'rax-video';
import DriverUniversal from 'driver-universal';
function VideoDemo() {
return (
<Video
src="https://cloud.video.taobao.com/play/u/2780279213/p/1/e/6/t/1/d/ld/36255062.mp4"
style={{ width: 750, height: 400 }}
autoPlay
/>
);
}
render(<VideoDemo />, document.body, { driver: DriverUniversal });