YouTubePlayerSupportFragment

YouTubePlayerSupportFragment

本文介绍了YouTubePlayerSupportFragment全屏按钮力量方向转变,而不会进入全屏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建 YouTubePlayerSupportFragment 。玩在纵向模式下工作得很好。虽然我点击播放器的全屏按钮不久就强制改变方向并重新建立我在(视频停止播放和片段重建)。

i am creating YouTubePlayerSupportFragment. Playing in portrait mode works just fine. As soon as i click the fullscreen button of the player it forces an orientation change and recreates the activity i am in (the video stops playing and the fragment is recreated).

这是我如何创建片段:

fragment = (YouTubePlayerSupportFragment) getSupportFragmentManager().findFragmentById(R.id.youtube_fragment);
fragment.initialize(Config.YOUTUBE_API_KEY, this);

在计算器上唯一类似的事情,我能找到的就是这个问题:YouTubePlayerSupportFragment开始复制活动

这家伙有同样的问题,但没有答案为止。

This guy has the same problem but no answer so far.

推荐答案

我的问题余did't调用super.onSaveInstanceState(二)我自己...的onSaveInstanceState

my problem was i did't call super.onSaveInstanceState(b) on my own onSaveInstanceState...

这篇关于YouTubePlayerSupportFragment全屏按钮力量方向转变,而不会进入全屏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-18 13:43