One or two black frames when using `switchTargetView`
@oceanjules is already working on this.
Since Dec 23, 2024.
- Dominant language
- Java
- Stars
- 3k
- Forks
- 955
- Avg merge
- 12d 14h
- Merged PRs (30d)
- 2
Description
Version
Media3 1.5.0
More version details
No response
Devices that reproduce the issue
Pixel 6 running API 35 (Android 15)
Devices that do not reproduce the issue
No response
Reproducible in the demo app?
Not tested
Reproduction steps
I need to transfer playback from one player view to another. I use Player.switchTargetView for this purpose. This results in one or two black frames when switching to the new player. Interestingly enough, I don't see this when switching back to the original player view.
I've also tried the attaching the new player view for a while to let the surfaces be created before doing this. Also, I'm using a texture view for this.
I don't have a video of the issue but you can observe the same behavior in this video: https://bsky.app/profile/halilibo.com/post/3la3cc6rdhm25
Expected result
There should be no black frames when switching player views.
Actual result
There are a few black frames when switching player views.
Media
I will share the media later (after the holidays)
Bug Report
- You will email the zip file produced by
adb bugreportto android-media-github@google.com after filing this issue.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.