コード例 #1
0
        /// <summary>
        /// Gets the level of the zoom of spherical video.
        /// </summary>
        /// <returns>The current zoom level of spherical video.</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 player has already been disposed of.</exception>
        /// <seealso cref="SetZoom(float)"/>
        /// <since_tizen> 5 </since_tizen>
        public float GetZoom()
        {
            ValidationUtil.ValidateFeatureSupported(PlayerFeatures.OpenGl);
            ValidationUtil.ValidateFeatureSupported(PlayerFeatures.SphericalVideo);

            Player.ValidateNotDisposed();

            NativePlayer.GetZoom(Player.Handle, out var value).
            ThrowIfFailed(Player, "Failed to get the level of the zoom");

            return(value);
        }