当前位置: 首页>>代码示例>>Java>>正文


Java OpentokError类代码示例

本文整理汇总了Java中com.opentok.android.OpentokError的典型用法代码示例。如果您正苦于以下问题:Java OpentokError类的具体用法?Java OpentokError怎么用?Java OpentokError使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


OpentokError类属于com.opentok.android包,在下文中一共展示了OpentokError类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: onError

import com.opentok.android.OpentokError; //导入依赖的package包/类
@Override
public void onError(Session session, OpentokError opentokError) {
  LOG.e(LOG_TAG, "Session: onError ", opentokError.getMessage());
  if (getOwnConnId() != null ) {
    addLogEvent(ClientLog.LOG_ACTION_DISCONNECT, ClientLog.LOG_VARIATION_ERROR);
  }
  else {
    addLogEvent(ClientLog.LOG_ACTION_CONNECT, ClientLog.LOG_VARIATION_ERROR);
  }
  cleanup();
  if (mBasicListeners != null) {
    for (BasicListener listener : mBasicListeners) {
      ((RetriableBasicListener)listener).onError(SELF, opentokError);
    }
  }
}
 
开发者ID:opentok,项目名称:accelerator-core-android,代码行数:17,代码来源:OTWrapper.java

示例2: onCameraError

import com.opentok.android.OpentokError; //导入依赖的package包/类
@Override
public void onCameraError(Publisher publisher, OpentokError opentokError) {
  LOG.d(LOG_TAG, "onCameraError: onError ", opentokError.getMessage());
  if ( mAdvancedListeners != null ) {
    for (AdvancedListener listener : mAdvancedListeners) {
      ((RetriableAdvancedListener) listener).onError(SELF, opentokError);
    }
  }
}
 
开发者ID:opentok,项目名称:accelerator-core-android,代码行数:10,代码来源:OTWrapper.java

示例3: onError

import com.opentok.android.OpentokError; //导入依赖的package包/类
@Override
public void onError(final Wrapper wrapper, final OpentokError error) {
    runUIListenerTask(new ListenerTask() {
        @Override
        public void run() throws ListenerException {
            mUnderlyingListener.onError(wrapper, error);
        }
    });
}
 
开发者ID:opentok,项目名称:accelerator-core-android,代码行数:10,代码来源:PausableAdvancedListener.java

示例4: onError

import com.opentok.android.OpentokError; //导入依赖的package包/类
@Override
public void onError(Wrapper wrapper, OpentokError error) {
    try {
        if (mInternalListener != null) {
            mInternalListener.onError(wrapper, error);
        }
    } catch (ListenerException e) {
        Log.d(LOG_TAG, "onError Exception: ", e);
    }
}
 
开发者ID:opentok,项目名称:accelerator-core-android,代码行数:11,代码来源:UnfailingAdvancedListener.java

示例5: onError

import com.opentok.android.OpentokError; //导入依赖的package包/类
@Override
public void onError(OTWrapper otWrapper, OpentokError error) throws ListenerException {
    Log.i(LOG_TAG, "Error " + error.getErrorCode() + "-" + error.getMessage());
    Toast.makeText(MainActivity.this, error.getMessage(), Toast.LENGTH_LONG).show();
    mWrapper.disconnect(); //end communication
    mProgressDialog.dismiss();
    cleanViewsAndControls(); //restart views
    mActionBarFragment.setCallButtonEnabled(false);
}
 
开发者ID:opentok,项目名称:accelerator-sample-apps-android,代码行数:10,代码来源:MainActivity.java

示例6: onError

import com.opentok.android.OpentokError; //导入依赖的package包/类
@Override
public void onError(Session session, OpentokError opentokError) {
    Log.d(TAG, "onError: Error (" + opentokError.getMessage() + ") in session " + session.getSessionId());

    Toast.makeText(this, "Session error. See the logcat please.", Toast.LENGTH_LONG).show();
    finish();
}
 
开发者ID:opentok,项目名称:opentok-android-sdk-samples,代码行数:8,代码来源:MainActivity.java

示例7: onError

import com.opentok.android.OpentokError; //导入依赖的package包/类
@Override
public void onError(Session session, OpentokError opentokError) {
    Log.e(LOG_TAG, "onError: "+ opentokError.getErrorDomain() + " : " +
            opentokError.getErrorCode() + " - "+opentokError.getMessage() + " in session: "+ session.getSessionId());

    showOpenTokError(opentokError);
}
 
开发者ID:opentok,项目名称:opentok-android-sdk-samples,代码行数:8,代码来源:MainActivity.java

示例8: onError

import com.opentok.android.OpentokError; //导入依赖的package包/类
@Override
protected void onError(OpentokError error) {
    for (SessionListener l : mSessionListeners) {
        l.onError(this, error);
    }
}
 
开发者ID:opentok,项目名称:accelerator-core-android,代码行数:7,代码来源:OTAcceleratorSession.java

示例9: onError

import com.opentok.android.OpentokError; //导入依赖的package包/类
@Override
void onError(Wrapper wrapper, OpentokError error);
 
开发者ID:opentok,项目名称:accelerator-core-android,代码行数:3,代码来源:RetriableBasicListener.java

示例10: logOpenTokError

import com.opentok.android.OpentokError; //导入依赖的package包/类
private void logOpenTokError(OpentokError opentokError) {

        Log.e(LOG_TAG, "Error Domain: " + opentokError.getErrorDomain().name());
        Log.e(LOG_TAG, "Error Code: " + opentokError.getErrorCode().name());
    }
 
开发者ID:opentok,项目名称:opentok-android-sdk-samples,代码行数:6,代码来源:MainActivity.java

示例11: onError

import com.opentok.android.OpentokError; //导入依赖的package包/类
@Override
public void onError(Session session, OpentokError opentokError) {
    logOpenTokError(opentokError);
}
 
开发者ID:opentok,项目名称:opentok-android-sdk-samples,代码行数:5,代码来源:MainActivity.java

示例12: showOpenTokError

import com.opentok.android.OpentokError; //导入依赖的package包/类
private void showOpenTokError(OpentokError opentokError) {

        Toast.makeText(this, opentokError.getErrorDomain().name() +": " +opentokError.getMessage() + " Please, see the logcat.", Toast.LENGTH_LONG).show();
        finish();
    }
 
开发者ID:opentok,项目名称:opentok-android-sdk-samples,代码行数:6,代码来源:MainActivity.java

示例13: logOpenTokError

import com.opentok.android.OpentokError; //导入依赖的package包/类
private void logOpenTokError(OpentokError opentokError) {
    Log.e(LOG_TAG, "Error Domain: " + opentokError.getErrorDomain().name());
    Log.e(LOG_TAG, "Error Code: " + opentokError.getErrorCode().name());
}
 
开发者ID:opentok,项目名称:opentok-android-sdk-samples,代码行数:5,代码来源:MainActivity.java

示例14: onError

import com.opentok.android.OpentokError; //导入依赖的package包/类
@Override
public void onError(Session session, OpentokError opentokError) {
}
 
开发者ID:opentok,项目名称:opentok-android-sdk-samples,代码行数:4,代码来源:MainActivity.java

示例15: onError

import com.opentok.android.OpentokError; //导入依赖的package包/类
/**
 * Invoked when an error in the communication happened
 * @param wrapper
 * @param error
 * @throws ListenerException
 */
void onError(Wrapper wrapper, OpentokError error) throws ListenerException;
 
开发者ID:opentok,项目名称:accelerator-core-android,代码行数:8,代码来源:AdvancedListener.java


注:本文中的com.opentok.android.OpentokError类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。