React-player: Set playing to true doesnt play the video on iOS

Created on 20 Aug 2018  路  1Comment  路  Source: cookpete/react-player

Hi,

Im using the latest version of your player which is great!
I have an issue with my videos on iOS...

Its just doesnt play although its set to mute (only in safari)
android works just fine

<ReactPlayer ref={videoRef => (this._videoPlayer = videoRef)} url={this.urlsArray} style={style} playing={this.shouldPlayVideo()} config={config} muted={true} volume={0} loop={loop} width="100%" height="100%" />

This is how I use it... this.shouldPlayVideo returns true or false.
Im trying to play a video from a file....

Thanks for your help!

Most helpful comment

Solved, if someone else encounters this issue the missing part was to add playsinline={true} to the component props

>All comments

Solved, if someone else encounters this issue the missing part was to add playsinline={true} to the component props

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MDrooker picture MDrooker  路  6Comments

rebelliard picture rebelliard  路  3Comments

johnking picture johnking  路  4Comments

sedubois picture sedubois  路  6Comments

denishrana09 picture denishrana09  路  3Comments