googlevr / gvr-ios-sdk

Google VR SDK for iOS
http://developers.google.com/vr/ios/
Other
645 stars 191 forks source link

GVRVideoView, seekTo has too low timescale #252

Closed markusekblad closed 7 years ago

markusekblad commented 7 years ago

When trying to seek to a time with milliseconds, CMTimeMake shows a warning for using too low timescale

CMTimeMakeWithSeconds(30.229 seconds, timescale 1): warning: error of -0.229 introduced due to very low timescale

It makes it difficult to try to sync the video to an external audio player.

sanjayc77 commented 7 years ago

Just updated to 1.80. This includes GVRKit cocoapod, which is also provided as sample code: See: https://github.com/googlevr/gvr-ios-sdk/blob/master/Samples/GVRKit/GVRVideoRenderer.h and the updated https://github.com/googlevr/gvr-ios-sdk/tree/master/Samples/VideoWidgetDemo sample.

GVRVideoRenderer lets you provide your own AVPlayer, which you can control yourself.

You should migrate away from GVRVideoView, as that would be deprecated in a future release.