DiveMediaSource constructor
DiveMediaSource(
- String name, {
- DiveMediaSourceSettings? settings,
- 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);
}
}