/// <summary> /// Gets the direction of view for spherical video. /// </summary> /// <returns>The <see cref="DirectionOfView"/> containing the angle information.</returns> /// <feature>http://tizen.org/feature/opengles.version.2_0</feature> /// <feature>http://tizen.org/feature/multimedia.player.spherical_video</feature> /// <exception cref="NotSupportedException">The required feature is not supported.</exception> /// <exception cref="ObjectDisposedException"> /// The <see cref="Multimedia.Player"/> that this instance belongs to has been disposed of. /// </exception> /// <since_tizen> 5 </since_tizen> public DirectionOfView GetDirectionOfView() { ValidationUtil.ValidateFeatureSupported(PlayerFeatures.OpenGl); ValidationUtil.ValidateFeatureSupported(PlayerFeatures.SphericalVideo); Player.ValidateNotDisposed(); NativePlayer.GetDirectionOfView(Player.Handle, out var yaw, out var pitch). ThrowIfFailed(Player, "Failed to get the direction of view"); return(new DirectionOfView(yaw, pitch)); }