public openTok(string REMOTE_ADDR) { OpenTok ot = new OpenTok(); Dictionary<string, object> options = new Dictionary<string, object>(); options.Add(SessionProperties.P2PPreference, "enabled"); this.SessionId = ot.CreateSession(REMOTE_ADDR, options); this.Token = ot.GenerateToken(this.SessionId); this.ApiKey = ConfigurationManager.AppSettings["opentok.key"]; }
public OpenTokTests() { OpenTok = new OpenTok(); }