private Size GetVideoSize() { Player.ValidatePlayerState(PlayerState.Ready, PlayerState.Playing, PlayerState.Paused); NativePlayer.GetVideoSize(Player.Handle, out var width, out var height). ThrowIfFailed(Player, "Failed to get the video size"); return(new Size(width, height)); }