publish method

  1. @override
void publish({
  1. required String filePath,
  2. required String name,
  3. String? startTime,
})
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;
}