本文整理汇总了C#中Session.connect方法的典型用法代码示例。如果您正苦于以下问题:C# Session.connect方法的具体用法?C# Session.connect怎么用?C# Session.connect使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Session
的用法示例。
在下文中一共展示了Session.connect方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: initSesssion
protected void initSesssion()
{
if (sock != null)
return;
string user = uri.User;
string pass = uri.Path;
string host = uri.Host;
int port = uri.Port;
try
{
sock = sch.getSession(user, pass, host, port);
if (!sock.isConnected())
sock.connect();
}
catch (SocketException e)
{
throw new TransportException(e.Message, e.InnerException ?? e);
}
}
示例2: sessionConnect
private void sessionConnect()
{
if (mSession == null)
{
mSession = new Session(HelloWorldActivity.this, OpenTokConfig.API_KEY, OpenTokConfig.SESSION_ID);
mSession.SessionListener = this;
mSession.connect(OpenTokConfig.TOKEN);
}
}
示例3: sessionConnect
private void sessionConnect()
{
if (mSession == null)
{
mSession = new Session(this, OpenTokConfig.API_KEY, OpenTokConfig.SESSION_ID);
mSession.SessionListener = this;
mSession.ArchiveListener = this;
mSession.StreamPropertiesListener = this;
mSession.connect(OpenTokConfig.TOKEN);
}
}
示例4: sessionConnect
private void sessionConnect()
{
if (mSession == null)
{
// Add a custom audio device before session initialization
CustomAudioDevice customAudioDevice = new CustomAudioDevice(AudioDeviceActivity.this);
AudioDeviceManager.AudioDevice = customAudioDevice;
mSession = new Session(AudioDeviceActivity.this, OpenTokConfig.API_KEY, OpenTokConfig.SESSION_ID);
mSession.SessionListener = this;
mSession.connect(OpenTokConfig.TOKEN);
}
}
示例5: sessionConnect
private void sessionConnect()
{
if (mSession == null)
{
mSession = new Session(TextChatActivity.this, API_KEY, SESSION_ID);
mSession.SignalListener = this;
mSession.SessionListener = this;
mSession.connect(TOKEN);
}
}
示例6: sessionConnect
private void sessionConnect()
{
if (mSession == null)
{
mSession = new Session(DefaultCameraCapturerActivity.this, OpenTokConfig.API_KEY, OpenTokConfig.SESSION_ID);
mSession.SessionListener = this;
mSession.connect(OpenTokConfig.TOKEN);
}
}
示例7: sessionConnect
private void sessionConnect()
{
if (mSession == null)
{
mSession = new Session(ScreenSharingActivity.this, com.opentok.android.demo.config.OpenTokConfig.API_KEY, com.opentok.android.demo.config.OpenTokConfig.SESSION_ID);
mSession.SessionListener = this;
mSession.connect(com.opentok.android.demo.config.OpenTokConfig.TOKEN);
}
}