startStreaming method
Future<bool>
startStreaming(
- Red5Configuration red5configuration,
- String streamKey,
- 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;
}