publish method
void
publish({})
override
Implementation
@override
void publish(
{required String filePath, required String name, String? startTime}) {
if (filePath == '') {
throw Exception('File path is empty');
}
if (name == '') {
throw Exception('Stream name is empty');
}
_filePath = filePath;
_name = name;
_startTime = startTime;
if (baseUrl == null || baseUrl == '') {
throw Exception('Please call connect method to set the url');
}
publishingState = PublishingState.RequestPublish;
}