React-native-video: Videos loop only 3 times on iOS

Created on 2 Jul 2018  路  1Comment  路  Source: react-native-video/react-native-video

Current behavior

I have videos that I want to make loop infinitely.
I set the repeat prop to true and it works perfectly on Android, the video loops infinitely.
But on iOS, the video stops after 3 loops and the player turns to a black screen.

Reproduction steps

Try to loop a video more than 3 times on iOS

Platform

  • iOS

Most helpful comment

I'm having the same issue. This worked for me though.

onEnd={() => {
    this.video.seek(0)
}}

And make sure repeat is set to false

repeat={false}

Hope this helps

>All comments

I'm having the same issue. This worked for me though.

onEnd={() => {
    this.video.seek(0)
}}

And make sure repeat is set to false

repeat={false}

Hope this helps

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jonathangreco picture jonathangreco  路  56Comments

kkesley picture kkesley  路  27Comments

thetrevlore picture thetrevlore  路  21Comments

cande1gut picture cande1gut  路  19Comments

nicoara picture nicoara  路  24Comments