private void GetDirectionProperty()
 {
     Dispatcher.Invoke(new Action(
                           delegate()
     {
         _direction = (VideoDirection)GetValue(DirectionProperty);
     }
                           ));
 }
Ejemplo n.º 2
0
        private static void RaiseVideoAvailable(VideoWindow videoWindow, VideoDirection direction)
        {
            // Gets the current window style and modifies it
            long currentStyle = videoWindow.WindowStyle;

            currentStyle            = currentStyle & ~lDisableWindowStyles;
            currentStyle            = currentStyle | lEnableWindowStyles;
            videoWindow.WindowStyle = (int)currentStyle;

            videoWindow.Height = 100;
            videoWindow.Width  = 100;

            _incomingVideoStreamStarted = true;
            OnVideoAvailabilityChanged(new LyncVideoWindow(videoWindow), direction, true); // Allow any listeners to attach the video window, then make visible
            videoWindow.Visible = OATRUE;
        }
 private void GetDirectionProperty()
 {
     Dispatcher.Invoke(new Action(
         delegate()
         {
             _direction = (VideoDirection)GetValue(DirectionProperty);
         }
        ));
 }
Ejemplo n.º 4
0
 internal VideoAvailabilityChangedEventArgs(LyncVideoWindow videoWindow, VideoDirection direction, bool isAvailable)
 {
     VideoWindow = videoWindow;
     Direction   = direction;
     IsAvailable = isAvailable;
 }
Ejemplo n.º 5
0
 private static void OnVideoAvailabilityChanged(LyncVideoWindow videoWindow, VideoDirection direction, bool isAvailable)
 {
     VideoAvailabilityChanged(null, new VideoAvailabilityChangedEventArgs(videoWindow, direction, isAvailable));
 }
Ejemplo n.º 6
0
 private static void RaiseVideoUnavailable(VideoWindow videoWindow, VideoDirection direction)
 {
     _incomingVideoStreamStarted = false;
     OnVideoAvailabilityChanged(new LyncVideoWindow(videoWindow), direction, false);
 }
 internal VideoAvailabilityChangedEventArgs(LyncVideoWindow videoWindow, VideoDirection direction, bool isAvailable)
 {
     VideoWindow = videoWindow;
     Direction = direction;
     IsAvailable = isAvailable;
 }
 private static void OnVideoAvailabilityChanged(LyncVideoWindow videoWindow, VideoDirection direction, bool isAvailable)
 {
     VideoAvailabilityChanged(null, new VideoAvailabilityChangedEventArgs(videoWindow, direction, isAvailable));
 }
 private static void RaiseVideoUnavailable(VideoWindow videoWindow, VideoDirection direction)
 {
     _incomingVideoStreamStarted = false;
     OnVideoAvailabilityChanged(new LyncVideoWindow(videoWindow), direction, false);
 }
        private static void RaiseVideoAvailable(VideoWindow videoWindow, VideoDirection direction)
        {
            // Gets the current window style and modifies it
            long currentStyle = videoWindow.WindowStyle;
            currentStyle = currentStyle & ~lDisableWindowStyles;
            currentStyle = currentStyle | lEnableWindowStyles;
            videoWindow.WindowStyle = (int)currentStyle;

            videoWindow.Height = 100;
            videoWindow.Width = 100;

            _incomingVideoStreamStarted = true;
            OnVideoAvailabilityChanged(new LyncVideoWindow(videoWindow), direction, true); // Allow any listeners to attach the video window, then make visible
            videoWindow.Visible = OATRUE;
        }