private void OnPlaybinFoundVideoInfo(VideoInfoEventArgs args) { Logger.Info("[Player] Media info: {0}", args.VideoInfo.ToString()); this.videoInfo = args.VideoInfo; /* Set defaults if there is no video */ if (!videoInfo.HasVideo) { videoInfo.FrameRate = SubtitleConstants.DefaultFrameRate; videoInfo.AspectRatio = DefaultAspectRatio; } frame.Ratio = videoInfo.AspectRatio; if (FoundVideoInfo != null) { FoundVideoInfo(args); } }
// a media event has occured private void found_video_info(VideoInfoEventArgs args) { // auto aspect ratio is selected if (ratio == 0) AspectRatio = 0; }
private void OnPlayerFoundVideoInfo(VideoInfoEventArgs args) { handlePlayerLoading(); }