阅读背景:

视频视图可以在不停止流的情况下分离和重新连接吗?

来源:互联网 

I'm building an app where the user clicks on a button to show a video full screen. Initially the video is attached to a view inside a ViewPager. To be able to show it fullscreen I detach it from its parent and reattach it to the root view. This works fine, except when the video is switched to fullscreen while playing. When I detach a playing VideoView it just stop and I need to restart it. This is not acceptable since the video starts buffering before resume. Here the part of the code where the detach is done:I'm building an app where the user clicks on a




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: