请告诉我们使用VrVideoView的最低API [英] Please tell us the minimum API for using VrVideoView
问题描述
我试图在两个智能手机(galaxy grand max(android4.4.4)& galaxy j5 2017(android 8.1))上运行由VrVideoView制作的应用程序。
我的应用程序在android 8.1上运行良好,但在android 4.4上运行不佳。
尽管该视频是在android 4.4中播放的,但它没有响应我的智能手机运动,并显示了前视图。
所以我想知道VrVideoView正常工作的最低规格。谢谢
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
推荐答案
运行 Google-VR-SDK
的最低Android API级别是19岁,但您的问题还有其他问题!看来您的装置(Grand Max Max)没有陀螺仪!因此,您应该建立另一种方法来控制播放视频的角度视图。
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.
尝试在您的 OnCreate
方法中使用此代码段启用纯触摸跟踪:
Try using this snippet in your OnCreate
method to enable pure touch tracking:
if (!getPackageManager().hasSystemFeature(PackageManager.FEATURE_SENSOR_GYROSCOPE)) {
videoWidgetView.setPureTouchTracking(true);
}
希望它能起作用:)
这篇关于请告诉我们使用VrVideoView的最低API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!