Closed sajjadshahbazi closed 2 years ago
2.17.1
all devices
No response
Yes
I want to play an mp4 link and after playing that, I want to clear the StyledPlayerView view. but StyledPlayerView keeps the last frame of the mp4 link. I can't invalidate the StyledPlayerView widget.
mp4 link : https://res.namava.ir/709-147fb5722f543315ad5388d415afd0e8.mp4
I expect when Invalidate StyledPlayerView Widget, the view of StyledPlayerView to be black. same as the state of before assign exoPlayer.
I invalidate the StyledPlayerView widget, but StyledPlayerView keeps the last frame of the mp4 link.
https://res.namava.ir/709-147fb5722f543315ad5388d415afd0e8.mp4
adb bugreport
If you want to reset the view back to how it was before the player was assigned, you should either:
playerView.setPlayer(null)
or
player.stop();
player.clearMediaItems();
thank you
ExoPlayer Version
2.17.1
Devices that reproduce the issue
all devices
Devices that do not reproduce the issue
No response
Reproducible in the demo app?
Yes
Reproduction steps
I want to play an mp4 link and after playing that, I want to clear the StyledPlayerView view. but StyledPlayerView keeps the last frame of the mp4 link. I can't invalidate the StyledPlayerView widget.
mp4 link : https://res.namava.ir/709-147fb5722f543315ad5388d415afd0e8.mp4
Expected result
I expect when Invalidate StyledPlayerView Widget, the view of StyledPlayerView to be black. same as the state of before assign exoPlayer.
Actual result
I invalidate the StyledPlayerView widget, but StyledPlayerView keeps the last frame of the mp4 link.
Media
https://res.namava.ir/709-147fb5722f543315ad5388d415afd0e8.mp4
Bug Report
adb bugreport
to dev.exoplayer@gmail.com after filing this issue.