Ejemplo n.º 1
0
        public TimeSpan GetCurrentVideoPosition()
        {
            DataReqEventArgs eData = new DataReqEventArgs();

            GetPosition?.Invoke(this, eData);
            return(eData.Position);
        }
Ejemplo n.º 2
0
 public void Toggle_Video_Position_Update()
 {
     bUpdateVidPos = !bUpdateVidPos;
     if (bUpdateVidPos)
     {
         DataReqEventArgs eData = new DataReqEventArgs();
         eData.Position = new TimeSpan(0, 0, 0, 0, Convert.ToInt32(dSaveVidPos));
         SetPosition?.Invoke(this, eData);
     }
 }
Ejemplo n.º 3
0
        public void Play_Pause_Video()
        {
            DataReqEventArgs eData = new DataReqEventArgs();

            if (PlayCtrlContent == "Play")
            {
                PlayRequest?.Invoke(this, eData);
                PlayCtrlContent = "Pause";
            }
            else
            {
                PauseRequest?.Invoke(this, eData);
                PlayCtrlContent = "Play";
            }
        }
Ejemplo n.º 4
0
        public void InitVideoCtrls()
        {
            DataReqEventArgs eData = new DataReqEventArgs();

            GetSource?.Invoke(this, eData);
            if (eData.Source != null)
            {
                // timer
                DispatcherTimer timer = new DispatcherTimer();
                timer.Interval = TimeSpan.FromMilliseconds(10);
                timer.Tick    += Timer_Tick;
                timer.Start();
            }
            NotifyPropertyChanged("VideoSpanLblContent");
            NotifyPropertyChanged("VideoPositionSldrMax");
        }