From 30c9e7399e0188a80c23e09edaf782fc651c364d Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Mon, 29 Mar 2021 10:57:56 +0200 Subject: [PATCH] log track class in onAddTrack --- .../eu/siacs/conversations/xmpp/jingle/WebRTCWrapper.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/eu/siacs/conversations/xmpp/jingle/WebRTCWrapper.java b/src/main/java/eu/siacs/conversations/xmpp/jingle/WebRTCWrapper.java index dca04c000..e518d3d69 100644 --- a/src/main/java/eu/siacs/conversations/xmpp/jingle/WebRTCWrapper.java +++ b/src/main/java/eu/siacs/conversations/xmpp/jingle/WebRTCWrapper.java @@ -164,6 +164,10 @@ public class WebRTCWrapper { 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 + ")"); + if (track != null) { + Log.d(EXTENDED_LOGGING_TAG,"onAddTrack(class="+track.getClass().getName()+")"); + } + } @Override