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.
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.
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