-
Notifications
You must be signed in to change notification settings - Fork 405
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
Video loaded from resources is stuck at BUFFERING state #1132
Comments
@DenislavNedev |
Hi all. As you can see from the mention in the timeline, I think we are seeing an issue in AVPro Video (a Unity video playback asset) that maybe a manifestation of this issue. I think we are only seeing it when we create a new ExoPlayer object every time we play a video (opening the same video over and over on a persistent ExoPlayer object seems fine), destroying the previous one before the creation of the new one. Also, I think it is only seen with a video that has no audio tracks. The issue was not 100% reproducible, but we can make it happen often. What led me here is that the player was getting stuck in the buffering state, and we would get no 'onVideoSizeChanged(...)' callback firing when the video was getting stuck...and the times it was playing as expected I was seeing this fire and then moving out of the buffering state. Devices tested (issue seen on all of them):
|
It seems this only resolve for some videos only |
@peterstickermaker For us, deferral our surface creation/attach by two frames from where we were doing it (which was in a callback) seems to have fixed the issue. Strange it is 2 frames...1 frame made things better, but did not completely eradicate the problem. |
Version
Media3 1.2.0
More version details
No response
Devices that reproduce the issue
Devices that do not reproduce the issue
Reproducible in the demo app?
Yes
Reproduction steps
I am playing video as a background of the app. The app is using Jetpack Compose. The video is located in the
raw
folder in the resources and it is played automatically when the app is started. Sometimes the video is not playing and a black screen is shown. I've attachedEventLogger
and saw that the player is stuck atBUFFERING
state.EventLogger
when the video is working:EventLogger
when the video is not workingThis issue is happening sometimes on different devices. On Xiaomi Mi10 Lite is happening once in 20-30 startups, while on Samsung A12 almost whenever the app is opened. I tried reproducing it on an emulator with low RAM and memory, but the video was still playing.
Note: This is a copy of #944 because the other issue was not reopened after I've sent the media.
Expected result
Play the video all the time.
Actual result
Video is not played sometimes.
Media
I've send the media file to the email
Bug Report
adb bugreport
to android-media-github@google.com after filing this issue.The text was updated successfully, but these errors were encountered: