googlevr / gvr-ios-sdk

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

GVRVideoView with AirPlay #237

Closed deltatre-team-mobile closed 7 years ago

deltatre-team-mobile commented 7 years ago

It's impossible to avoid casting 360 video if a user enable AirPlay screen casting. I would like to keep the 360 video in the smarphone, even if the user change the AirPlay setting from the device. Since it's not possible to access to the AVPlayer instance of GVRVideoView I cannot change the allowsExternalPlayback property of AVPlayer to avoid the screen casting. Here the official documentation to disable the external playback. Alternately you could expose a property to change that property.

Thanks

sanjayc77 commented 7 years ago

Take a look at GVRKit cocoapod, also released as source code in GVRSDK samples. It allows passing in AVPlayer instance to render video. You have full control over AVPlayer instance.