Please tell us the minimum API for using VrVideoView

二次信任 提交于 2019-12-13 08:37:50

问题


I tried to run an application made with VrVideoView on two smartphones (galaxy grand max (android4.4.4) & galaxy j5 2017 (android 8.1)). My app worked fine in android 8.1, but it did not work well in android 4.4. Although the video was played in android 4.4, It did not respond to my smartphone movement and showed front view. So I want to know the minimum specifications for VrVideoView to work properly. Thanks


回答1:


Minimum Android API level for running Google-VR-SDK is 19 but your problem is something else! It seems your device (galaxy grand max) has no Gyroscope! So you should establish another way to control angle view of playing video.

Try using this snippet in your OnCreate method to enable pure touch tracking:

if (!getPackageManager().hasSystemFeature(PackageManager.FEATURE_SENSOR_GYROSCOPE)) {
    videoWidgetView.setPureTouchTracking(true);
}

Hope it works :)



来源:https://stackoverflow.com/questions/55173915/please-tell-us-the-minimum-api-for-using-vrvideoview

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!