startStreaming method

Future<bool> startStreaming(
  1. Red5Configuration red5configuration,
  2. String streamKey,
  3. RecordType recordType
)

Implementation

Future<bool> startStreaming(Red5Configuration red5configuration,
    String streamKey, RecordType recordType) async {
  try {
    final bool result = await _channel.invokeMethod('startStreaming', {
      'configuration': red5configuration.toJson(),
      'streamKey': streamKey,
      'recordType': _recordTypeToInt(recordType),
    });
    print("startStreaming: $result");
    return result;
  } on PlatformException catch (e) {
    print("Error startStreaming: $e.message");
  }
  return false;
}