question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

frames were skipped when resuming video after pause

See original GitHub issue

Issue description

I am facing an issue where ExoPlayer is somehow skipping frames on certain devices when playing a video after it has been paused. When resuming the video, exoplayer continues playback from stopped position + 200 to 500 ms (maybe it continues playback from one of the next/closest sync point). This may sound more like a nitpick to you, but our user experience highly depends on a smooth video playback.

I am happy to dig deep into the Exoplayer implementation to find a solution or at least a workaround for the issue, but maybe you guys already have an idea or a good starting point for me.

Reproduction steps

This issue was seen on a Samsung Galaxy A20e with Android 9 running sample/demo from this repository

Link to test content

happens for all videos of the demoapp

A full bug report captured from the device

bugreport-2020-01-22-13-46-54.zip

Version of ExoPlayer being used

Seen on version 2.9.0 and 2.11.1

Device(s) and version(s) of Android being used

Seen on Samsung Galaxy A20e with Android 9

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ojw28commented, Jun 2, 2020

The commit ref’d above should make resumption after pausing a lot smoother. It will make it into the 2.11.5 release. Please let us know if you have any feedback!

1reaction
icbakercommented, Jan 22, 2020

Possibly relevant log line (i.e. 4 frames were dropped):

01-22 13:38:50.327 10257 21907 21907 D EventLogger: droppedFrames [eventTime=4.15, mediaPos=0.62, window=0, period=0, 4]

There are 53 other similar lines, always between 1 & 5 frames dropped.

I’ll keep digging.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[SOLVED] Dropping frames after resuming video playback ...
If I pause a video in mpv or GNOME Videos for at least 10 seconds and resume playback, the video skips. It happens...
Read more >
Video stops after pausing? - The VideoLAN Forums
Pause a video ... Video plays for a couple of frames and stops ... STOP button and then Continue playback properly resumes video...
Read more >
526411 - after pausing a video it often won't restart playing later
The symptoms I'm seeing are these: when resuming playback (after ... usually won't have more than 250ms of audio available ahead of the...
Read more >
Problem with Media Play skipping forward after being paused
1.Press Windows key + X and select Control Panel. 2. In the search box, type troubleshooter, and then click Troubleshooting. 3. Click View...
Read more >
What is the potential impact of PAUSE frames on a network ...
Therefore, Ethernet PAUSE frames are not associated with, and cannot be ... The transmitter (switch, in this example), is expected to resume ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found