Skip to content

Instantly share code, notes, and snippets.

@darwin-morocho
Created December 8, 2019 23:28
Show Gist options
  • Save darwin-morocho/8d577fff422720a714fddb0e3d6de9f4 to your computer and use it in GitHub Desktop.
Save darwin-morocho/8d577fff422720a714fddb0e3d6de9f4 to your computer and use it in GitHub Desktop.
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