/// <summary> /// Gets the properties of the video. /// </summary> /// <returns>A <see cref="VideoStreamProperties"/> that contains the video stream information.</returns> /// <remarks> /// The <see cref="Multimedia.Player"/> that owns this instance must be in the <see cref="PlayerState.Ready"/>, /// <see cref="PlayerState.Playing"/>, or <see cref="PlayerState.Paused"/> state. /// </remarks> /// <exception cref="ObjectDisposedException"> /// The <see cref="Multimedia.Player"/> that this instance belongs to has been disposed of. /// </exception> /// <exception cref="InvalidOperationException"> /// The <see cref="Multimedia.Player"/> that this instance belongs to is not in the valid state. /// </exception> /// <since_tizen> 3 </since_tizen> public VideoStreamProperties GetVideoProperties() { Player.ValidatePlayerState(PlayerState.Ready, PlayerState.Playing, PlayerState.Paused); NativePlayer.GetVideoStreamInfo(Player.Handle, out var fps, out var bitRate). ThrowIfFailed(Player, "Failed to get the video stream info"); return(new VideoStreamProperties(fps, bitRate, GetVideoSize())); }