예제 #1
0
        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"];
        }
예제 #2
0
 public OpenTokTests()
 {
     OpenTok = new OpenTok();
 }