コード例 #1
0
ファイル: Player.cs プロジェクト: sahwar/gnome-subtitles
        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
ファイル: Theatre.cs プロジェクト: gsterjov/fusemc
 // a media event has occured
 private void found_video_info(VideoInfoEventArgs args)
 {
     // auto aspect ratio is selected
     if (ratio == 0)
         AspectRatio = 0;
 }
コード例 #3
0
ファイル: Video.cs プロジェクト: sahwar/gnome-subtitles
 private void OnPlayerFoundVideoInfo(VideoInfoEventArgs args)
 {
     handlePlayerLoading();
 }