Shopify / react-native-skia

High-performance React Native Graphics using Skia
https://shopify.github.io/react-native-skia
MIT License
6.64k stars 420 forks source link

Some frames are missing at the very end of a video #2493

Open ckswopnera opened 1 week ago

ckswopnera commented 1 week ago

Description

This is the url http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4

If I play the video in web then last frame should be

Screenshot 2024-06-24 at 2 25 46 PM

But while playing using skia the last frame is Screenshot_1719219441 Screenshot_1719219488

Version

"@shopify/react-native-skia": "^1.3.4",

Steps to reproduce

If I check the video duration then it is "duration": 596458 if I check current time after closing the video play then it gives me currentTime.value.toFixed(0)=596421 or 596425 or 596441 . different values most of the time.

Snack, code example, screenshot, or link to a repository

It never produces the last frame. it stops playing before the video actually stops.