You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
704 B
Dart
29 lines
704 B
Dart
|
|
import 'package:flutter/services.dart';
|
|
|
|
class VideoChannel{
|
|
/// channel name
|
|
static const _channel = const MethodChannel("Dr.cloudSolution/videoCall");
|
|
static Future<dynamic> openVideoCallScreen(
|
|
{kApiKey, kSessionId, kToken, callDuration, warningDuration}) {
|
|
var result;
|
|
try {
|
|
result = _channel.invokeMethod(
|
|
'openVideoCall',
|
|
{
|
|
"kApiKey": kApiKey,
|
|
"kSessionId": kSessionId,
|
|
"kToken": kToken,
|
|
/* "callDuration": callDuration,
|
|
"warningDuration": warningDuration,*/
|
|
"appLang": "en",
|
|
},
|
|
);
|
|
} on PlatformException catch (e) {
|
|
result = e.toString();
|
|
}
|
|
return result;
|
|
}
|
|
|
|
|
|
} |