public PlaybackViewModel(IOnvifServiceAggregator onvifServiceAggregator, IMvxMessenger messenger, IMvxJsonConverter jsonConverter, ISettings settingsStorage) : base(messenger, jsonConverter) { _onvifServiceAggregator = onvifServiceAggregator; _settingsStorage = settingsStorage; MediaPlayerViewModel = new MediaPlayerViewModel(messenger, true); RestAPIViewModel = new RestAPIViewModel(messenger, jsonConverter); }
public LiveViewModel(IOnvifServiceAggregator onvifServiceAggregator, IMvxMessenger messenger, IMvxJsonConverter jsonConverter, ISettings settingsStorage) : base(messenger, jsonConverter) { _onvifServiceAggregator = onvifServiceAggregator; _settingsStorage = settingsStorage; PTZControlViewModel = new PTZControlViewModel(this, onvifServiceAggregator, messenger, jsonConverter); MediaPlayerViewModel = new MediaPlayerViewModel(messenger); }
public QuadCellViewModel(QuadViewModel quadViewModel, IOnvifServiceAggregator onvifServiceAggregator, IMvxMessenger messenger, ISettings settingsStorage, IMvxJsonConverter jsonConverter) { _quadViewModel = quadViewModel; _onvifServiceAggregator = onvifServiceAggregator; _messenger = messenger; _settingsStorage = settingsStorage; _jsonConverter = jsonConverter; MediaPlayerViewModel = new MediaPlayerViewModel(messenger); }
private void HandleSelectedPlaybackStartsEvent(object sender, PlaybackItemEventArgs e) { MediaPlayerViewModel.SetStartPlayTime(e.StartTime); }