Пример #1
0
        private void MenuItemVideotWindow_Click(object sender, RoutedEventArgs e)
        {
            var wnd = new VideoPlaybackWindow();

            wnd.Show();
            if (ScreenHandler.AllScreens > 1)
            {
                wnd.ShowOnMonitor(1);
                wnd.IsFullScreen = true;
            }
        }
        private void StartEmbededPlayer()
        {
            var wnd = new VideoPlaybackWindow();

            wnd.Show();
            if (ScreenHandler.AllScreens > 1)
            {
                wnd.ShowOnMonitor(1);
            }
            wnd.WindowState = WindowState.Maximized;
            wnd.VideoFile   = VideoFile;
            wnd.Volume      = SoundVolume * 1;

            wnd.Play();
        }
Пример #3
0
        private void InitVideoWindow()
        {
            if (m_VideoPlaybackWindow == null || !m_VideoPlaybackWindow.IsLoaded)
            {
                m_VideoPlaybackWindow = new VideoPlaybackWindow();
            }

            m_VideoPlaybackWindow.Show();
            m_VideoPlaybackWindow.VideoFile = info.MediaFilePath;

            if (ScreenHandler.AllScreens > 1)
            {
                m_VideoPlaybackWindow.ShowOnMonitor(1);
            }

            m_VideoPlaybackWindow.WindowState = WindowState.Maximized;
            m_VideoPlaybackWindow.Volume      = 0.5;
        }