org.webrtc.RtpReceiver Java Examples

The following examples show how to use org.webrtc.RtpReceiver. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CallActivity.java    From RTCStartupDemo with GNU General Public License v3.0 5 votes vote down vote up
@Override
public void onAddTrack(RtpReceiver rtpReceiver, MediaStream[] mediaStreams) {
    MediaStreamTrack track = rtpReceiver.track();
    if (track instanceof VideoTrack) {
        Log.i(TAG, "onAddVideoTrack");
        VideoTrack remoteVideoTrack = (VideoTrack) track;
        remoteVideoTrack.setEnabled(true);
        ProxyVideoSink videoSink = new ProxyVideoSink();
        videoSink.setTarget(mRemoteSurfaceView);
        remoteVideoTrack.addSink(videoSink);
    }
}
 
Example #2
Source File: PeerConnectionChannel.java    From owt-client-android with Apache License 2.0 4 votes vote down vote up
@Override
public void onAddTrack(RtpReceiver rtpReceiver, MediaStream[] mediaStreams) {
}
 
Example #3
Source File: WebRTCWrapper.java    From Conversations with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void onAddTrack(RtpReceiver rtpReceiver, MediaStream[] mediaStreams) {
    final MediaStreamTrack track = rtpReceiver.track();
    Log.d(EXTENDED_LOGGING_TAG, "onAddTrack(kind=" + (track == null ? "null" : track.kind()) + ",numMediaStreams=" + mediaStreams.length + ")");
}
 
Example #4
Source File: PeerConnectionClient.java    From restcomm-android-sdk with GNU Affero General Public License v3.0 4 votes vote down vote up
@Override
public void onAddTrack(final RtpReceiver receiver, final MediaStream[] mediaStreams) {}
 
Example #5
Source File: WebRTCWrapper.java    From Pix-Art-Messenger with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void onAddTrack(RtpReceiver rtpReceiver, MediaStream[] mediaStreams) {
    final MediaStreamTrack track = rtpReceiver.track();
    Log.d(EXTENDED_LOGGING_TAG, "onAddTrack(kind=" + (track == null ? "null" : track.kind()) + ",numMediaStreams=" + mediaStreams.length + ")");
}
 
Example #6
Source File: WebRTCNativeMgr.java    From appinventor-extensions with Apache License 2.0 4 votes vote down vote up
public void onAddTrack(RtpReceiver rtpReceiver, MediaStream[] mediaStreamArr) {
}
 
Example #7
Source File: PeerConnectionAdapter.java    From webrtc-android-tutorial with Apache License 2.0 4 votes vote down vote up
@Override
public void onAddTrack(RtpReceiver rtpReceiver, MediaStream[] mediaStreams) {
    log("onAddTrack " + mediaStreams);
}
 
Example #8
Source File: PeerConnectionClient.java    From sample-videoRTC with Apache License 2.0 4 votes vote down vote up
@Override
public void onAddTrack(final RtpReceiver receiver, final MediaStream[] mediaStreams) {}
 
Example #9
Source File: CustomPeerConnectionObserver.java    From WebRTCapp with Apache License 2.0 4 votes vote down vote up
@Override
public void onAddTrack(RtpReceiver rtpReceiver, MediaStream[] mediaStreams) {
    Log.d(logTag, "onAddTrack() called with: mediaStreams = [" + Arrays.toString(mediaStreams) + "]");
}
 
Example #10
Source File: WebRtcCallService.java    From bcm-android with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void onAddTrack(RtpReceiver rtpReceiver, MediaStream[] mediaStreams) {
    ALog.logForSecret(TAG, "onAddTrack: " + mediaStreams);
}
 
Example #11
Source File: Peer.java    From webrtc_android with MIT License 4 votes vote down vote up
@Override
public void onAddTrack(RtpReceiver receiver, MediaStream[] mediaStreams) {
    Log.i(TAG, "onAddTrack:" + mediaStreams.length);
}
 
Example #12
Source File: PeerConnectionAdapter.java    From webrtc-android-tutorial with Apache License 2.0 4 votes vote down vote up
@Override
public void onAddTrack(RtpReceiver rtpReceiver, MediaStream[] mediaStreams) {
    log("onAddTrack " + mediaStreams);
}
 
Example #13
Source File: PeerConnectionAdapter.java    From webrtc-android-tutorial with Apache License 2.0 4 votes vote down vote up
@Override
public void onAddTrack(RtpReceiver rtpReceiver, MediaStream[] mediaStreams) {
    log("onAddTrack " + mediaStreams);
}
 
Example #14
Source File: ConferencePeerConnectionChannel.java    From owt-client-android with Apache License 2.0 2 votes vote down vote up
@Override
public void onAddTrack(RtpReceiver rtpReceiver, MediaStream[] mediaStreams) {

}
 
Example #15
Source File: DefaultObserver.java    From Meshenger with GNU General Public License v3.0 2 votes vote down vote up
@Override
public void onAddTrack(RtpReceiver rtpReceiver, MediaStream[] mediaStreams) {

}
 
Example #16
Source File: PeerConnectionClient.java    From janus-gateway-android with MIT License 2 votes vote down vote up
@Override
public void onAddTrack(RtpReceiver rtpReceiver, MediaStream[] mediaStreams) {

}
 
Example #17
Source File: PeerConnectionObserver.java    From iGap-Android with GNU Affero General Public License v3.0 2 votes vote down vote up
@Override
public void onAddTrack(RtpReceiver rtpReceiver, MediaStream[] mediaStreams) {

}
 
Example #18
Source File: DefaultObserver.java    From meshenger-android with GNU General Public License v3.0 2 votes vote down vote up
@Override
public void onAddTrack(RtpReceiver rtpReceiver, MediaStream[] mediaStreams) {

}
 
Example #19
Source File: PeerConnectionClient.java    From voip_android with BSD 3-Clause "New" or "Revised" License 2 votes vote down vote up
@Override
public void onAddTrack(RtpReceiver var1, MediaStream[] var2) {

}