onBuffer callback not working with HLS
See original GitHub issuei’m trying to use onBuffer
to show a loading spinner while the video buffers, however the callback is never fired. the following is my component call
<ReactPlayer
ref={this.ref}
style={style}
url={this.props.url}
width={'100%'}
height={'100%'}
playing={this.state.playing}
onDuration={(i) => this.onDurationHandler(i)}
onProgress={(i) => this.onProgressHandler(i)}
onBuffer={() => this.onBufferHandler()}
onPlay={() => this.onPlayHander()}
/>
then higher up in my component i have the following:
onBufferHandler() {
console.log('onBufferHandler');
this.setState({isBuffering: true});
}
this occurs when trying to play an hls file. the file plays fine, and the other callbacks appear to work the way i expect. is this something i need to do by exposing the hls.js player?
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
onBuffer callback not working with HLS · Issue #466 - GitHub
i'm trying to use onBuffer to show a loading spinner while the video buffers, however the callback is never fired. the following is...
Read more >react-native-video video on demand dash or hls streaming ...
I make downgrade to version 4.4.4. It worked for me. Code example: <Video onError={this.onError} onBuffer={this.onBuffer} onProgress={this.
Read more >Developers - onBuffer doesn't work as expected anymore -
onBuffer doesn't work as expected anymore. ... The onBuffer callback is always true after upgrading to version 5. It never returns false even...
Read more >ReactPlayer - Best of JS
ReactPlayer v2.0 changes single player imports and adds lazy loading players. ... Callback props take a function that gets fired on various player...
Read more >react-native-video - npm
Start using react-native-video in your project by running `npm i ... onBuffer} // Callback when remote video is buffering onError={this.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m experiencing this, too. Should it be defined in
src/Player.js
?Anything on this?