Пример #1
0
        public void View(string path, ContextObject context)
        {
            _vp = new ViewerPanel(context);

            context.ViewerContent = _vp;

            context.Title = $"{Path.GetFileName(path)}";

            _vp.LoadAndPlay(path, _mediaInfo);
        }
Пример #2
0
        public void View(string path, ContextObject context)
        {
            _vp = new ViewerPanel(context, probe.HasVideo());

            context.ViewerContent = _vp;

            _vp.mediaElement.MediaOpened += MediaElement_MediaOpened;
            _vp.LoadAndPlay(path);

            context.Title = $"{Path.GetFileName(path)}";
        }
Пример #3
0
        public void View(string path, ContextObject context)
        {
            _vp = new ViewerPanel(context);

            context.ViewerContent = _vp;

            _vp.LoadAndPlay(path);

            context.Title =
                $"{Path.GetFileName(path)} ({_vp.mediaElement.NaturalVideoWidth}×{_vp.mediaElement.NaturalVideoHeight})";
            context.IsBusy = false;
        }
Пример #4
0
        public void View(string path, ContextObject context)
        {
            _vp = new ViewerPanel(context);

            context.ViewerContent = _vp;

            _vp.mediaElement.VlcMediaPlayer.Opening += MarkReady;

            _vp.LoadAndPlay(path);

            context.Title = $"{Path.GetFileName(path)}";
        }
Пример #5
0
        public void View(string path, ContextObject context)
        {
            _vp = new ViewerPanel(context);

            context.ViewerContent = _vp;

            _vp.mediaElement.VlcMediaPlayer.Opening += (sender, e) => context.IsBusy = false;

            _vp.LoadAndPlay(path);

            var info = _mediaSize == Size.Empty ? "Audio" : $"{_mediaSize.Width}×{_mediaSize.Height}";

            context.Title =
                $"{Path.GetFileName(path)} ({info})";
        }