private void GetDirectionProperty() { Dispatcher.Invoke(new Action( delegate() { _direction = (VideoDirection)GetValue(DirectionProperty); } )); }
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; }
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); }