本文整理汇总了Java中org.webrtc.PeerConnection.SignalingState方法的典型用法代码示例。如果您正苦于以下问题:Java PeerConnection.SignalingState方法的具体用法?Java PeerConnection.SignalingState怎么用?Java PeerConnection.SignalingState使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.webrtc.PeerConnection
的用法示例。
在下文中一共展示了PeerConnection.SignalingState方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: signalingStateString
import org.webrtc.PeerConnection; //导入方法依赖的package包/类
@Nullable
private String signalingStateString(PeerConnection.SignalingState signalingState) {
switch (signalingState) {
case STABLE:
return "stable";
case HAVE_LOCAL_OFFER:
return "have-local-offer";
case HAVE_LOCAL_PRANSWER:
return "have-local-pranswer";
case HAVE_REMOTE_OFFER:
return "have-remote-offer";
case HAVE_REMOTE_PRANSWER:
return "have-remote-pranswer";
case CLOSED:
return "closed";
}
return null;
}
示例2: onSetSuccess
import org.webrtc.PeerConnection; //导入方法依赖的package包/类
@Override
public void onSetSuccess() {
if (BuildConfig.DEBUG) {
Log.d(TAG, "@@@ onSetSuccess");
}
PeerConnection.SignalingState state = mPeerConnection.signalingState();
if (state == PeerConnection.SignalingState.HAVE_REMOTE_OFFER) {
mPeerConnection.createAnswer(this, createSDPMediaConstraints());
} else /*if (state == PeerConnection.SignalingState.HAVE_LOCAL_OFFER)*/ {
if (mCallback != null && mSdp != null) {
mCallback.onLocalDescription(MediaConnection.this, mSdp);
}
mSdp = null;
}
}
示例3: onSignalingChange
import org.webrtc.PeerConnection; //导入方法依赖的package包/类
@Override
public void onSignalingChange(PeerConnection.SignalingState signalingState) {
WritableMap params = Arguments.createMap();
params.putInt("id", id);
params.putString("signalingState", signalingStateString(signalingState));
webRTCModule.sendEvent("peerConnectionSignalingStateChanged", params);
}
示例4: onSignalingChange
import org.webrtc.PeerConnection; //导入方法依赖的package包/类
@Override
public void onSignalingChange(final PeerConnection.SignalingState signalingState) {
if (BuildConfig.DEBUG) {
Log.d(TAG, "@@@ onSignalingChange");
Log.d(TAG, "@@@ SignalingState: " + signalingState.toString());
}
}
示例5: onSignalingChange
import org.webrtc.PeerConnection; //导入方法依赖的package包/类
@Override
public void onSignalingChange(PeerConnection.SignalingState newState) {
Log.w(TAG, "onSignalingChange: " + newState);
}
示例6: onSignalingChange
import org.webrtc.PeerConnection; //导入方法依赖的package包/类
@Override
public void onSignalingChange(PeerConnection.SignalingState signalingState) {
}
示例7: onSignalingChange
import org.webrtc.PeerConnection; //导入方法依赖的package包/类
@Override
public void onSignalingChange(PeerConnection.SignalingState newState) {
Log.d(TAG, "SignalingState: " + newState);
}
示例8: onSignalingChange
import org.webrtc.PeerConnection; //导入方法依赖的package包/类
@Override
public void onSignalingChange(PeerConnection.SignalingState newState) {
Log.d(TAG, "SignalingState: " + newState);
}
示例9: onSignalingChange
import org.webrtc.PeerConnection; //导入方法依赖的package包/类
@Override
public void onSignalingChange(PeerConnection.SignalingState signalingState) {
LogUtils.d("onSignalingChange");
}
示例10: onSignalingChange
import org.webrtc.PeerConnection; //导入方法依赖的package包/类
@Override
public void onSignalingChange(PeerConnection.SignalingState signalingState) {
Log.d(logTag, "onSignalingChange() called with: signalingState = [" + signalingState + "]");
}
示例11: onSignalingChange
import org.webrtc.PeerConnection; //导入方法依赖的package包/类
@Override
public void onSignalingChange(PeerConnection.SignalingState signalingState) {}
示例12: onSignalingChange
import org.webrtc.PeerConnection; //导入方法依赖的package包/类
@Override
public void onSignalingChange(@Nonnull final PeerConnection.SignalingState state) {}
示例13: onSignalingChange
import org.webrtc.PeerConnection; //导入方法依赖的package包/类
@Override
public void onSignalingChange(PeerConnection.SignalingState signalingState) {
Log.d("RTCAPP", "onSignalingChange:" + signalingState.toString());
}
示例14: onSignalingChange
import org.webrtc.PeerConnection; //导入方法依赖的package包/类
@Override
public void onSignalingChange(PeerConnection.SignalingState signalingState) {
Log.d(TAG, "SignalingState: " + signalingState);
}
示例15: onSignalingChange
import org.webrtc.PeerConnection; //导入方法依赖的package包/类
@Override public void onSignalingChange(
PeerConnection.SignalingState newState) {
}