1.0.3 • Published 7 years ago
react-player-beta v1.0.3
Video Play component to React
Description
The player supports responsive and mobile devices
NPM
npm i react-player-betaDemo
data
  [
    {
      "id"      : "1",
      "title"   : "茄子蛋EggPlantEgg - 浪流連 Waves Wandering (Official Music Video)",
      "src"     : "./assets/file/videoplayback1.mp4",
      "poster"  : "https://i.ytimg.com/vi/3Y0Ut5ozaKs/hqdefault.jpg?sqp=-oaymwEZCPYBEIoBSFXyq4qpAwsIARUAAIhCGAFwAQ==&rs=AOn4CLDlohyjxrPwOpwJU1i2ipVms3wYJQ"
    }
  ]id : render item key title : playing video title src : video file path/src poster : video player init main image
Use
  <Video
    date = {"video list Object"} 
    menu = {{
      "switch" : false / true,
      "title"  : "Menu head text"
    }}
  />Api
| Api | type | method | 
|---|---|---|
| data | Object | Object keys:id,title,src,poster | 
| menu | Object | Object keys: swtch: fslae/true(init:false),titile : "Menu head text" | 
| initSelectedPlay | number | initSelectedPlay = {"1,2,3,...."} |