Create android & web plugins (#15)

* create android & web plugins

* apply `flutter format .`
This commit is contained in:
Hiroshi Horie
2021-10-02 15:20:41 +09:00
committed by GitHub
parent 1a87bcf860
commit 48e03b84cb
43 changed files with 1200 additions and 356 deletions
+5 -2
View File
@@ -34,7 +34,8 @@ class Utils {
path: validate ? 'validate' : 'rtc',
queryParameters: <String, String>{
'access_token': token,
if (options != null) 'auto_subscribe': options.autoSubscribe ? '1' : '0',
if (options != null)
'auto_subscribe': options.autoSubscribe ? '1' : '0',
if (reconnect) 'reconnect': '1',
'protocol': protocol.toStringValue(),
'sdk': 'flutter',
@@ -77,7 +78,9 @@ class Utils {
VideoEncoding? videoEncoding = options.videoEncoding;
if ((videoEncoding == null && !options.simulcast) || width == null || height == null) {
if ((videoEncoding == null && !options.simulcast) ||
width == null ||
height == null) {
// don't set encoding when we are not simulcasting and user isn't restricting
// encoding parameters
return null;