Ejemplo n.º 1
0
        public VideoPlayerVM()
        {
            ViewPortsSwitchActive = true;
            CamerasConfig         = new RangeObservableCollection <CameraConfig> ();
            AbsoluteCurrentTime   = new Time(0);
            CurrentTime           = new Time(0);
            Step = new Time {
                TotalSeconds = 10
            };
            ShowDetachButton         = true;
            ShowCenterPlayHeadButton = true;

            ShowZoomCommand = new LimitationCommand(VASFeature.Zoom.ToString(),
                                                    () => {
                ShowZoom = true;
            })
            {
                Icon        = App.Current.ResourcesLocator.LoadIcon("vas-control-zoom", 15),
                ToolTipText = Catalog.GetString("Zoom"),
            };

            SetZoomCommand = new LimitationCommand <float> (VASFeature.Zoom.ToString(), zoomLevel => Player.SetZoom(zoomLevel));

            EditEventDurationCommand = new Command <bool> (b => Player.SetEditEventDurationMode(b))
            {
                Icon        = App.Current.ResourcesLocator.LoadIcon(Icons.PlayerControlTrim, Sizes.PlayerCapturerIconSize),
                Text        = Catalog.GetString("Edit event duration"),
                ToolTipText = Catalog.GetString("Edit event duration"),
                Executable  = false,
            };

            InitializeCommands();
            Duration    = new Time(0);
            CurrentTime = new Time(0);
            EditEventDurationTimeNode = new TimeNodeVM();
        }
Ejemplo n.º 2
0
 public MediaFileSetVM()
 {
     VisibleRegion = new TimeNodeVM();
 }