DiveMediaSource constructor

DiveMediaSource(
  1. String name, {
  2. DiveMediaSourceSettings? settings,
  3. int stateSyncInterval = 500,
})

Implementation

DiveMediaSource(String name, {DiveMediaSourceSettings? settings, this.stateSyncInterval = 500})
    : super(inputType: DiveInputType.mediaSource, name: name, settings: settings) {
  if (stateSyncInterval > 0) {
    _syncStateTimer = Timer.periodic(Duration(milliseconds: stateSyncInterval), _timerCallback);
  }
}