当关联的音频在后台播放时,表面视图显示为黑色(android)
我基本上使用自定义媒体播放器运行一组视频轨道。一切正常,直到我按主页按钮或转到任何其他屏幕,然后返回视频播放屏幕后,我只能在视频播放时听到音轨,并且屏幕显示为黑色。
我还想强调另一个问题,我有一个权宜之计,即当我在播放列表中切换视频时,表面视图保留了先前播放的视频的最后一帧或图像。我尝试过invalidate()
、强制布局以及我能想到的所有可能的刷新屏幕的方法,但我找不到针对上述两个问题的适当解决方案。
I am basically running a set of video tracks using a custom media player. Every thing works fine until I press home button or go to any other screen, then on after returning to the video play screen I can only hear the audio track as the videos play and screen appears black.
I would also like to highlight another issue for which i have got a stop gap arrangement, which is when i switch videos in the playlist, the surface view retains the last frame or image of the video that was previously played. I have tried to invalidate()
, force the layout and all possible ways to refresh screen that i could think of, yet I couldn't find an appropriate solution for both of the issues mentioned.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论