Пример #1
0
        void vc_FlashCallback(YoYoStudio.Controls.Winform.FlexCallbackCommand cmd, List <string> args)
        {
            VideoWindowViewModel vm = DataContext as VideoWindowViewModel;

            if (vm != null && vm.UserVM != null)
            {
                switch (cmd)
                {
                case YoYoStudio.Controls.Winform.FlexCallbackCommand.ZoomIn:
                    Width  = Width * 1.1;
                    Height = Height * 1.1;
                    break;

                case YoYoStudio.Controls.Winform.FlexCallbackCommand.ZoomOut:
                    Width  = Width * 0.9;
                    Height = Height * 0.9;
                    break;

                case YoYoStudio.Controls.Winform.FlexCallbackCommand.LoadComplete:
                    vc.CallFlash(YoYoStudio.Controls.Winform.FlexCommand.ConnectRTMP, vm.UserVM.RoomWindowVM.RoomVM.RtmpUrl);
                    break;

                default:
                    break;
                }
            }
        }
Пример #2
0
 void videoControl_FlashCallback(YoYoStudio.Controls.Winform.FlexCallbackCommand cmd, List <string> args)
 {
     switch (cmd)
     {
     case YoYoStudio.Controls.Winform.FlexCallbackCommand.LoadComplete:
         var cameras = videoControl.CallFlash(YoYoStudio.Controls.Winform.FlexCommand.GetCameras).ToList();
         CameraWindowViewModel cvm = videoControl.DataContext as CameraWindowViewModel;
         if (cvm != null)
         {
             cvm.Cameras = new System.Collections.ObjectModel.ObservableCollection <string>(cameras);
         }
         break;
     }
 }
Пример #3
0
        void musicControl_FlashCallback(YoYoStudio.Controls.Winform.FlexCallbackCommand cmd, List <string> args)
        {
            switch (cmd)
            {
            case YoYoStudio.Controls.Winform.FlexCallbackCommand.None:
                break;

            case YoYoStudio.Controls.Winform.FlexCallbackCommand.ReportStatus:
                break;

            case YoYoStudio.Controls.Winform.FlexCallbackCommand.LoadComplete:
                break;

            default:
                break;
            }
        }
 void videoControl_FlashCallback(YoYoStudio.Controls.Winform.FlexCallbackCommand cmd, List <string> args)
 {
     switch (cmd)
     {
     case YoYoStudio.Controls.Winform.FlexCallbackCommand.LoadComplete:
         var cameras = new List <string> {
             ""
         };
         string[] cams = videoControl.CallFlash(YoYoStudio.Controls.Winform.FlexCommand.GetCameras);
         if (cams != null && cams.Length > 0)
         {
             cameras.AddRange(cams);
         }
         VideoConfigurationViewModel cvm = videoControl.DataContext as VideoConfigurationViewModel;
         if (cvm != null)
         {
             cvm.Cameras = new System.Collections.ObjectModel.ObservableCollection <string>(cameras);
         }
         break;
     }
 }
Пример #5
0
 void videoControl_FlashCallback(YoYoStudio.Controls.Winform.FlexCallbackCommand cmd, List <string> args)
 {
     //videoControl.CallFlash(YoYoStudio.Controls.Winform.FlexCommand.ConnectRTMP, "");
 }