start method
Implementation
bool start() {
if (_output != null) {
stop();
}
DiveSystemLog.message('DiveStreamingOutput.start');
// Create streaming service
_output = obslib.streamOutputCreate(
serviceName: service?.name ?? 'tbd',
serviceUrl: serviceUrl,
serviceKey: serviceKey,
serviceId: serviceId,
outputType: outputType,
);
if (_output == null) {
DiveSystemLog.error('DiveStreamingOutput.start failed');
return false;
}
// Start streaming.
final rv = obslib.outputStart(_output!);
if (rv) {
_syncState(_updateState, repeating: true);
}
return rv;
}