本文整理汇总了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);
}
}
}
示例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);
}
}
}
示例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);
}
});
}
示例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);
}
}
示例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);
}
示例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();
}
示例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);
}
示例8: onError
import com.opentok.android.OpentokError; //导入依赖的package包/类
@Override
protected void onError(OpentokError error) {
for (SessionListener l : mSessionListeners) {
l.onError(this, error);
}
}
示例9: onError
import com.opentok.android.OpentokError; //导入依赖的package包/类
@Override
void onError(Wrapper wrapper, OpentokError error);
示例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());
}
示例11: onError
import com.opentok.android.OpentokError; //导入依赖的package包/类
@Override
public void onError(Session session, OpentokError opentokError) {
logOpenTokError(opentokError);
}
示例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();
}
示例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());
}
示例14: onError
import com.opentok.android.OpentokError; //导入依赖的package包/类
@Override
public void onError(Session session, OpentokError opentokError) {
}
示例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;