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

deanc picture deanc  路  3Comments

kay-is picture kay-is  路  3Comments

Chubacca picture Chubacca  路  3Comments

pppluto picture pppluto  路  3Comments

joshyg picture joshyg  路  3Comments