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


Java PeerConnection.SignalingState方法代码示例

本文整理汇总了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;
}
 
开发者ID:angellsl10,项目名称:react-native-webrtc,代码行数:19,代码来源:PeerConnectionObserver.java

示例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;
    }
}
 
开发者ID:DeviceConnect,项目名称:DeviceConnect-Android,代码行数:17,代码来源:MediaConnection.java

示例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);
}
 
开发者ID:angellsl10,项目名称:react-native-webrtc,代码行数:8,代码来源:PeerConnectionObserver.java

示例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());
    }
}
 
开发者ID:DeviceConnect,项目名称:DeviceConnect-Android,代码行数:8,代码来源:MediaConnection.java

示例5: onSignalingChange

import org.webrtc.PeerConnection; //导入方法依赖的package包/类
@Override
public void onSignalingChange(PeerConnection.SignalingState newState) {
  Log.w(TAG, "onSignalingChange: " + newState);
}
 
开发者ID:XecureIT,项目名称:PeSanKita-android,代码行数:5,代码来源:WebRtcCallService.java

示例6: onSignalingChange

import org.webrtc.PeerConnection; //导入方法依赖的package包/类
@Override
public void onSignalingChange(PeerConnection.SignalingState signalingState) {
}
 
开发者ID:newbie007fx,项目名称:newwebrtc,代码行数:4,代码来源:PnPeer.java

示例7: onSignalingChange

import org.webrtc.PeerConnection; //导入方法依赖的package包/类
@Override
public void onSignalingChange(PeerConnection.SignalingState newState) {
    Log.d(TAG, "SignalingState: " + newState);
}
 
开发者ID:nhancv,项目名称:nc-android-webrtcpeer,代码行数:5,代码来源:PeerConnectionClient.java

示例8: onSignalingChange

import org.webrtc.PeerConnection; //导入方法依赖的package包/类
@Override
public void onSignalingChange(PeerConnection.SignalingState newState) {
  Log.d(TAG, "SignalingState: " + newState);
}
 
开发者ID:Piasy,项目名称:AppRTC-Android,代码行数:5,代码来源:PeerConnectionClient.java

示例9: onSignalingChange

import org.webrtc.PeerConnection; //导入方法依赖的package包/类
@Override
public void onSignalingChange(PeerConnection.SignalingState signalingState) {
    LogUtils.d("onSignalingChange");
}
 
开发者ID:vuatovuanang,项目名称:WebRTC-VideoCall-Anrdoid,代码行数:5,代码来源:VideoCallActivity.java

示例10: onSignalingChange

import org.webrtc.PeerConnection; //导入方法依赖的package包/类
@Override
public void onSignalingChange(PeerConnection.SignalingState signalingState) {
    Log.d(logTag, "onSignalingChange() called with: signalingState = [" + signalingState + "]");
}
 
开发者ID:vivek1794,项目名称:webrtc-android-codelab,代码行数:5,代码来源:CustomPeerConnectionObserver.java

示例11: onSignalingChange

import org.webrtc.PeerConnection; //导入方法依赖的package包/类
@Override
public void onSignalingChange(PeerConnection.SignalingState signalingState) {}
 
开发者ID:ardnezar,项目名称:webrtc-android,代码行数:3,代码来源:PeerConnectionClient.java

示例12: onSignalingChange

import org.webrtc.PeerConnection; //导入方法依赖的package包/类
@Override
public void onSignalingChange(@Nonnull final PeerConnection.SignalingState state) {}
 
开发者ID:seamlik,项目名称:viska-android,代码行数:3,代码来源:CallingActivity.java

示例13: onSignalingChange

import org.webrtc.PeerConnection; //导入方法依赖的package包/类
@Override
public void onSignalingChange(PeerConnection.SignalingState signalingState) {
    Log.d("RTCAPP", "onSignalingChange:" + signalingState.toString());
}
 
开发者ID:Nitrillo,项目名称:krankygeek,代码行数:5,代码来源:MainActivity.java

示例14: onSignalingChange

import org.webrtc.PeerConnection; //导入方法依赖的package包/类
@Override
public void onSignalingChange(PeerConnection.SignalingState signalingState) {
    Log.d(TAG, "SignalingState: " + signalingState);
}
 
开发者ID:nubomedia-vtt,项目名称:webrtcpeer-android,代码行数:5,代码来源:NBMPeerConnection.java

示例15: onSignalingChange

import org.webrtc.PeerConnection; //导入方法依赖的package包/类
@Override public void onSignalingChange(
    PeerConnection.SignalingState newState) {
}
 
开发者ID:respoke,项目名称:respoke-sdk-android,代码行数:4,代码来源:RespokeCall.java


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