Google VR 视图 - 头部跟踪

Google VR View - Head Tracking

所以我正在使用 Google VR View/Cardboard SDK android 在我的应用程序中显示 360 度全景视频。然而,头部跟踪似乎不适用于 google 示例应用程序或我自己的应用程序。

是否有我缺少的方法或函数可以启用他们描述的此功能?

这就是我调用视频的方式 VR Video View:

    @Nullable
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
    View view = inflater.inflate(R.layout.fragment_fourth, container,false);
    videoWidgetView = (VrVideoView) view.findViewById(R.id.video_view);

    try {
        videoWidgetView.loadVideoFromAsset("video.mp4", null);
        videoWidgetView.pauseVideo();
    } catch(IOException ex) {
        //Do nothing
    }

    Button mClickButton1 = (Button) view.findViewById(R.id.button);
    mClickButton1.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View view) {
                videoWidgetView.playVideo();
        }
    });


    setRetainInstance(true);
    return view;
}

//Set title
public void onResume(){
    super.onResume();
    ((MainActivity) getActivity()).setActionBarTitle("VR Experience");


}

要使头部跟踪正常工作,设备必须具有嵌入式陀螺仪。来自 iOS 我惊讶地发现大量 android 设备(包括我正在测试的设备)没有此功能。如果他们没有,则只能通过滑动来工作。