Skip to content

Instantly share code, notes, and snippets.

View ggoldens's full-sized avatar
💭
Living life with passion.

Germán Goldenstein ggoldens

💭
Living life with passion.
View GitHub Profile
// @flow
/* beautify preserve:start */
type StatProperty = AudioProperty | VideoProperty;
type AV = 'audio' | 'video';
const TEST_TIMEOUT_MS = 15000;
const MOSQuality: {[rating: string]: QualityRating } = {
Excellent: 5,
Good: 4,
Fair: 3,
Poor: 2,
@ggoldens
ggoldens / analyzeStats.js
Created September 12, 2017 13:06
Sample code
const MOSQuality = {
Excellent: 5,
Good: 4,
Fair: 3,
Poor: 2,
Bad: 1,
};
const analyzeStats = (results, subscriber) => {
if (subscriber && subscriber.stream && subscriber.stream.hasVideo) {
@ggoldens
ggoldens / MainActivity.cs
Last active August 9, 2017 13:58
Xamarin and Vidyo
using Android.App;
using Android.Widget;
using Android.OS;
using Com.Vidyo.VidyoClient.Connector;
namespace VideoChatDemo
{
[Activity(Label = "VideoChatDemo", MainLauncher = true, Icon = "@mipmap/icon")]
public class MainActivity : Activity, VidyoConnector.IConnect
{
@ggoldens
ggoldens / extensions.conf
Created February 7, 2017 21:24
extensions.conf
[default]
[from-internal]
exten => 1000,1,Answer()
same => n,Playback(demo-congrats)
same => n,Hangup()
;;;;;;;;;;;;;;;;;;;;;;
;;KURENTO EXTENSIONS;;
;;;;;;;;;;;;;;;;;;;;;;
exten => _200[0-4],1,Dial(SIP/${EXTEN}, 10)
@ggoldens
ggoldens / sip.conf
Last active February 7, 2017 21:33
sip.conf
;;;;;;;;;;;;;;;;;;;;;;
;;KURENTO EXTENSIONS;;
;;;;;;;;;;;;;;;;;;;;;;
[2000] ;kurento-appserver
host=dynamic
secret=asterikpwd
context=from-internal
transport=ws,wss,udp
type=friend