rat-video

0.1.28 • Public • Published

rat-video

组件介绍

rat 中的视频播放组件。

API

参数 说明 类型 默认值 是否必填
autoPlay 设置视频自动播放 bool true
src 视频地址 String

demo

import React from 'react';
import RatVideo from 'rat-video';

class App extends React.Component {
  constructor(props) {
    super(props);
  }
  render() {
    return (
      <div>
        <RatVideo 
          src={'https://cloud.video.taobao.com/play/u/2780279213/p/1/e/6/t/1/d/ld/36255062.mp4'}
          autoPlay={true}
          style={{width: 500, height: 500}}
        >
          
        </RatVideo>
      </div>
      )
    }
}

Readme

Keywords

Package Sidebar

Install

npm i rat-video

Weekly Downloads

7

Version

0.1.28

License

BSD-3-Clause

Unpacked Size

27.7 kB

Total Files

12

Last publish

Collaborators

  • 55555azhe
  • bondli