Shopify / Shopify/react-native-skia

Some frames are missing at the very end of a video

Open
#2,493 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
8.6k
Forks
647
Avg merge
1d 17h
Merged PRs (30d)
35

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the video playback and current-time handling described in the issue, using the BigBuckBunny.mp4 URL to reproduce the mismatch between duration and the final currentTime values. Compare the web result with react-native-skia playback and verify that playback reaches and renders the final frame consistently. There are no file paths or tests named in the report.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native, typescript
Domain
audio-video-rtc, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.