Created
December 8, 2019 23:28
-
-
Save darwin-morocho/8d577fff422720a714fddb0e3d6de9f4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class WebRTCConfig { | |
static const Map<String, dynamic> mediaConstraints = { | |
'audio': true, | |
'video': { | |
'mandatory': { | |
'minWidth': '480', // Provide your own width, height and frame rate here | |
'minHeight': '640', | |
'minFrameRate': '30', | |
}, | |
'facingMode': 'user', | |
'optional': [], | |
} | |
}; | |
static const Map<String, dynamic> configuration = { | |
"iceServers": [ | |
{ | |
"urls": [ | |
"stun:stun1.l.google.com:19302", | |
] | |
} | |
] | |
}; | |
static const Map<String, dynamic> offerSdpConstraints = { | |
"mandatory": { | |
"OfferToReceiveAudio": true, | |
"OfferToReceiveVideo": true, | |
}, | |
"optional": [], | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment