Skip to content

Instantly share code, notes, and snippets.

View Saajidpasha's full-sized avatar
💭
I may be slow to respond.

Saajidpasha Saajidpasha

💭
I may be slow to respond.
View GitHub Profile
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',
@Saajidpasha
Saajidpasha / public-stun-list.txt
Created April 26, 2020 18:42 — forked from mondain/public-stun-list.txt
Public STUN server list
23.21.150.121:3478
iphone-stun.strato-iphone.de:3478
numb.viagenie.ca:3478
s1.taraba.net:3478
s2.taraba.net:3478
stun.12connect.com:3478
stun.12voip.com:3478
stun.1und1.de:3478
stun.2talk.co.nz:3478
stun.2talk.com:3478
import 'dart:math' as math;
class Coord {
final double lat, lng;
Coord(this.lat, this.lng);
}
class GeolocationUtils {
///decode the google encoded string using Encoded Polyline Algorithm Format
/// for more info about the algorithm check https://developers.google.com/maps/documentation/utilities/polylinealgorithm