log track class in onAddTrack

(cherry picked from commit 30c9e7399e0188a80c23e09edaf782fc651c364d)
This commit is contained in:
Daniel Gultsch 2021-03-29 10:57:56 +02:00 committed by Christian Schneppe
parent c5f1dcd2ab
commit 206a28b4dd

View file

@ -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