private void OnPlaybinFoundVideoInfo (VideoInfoEventArgs args) { Console.Error.WriteLine("Got video info: " + 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); }
private void OnPlayerFoundVideoInfo (VideoInfoEventArgs args) { handlePlayerLoading(); }