示例#1
0
        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);
            }
        }
示例#2
0
 // a media event has occured
 private void found_video_info(VideoInfoEventArgs args)
 {
     // auto aspect ratio is selected
     if (ratio == 0)
         AspectRatio = 0;
 }
示例#3
0
 private void OnPlayerFoundVideoInfo(VideoInfoEventArgs args)
 {
     handlePlayerLoading();
 }