0.1.27 • Published 4 years ago
lesca-react-video-playsinline v0.1.27
Installation
$ npm install lesca-react-video-playsinline --save
Usage
import Player from 'lesca-react-video-playsinline';
reader(){
return(
<Player width='1080' height='768' />
)
}
Props
props | options | default |
---|---|---|
width | video width | 560px |
height | video height | 315px |
hide | style => display | visible |
fps | only mobile on ios device | 24 |
autoplay | mobile will mute | true |
loop | restart when video play end | false |
onend | event when video play end | |
onupdate | update state by every frame |
Method
props | options | default |
---|---|---|
getDom | return player DOM | |
hide | display = 'none' | |
show | display = 'block' | |
pause | pause video | |
play | play video | |
goto | goto video current time | |
currentTime | return video current time |
import Player from 'lesca-react-video-playsinline';
componentDidMount(){
let player = this.refs.player;
player.getDom(); // return <div class='video-playsinline-player'></div>
player.hide();
}
reader(){
return(
<Player ref='player' width='1080' height='768' />
)
}
0.1.27
4 years ago
0.1.20
4 years ago
0.1.21
4 years ago
0.1.22
4 years ago
0.1.23
4 years ago
0.1.24
4 years ago
0.1.25
4 years ago
0.1.26
4 years ago
0.1.19
4 years ago
0.1.15
5 years ago
0.1.16
5 years ago
0.1.17
5 years ago
0.1.18
5 years ago
0.1.14
5 years ago
0.1.13
5 years ago
0.1.12
5 years ago
0.1.11
5 years ago
0.1.10
5 years ago
0.1.8
5 years ago
0.1.7
5 years ago
0.1.9
5 years ago
0.1.6
5 years ago
0.1.4
5 years ago
0.1.5
5 years ago
0.1.3
5 years ago
0.1.2
5 years ago
0.0.2
5 years ago
0.0.1
5 years ago
0.0.0
5 years ago