问题描述
这个方法我试过了
@Override
public void onUserLeaveHint () {
PictureInPictureParams pip = new PictureInPictureParams.Builder()
.setAspectRatio(new Rational(16,9))
.build();
enterPictureInPictureMode(pip);
}
清单文件
<activity android:name=".ContentViewActivity"
android:resizeableActivity="true"
android:supportsPictureInPicture="true"
android:configChanges="screenSize|smallestScreenSize|screenLayout|orientation"
android:screenorientation="landscape">
</activity>
问题是来自 webview 的视频暂停并且 webview 没有保持全屏
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)