Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

seekToDefaultPosition doesn't start the playback from the live position or live edge #1777

Open
1 task done
avenger-8 opened this issue Oct 4, 2024 · 1 comment
Open
1 task done
Assignees

Comments

@avenger-8
Copy link

Version

Media3 1.3.1

More version details

No response

Devices that reproduce the issue

Pixel 8 Pro running Android 14

Devices that do not reproduce the issue

No response

Reproducible in the demo app?

Not tested

Reproduction steps

  1. Play a live audio stream
  2. Pause the live stream
  3. Play it again

Expected result

The playback position should be in line with the live 'head' of the stream when paused. So, when the playback is resumed it plays from the live posiiton and not from the position it was paused.

fun pause() { player.pause() }

fun play() { if (isLive) { player.seekToDefaultPosition() player.prepare() } player.play() }

Actual result

The live stream audio resumes from the point it was paused.

Media

The issue is not dependent on a particular Media item. It needs to be a live audio stream for it to be reproducible.

Bug Report

  • You will email the zip file produced by adb bugreport to [email protected] after filing this issue.
@icbaker
Copy link
Collaborator

icbaker commented Oct 7, 2024

It needs to be a live audio stream for it to be reproducible.

Please provide a link to such a stream that we can use to reproduce (otherwise our interpretation of this might be different to you, which will waste time trying to repro with the wrong setup). Please either post it here or send it to [email protected] with the subject Issue #1777. Please also update this issue to indicate you’ve done this.

@icbaker icbaker self-assigned this Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants