question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

black video for remote, event iceConnection = completed

See original GitHub issue

Hi, im facing this problem, that’s i have outgoing call from mobile to web, in web, video and audio show normally, but in mobile i only got black screen and no audio.

with audio call only, it’s work normally. Can u tech me how to debug the problem?

I am using Janus, with audio, I am using audioBridge, with video I am using videoRoom.

With localMediaStream, I am using for :

  1. Audio: peerconnection.addStream(stream)
configure = async (stream) => {
 try {
   console.log("joined to audio room", this.roomID, this.cachedCandidates);
   this.pc.addStream(stream)

   let offer = await this.pc.createOffer({
     offerToReceiveAudio: true,
     offerToReceiveVideo: false,
   });

   await this.pc.setLocalDescription(offer);
   // console.log('audioroom setLocalDescription succses', offer)
   // offer.sdp = offer.sdp.replace(/a=extmap:(\d+) urn:3gpp:video-orientation\n?/, '');

   let response = await this.sendAsyncWithJsep(
     {
       request: "configure",
       muted: false,
       audio_level_average: 40,
       audio_active_packets: 25
       // recording preferences
       // record: true,
       // filename: "recording.wav",
     },
     {
       type: offer.type,
       sdp: offer.sdp,
     }
   );

   await this.pc.setRemoteDescription(
     new Janus.RTCSessionDescription({
       sdp: response.jsep.sdp,
       type: response.jsep.type,
     })
   );
   this.isRemoteDescriptionSet = true;
   console.log('audioroom isRemoteDescriptionSet succses')

   for (const candidate of this.cachedCandidates) {
     await this.pc.addIceCandidate(candidate);
   }
   this.cachedCandidates = [];
  
 } catch (e) {
   console.log(e);
 }
};

2 Video: peerconnection.addStream(stream)

publish = async (stream, audio = false, video = true) => {
 try {
   // console.log("joined to video room", this.pc);

   this.pc.addStream(stream);

   let offer = await this.pc.createOffer({
     offerToReceiveAudio: true,
     offerToReceiveVideo: true,
   });

   await this.pc.setLocalDescription(offer);
   // try{
   //   offer.sdp = offer.sdp.replace(/a=extmap.* urn:3gpp:video-orientation\r\n/, "");
   // }catch(error){
   //   console.error('modify sdp error')
   // }
   // offer.sdp = offer.sdp.replace(/a=extmap:(\d+) urn:3gpp:video-orientation\n?/, '');

   let response = await this.sendAsyncWithJsep(
     {
       request: "configure",
       audio: audio,
       video: video,
       bitrate: 128 * 1000,
     },
     {
       type: offer.type,
       sdp: offer.sdp,
     }
   );


   await this.pc.setRemoteDescription(
     new Janus.RTCSessionDescription({
       sdp: response.jsep.sdp,
       type: response.jsep.type,
     })
   );
   this.isRemoteDescriptionSet = true;
   console.log('audioroom setremote success', this.cachedCandidates)

   for (const candidate of this.cachedCandidates) {
     await this.pc.addIceCandidate(candidate);
   }
   this.cachedCandidates = [];
 } catch (e) {
   console.log('publish error', e);
 }
};

Here is my remote control::

receive = async (privateID, publisher, audio = true, video = true) => {
    try {
      let joinResponse = await this.sendAsync({
        request: "join",
        room: this.roomID,
        pin: this.pin,
        ptype: "subscriber",
        feed: publisher.id,
        private_id: privateID,
      });
      
      console.log('receive => joinResponse')

      if (
        joinResponse &&
        joinResponse.plugindata &&
        joinResponse.plugindata.data &&
        joinResponse.plugindata.data.videoroom === "attached"
      ) {
      }

      const remote = {
        sdp: joinResponse.jsep.sdp,
        type: joinResponse.jsep.type,
      }
      
      try{
        await this.pc.setRemoteDescription(remote);
        this.isRemoteDescriptionSet = true;
        console.log('set other user remoteDesc success')
      }catch(error){
          console.log('setRemoteDescription error', error)
      }

      let answer = await this.pc.createAnswer({
        offerToReceiveAudio: false,
        offerToReceiveVideo: video,
      });

      // console.log('local answer', answer)
      await this.pc.setLocalDescription(answer);

      console.log('receive setLocalDescription succes')
      for (const candidate of this.cachedCandidates) {
        await this.pc.addIceCandidate(candidate);
      }
      this.cachedCandidates = [];

      const startResponse = await this.sendAsyncWithJsep(
        {
          request: "start",
          room: this.roomID,
        },
        {
          type: answer.type,
          sdp: answer.sdp,
        }
      );
      console.log('receive => startResponse', this.cachedCandidates)

      if (
        startResponse &&
        startResponse.plugindata &&
        startResponse.plugindata.data &&
        startResponse.plugindata.data.started === "ok"
      ) {
        // OK
      }
    } catch (e) {
      console.error("receive", e);
    }
  };

I saw the web can display my local mobile video, but in mobile i can not display web video, and no audio. When debug I saw this line(I think it’s remote video log):

 [native] [VideoTrackAdapter] Mute event for pc 2 track janus1

Here is my full of log

'_startP2PCall success with audioROomId', 1666631758822
2022-10-25 00:15:59.532631+0700 VedaxLink[1299:408409] RNInCallManager.init(): initialized
2022-10-25 00:15:59.533316+0700 VedaxLink[1299:408410] RNInCallManager.start() start InCallManager. media=audio, type=audio, mode=AVAudioSessionModeVoiceChat
2022-10-25 00:15:59.533885+0700 VedaxLink[1299:408410] RNInCallManager.storeOriginalAudioSetup(): origAudioCategory=AVAudioSessionCategorySoloAmbient, origAudioMode=AVAudioSessionModeDefault
2022-10-25 00:15:59.534016+0700 VedaxLink[1299:408410] RNInCallManager.startAudioSessionNotification() starting...
2022-10-25 00:15:59.534087+0700 VedaxLink[1299:408410] RNInCallManager.startAudioSessionInterruptionNotification()
2022-10-25 00:15:59.534269+0700 VedaxLink[1299:408410] RNInCallManager.startAudioSessionRouteChangeNotification()
2022-10-25 00:15:59.534317+0700 VedaxLink[1299:408410] RNInCallManager.startAudioSessionMediaServicesWereLostNotification()
2022-10-25 00:15:59.535096+0700 VedaxLink[1299:408410] RNInCallManager.startAudioSessionMediaServicesWereResetNotification()
2022-10-25 00:15:59.535143+0700 VedaxLink[1299:408410] RNInCallManager.startAudioSessionSilenceSecondaryAudioHintNotification()
2022-10-25 00:15:59.538273+0700 VedaxLink[1299:408410] RNInCallManager.start:auto:ringbackUriType:: audioSession.setCategory: AVAudioSessionCategoryPlayAndRecord, withOptions: 0 success
2022-10-25 00:15:59.538613+0700 VedaxLink[1299:408410] RNInCallManager.start:auto:ringbackUriType:: audioSession.setMode(AVAudioSessionModeVoiceChat) success
2022-10-25 00:15:59.568518+0700 VedaxLink[1299:408410] RNInCallManager.start:auto:ringbackUriType:: audioSession.setActive(YES), withOptions: 0 success
2022-10-25 00:15:59.568598+0700 VedaxLink[1299:408410] RNInCallManager.startProximitySensor()
2022-10-25 00:15:59.573914+0700 VedaxLink[1299:408410] RNInCallManager.setKeepScreenOn(): enable: YES
2022-10-25 00:15:59.652083+0700 VedaxLink[1299:408419] [native] [VideoCaptureController] Capture will start
2022-10-25 00:15:59.683806+0700 VedaxLink[1299:408138] RNInCallManager.AudioRouteChange.Reason: CategoryChange. category=AVAudioSessionCategoryPlayAndRecord mode=AVAudioSessionModeVoiceChat
2022-10-25 00:15:59.683997+0700 VedaxLink[1299:408138] RNInCallManager.updateAudioRoute(): [Enter] forceSpeakerOn flag=0 media=audio category=AVAudioSessionCategoryPlayAndRecord mode=AVAudioSessionModeVoiceChat
2022-10-25 00:15:59.689556+0700 VedaxLink[1299:408138] RNInCallManager.updateAudioRoute(): audioSession.overrideOutputAudioPort(.None) success
2022-10-25 00:15:59.689728+0700 VedaxLink[1299:408138] RNInCallManager.updateAudioRoute() did NOT change audio category
2022-10-25 00:15:59.689762+0700 VedaxLink[1299:408138] RNInCallManager.updateAudioRoute() did NOT change audio mode
2022-10-25 00:15:59.689790+0700 VedaxLink[1299:408138] RNInCallManager.AudioRouteChange.SilenceSecondaryAudioHint: End
2022-10-25 00:15:59.689815+0700 VedaxLink[1299:408138] RNInCallManager.AudioRouteChange.SilenceSecondaryAudioHint: Unknow Value
2022-10-25 00:16:00.146961+0700 VedaxLink[1299:408459] [native] [VideoCaptureController] Capture started
2022-10-25 00:16:00.389070+0700 VedaxLink[1299:408409] [javascript] 'janus inited', undefined, []
2022-10-25 00:16:00.428181+0700 VedaxLink[1299:408138] [native] [GESTURE HANDLER] Initialize gesture handler for view <RNSScreenView: 0x123191570; reactTag: 3877; frame = (0 0; 1080 810); autoresize = W+H; gestureRecognizers = <NSArray: 0x2830601b0>; layer = <CALayer: 0x283fff7e0>>
2022-10-25 00:16:01.021039+0700 VedaxLink[1299:408409] [javascript] 'stunList', [ 'stun:cmcturn1.vedax.ai:3478',
  'stun:cmcturn2.vedax.ai:3478',
  'stun:cmcturn3.vedax.ai:3478' ]
2022-10-25 00:16:01.022342+0700 VedaxLink[1299:408409] [javascript] 'iceserver', [ { urls: 
     [ 'turn:cmcturn1.vedax.ai:3478',
       'turn:cmcturn1.vedax.ai:3478?transport=tcp',
       'turn:cmcturn1.vedax.ai:3478?transport=udp' ],
    username: 'link',
    credential: 'CMClink@123' },
  { urls: 
     [ 'turn:cmcturn2.vedax.ai:3478',
       'turn:cmcturn2.vedax.ai:3478?transport=tcp',
       'turn:cmcturn2.vedax.ai:3478?transport=udp' ],
    username: 'link',
    credential: 'CMClink@123' },
  { urls: 
     [ 'turn:cmcturn3.vedax.ai:3478',
       'turn:cmcturn3.vedax.ai:3478?transport=tcp',
       'turn:cmcturn3.vedax.ai:3478?transport=udp' ],
    username: 'link',
    credential: 'CMClink@123' },
  { urls: 
     [ 'stun:cmcturn1.vedax.ai:3478',
       'stun:cmcturn2.vedax.ai:3478',
       'stun:cmcturn3.vedax.ai:3478' ] } ]
2022-10-25 00:16:01.030776+0700 VedaxLink[1299:408409] [javascript] 'stunList', [ 'stun:cmcturn1.vedax.ai:3478',
  'stun:cmcturn2.vedax.ai:3478',
  'stun:cmcturn3.vedax.ai:3478' ]
2022-10-25 00:16:01.032065+0700 VedaxLink[1299:408409] [javascript] 'iceserver', [ { urls: 
     [ 'turn:cmcturn1.vedax.ai:3478',
       'turn:cmcturn1.vedax.ai:3478?transport=tcp',
       'turn:cmcturn1.vedax.ai:3478?transport=udp' ],
    username: 'link',
    credential: 'CMClink@123' },
  { urls: 
     [ 'turn:cmcturn2.vedax.ai:3478',
       'turn:cmcturn2.vedax.ai:3478?transport=tcp',
       'turn:cmcturn2.vedax.ai:3478?transport=udp' ],
    username: 'link',
    credential: 'CMClink@123' },
  { urls: 
     [ 'turn:cmcturn3.vedax.ai:3478',
       'turn:cmcturn3.vedax.ai:3478?transport=tcp',
       'turn:cmcturn3.vedax.ai:3478?transport=udp' ],
    username: 'link',
    credential: 'CMClink@123' },
  { urls: 
     [ 'stun:cmcturn1.vedax.ai:3478',
       'stun:cmcturn2.vedax.ai:3478',
       'stun:cmcturn3.vedax.ai:3478' ] } ]
2022-10-25 00:16:01.249672+0700 VedaxLink[1299:408409] [javascript] 'addstream', { active: true,
  _tracks: 
   [ { _constraints: 
        { echoCancellation: true,
          noiseSuppression: true,
          autoGainControl: true,
          googEchoCancellation: true,
          googAutoGainControl: true,
          googNoiseSuppression: true,
          googHighpassFilter: true,
          googTypingNoiseDetection: true,
          googNoiseReduction: true },
       _enabled: true,
       _settings: {},
       _muted: false,
       id: '787D808F-62C0-4D0B-8BA9-E71D53E99641',
       kind: 'audio',
       label: '787D808F-62C0-4D0B-8BA9-E71D53E99641',
       remote: false,
       readyState: 'live' },
     { _constraints: { facingMode: 'user', frameRate: 25, height: 320, width: 480 },
       _enabled: true,
       _settings: { height: 360, frameRate: 3, width: 480 },
       _muted: false,
       id: '73B575D1-0822-41B8-A4CA-5F7B51640226',
       kind: 'video',
       label: '73B575D1-0822-41B8-A4CA-5F7B51640226',
       remote: false,
       readyState: 'live' } ],
  id: 'C472C13B-B103-49E0-B043-2A9A06F76AA4',
  _reactTag: 'C472C13B-B103-49E0-B043-2A9A06F76AA4' }
2022-10-25 00:16:01.252348+0700 VedaxLink[1299:408409] [javascript] onnegotiationneeded
2022-10-25 00:16:01.254751+0700 VedaxLink[1299:408409] [javascript] 'signalingState', 'janus.plugin.videoroom', 2106938338156817, 'have-local-offer'
2022-10-25 00:16:01.257558+0700 VedaxLink[1299:408409] [javascript] 'iceGatheringState', 'janus.plugin.videoroom', 2106938338156817, 'gathering'
2022-10-25 00:16:01.258803+0700 VedaxLink[1299:408409] [javascript] 'candidate event', 'janus.plugin.videoroom', 2106938338156817, { candidate: 'candidate:429538988 1 udp 2122262783 2405:4802:1c3:be00:cd5f:b39:97bc:6572 56769 typ host generation 0 ufrag dIjJ network-id 2 network-cost 10',
  sdpMLineIndex: 0,
  sdpMid: 'audio' }
2022-10-25 00:16:01.259461+0700 VedaxLink[1299:408409] [javascript] 'candidate event', 'janus.plugin.videoroom', 2106938338156817, { candidate: 'candidate:2437072876 1 udp 2122194687 192.168.1.2 50814 typ host generation 0 ufrag dIjJ network-id 1 network-cost 10',
  sdpMLineIndex: 0,
  sdpMid: 'audio' }
2022-10-25 00:16:01.259939+0700 VedaxLink[1299:408409] [javascript] 'candidate event', 'janus.plugin.videoroom', 2106938338156817, { candidate: 'candidate:1042518338 1 udp 2122129151 169.254.125.80 56151 typ host generation 0 ufrag dIjJ network-id 3 network-cost 10',
  sdpMLineIndex: 0,
  sdpMid: 'audio' }
2022-10-25 00:16:01.260416+0700 VedaxLink[1299:408409] [javascript] 'candidate event', 'janus.plugin.videoroom', 2106938338156817, { candidate: 'candidate:429538988 1 udp 2122262783 2405:4802:1c3:be00:cd5f:b39:97bc:6572 55165 typ host generation 0 ufrag dIjJ network-id 2 network-cost 10',
  sdpMLineIndex: 1,
  sdpMid: 'video' }
2022-10-25 00:16:01.261059+0700 VedaxLink[1299:408409] [javascript] 'candidate event', 'janus.plugin.videoroom', 2106938338156817, { candidate: 'candidate:2437072876 1 udp 2122194687 192.168.1.2 60169 typ host generation 0 ufrag dIjJ network-id 1 network-cost 10',
  sdpMLineIndex: 1,
  sdpMid: 'video' }
2022-10-25 00:16:01.261601+0700 VedaxLink[1299:408409] [javascript] 'candidate event', 'janus.plugin.videoroom', 2106938338156817, { candidate: 'candidate:1042518338 1 udp 2122129151 169.254.125.80 52506 typ host generation 0 ufrag dIjJ network-id 3 network-cost 10',
  sdpMLineIndex: 1,
  sdpMid: 'video' }
2022-10-25 00:16:01.274655+0700 VedaxLink[1299:408409] [javascript] 'candidate event', 'janus.plugin.videoroom', 2106938338156817, { candidate: 'candidate:941443129 1 udp 1685987071 58.187.122.43 50814 typ srflx raddr 192.168.1.2 rport 50814 generation 0 ufrag dIjJ network-id 1 network-cost 10',
  sdpMLineIndex: 0,
  sdpMid: 'audio' }
2022-10-25 00:16:01.281678+0700 VedaxLink[1299:408409] [javascript] 'candidate event', 'janus.plugin.videoroom', 2106938338156817, { candidate: 'candidate:941443129 1 udp 1685987071 58.187.122.43 60169 typ srflx raddr 192.168.1.2 rport 60169 generation 0 ufrag dIjJ network-id 1 network-cost 10',
  sdpMLineIndex: 1,
  sdpMid: 'video' }
2022-10-25 00:16:01.318266+0700 VedaxLink[1299:408409] [javascript] 'setOnParticipantsListener', []
2022-10-25 00:16:01.319320+0700 VedaxLink[1299:408409] [javascript] 'joined to audio room', 1666631758822, []
2022-10-25 00:16:01.319923+0700 VedaxLink[1299:408409] [javascript] 'addstream', { active: true,
  _tracks: 
   [ { _constraints: 
        { echoCancellation: true,
          noiseSuppression: true,
          autoGainControl: true,
          googEchoCancellation: true,
          googAutoGainControl: true,
          googNoiseSuppression: true,
          googHighpassFilter: true,
          googTypingNoiseDetection: true,
          googNoiseReduction: true },
       _enabled: true,
       _settings: {},
       _muted: false,
       id: '787D808F-62C0-4D0B-8BA9-E71D53E99641',
       kind: 'audio',
       label: '787D808F-62C0-4D0B-8BA9-E71D53E99641',
       remote: false,
       readyState: 'live' },
     { _constraints: { facingMode: 'user', frameRate: 25, height: 320, width: 480 },
       _enabled: true,
       _settings: { height: 360, frameRate: 3, width: 480 },
       _muted: false,
       id: '73B575D1-0822-41B8-A4CA-5F7B51640226',
       kind: 'video',
       label: '73B575D1-0822-41B8-A4CA-5F7B51640226',
       remote: false,
       readyState: 'live' } ],
  id: 'C472C13B-B103-49E0-B043-2A9A06F76AA4',
  _reactTag: 'C472C13B-B103-49E0-B043-2A9A06F76AA4' }
2022-10-25 00:16:01.321674+0700 VedaxLink[1299:408409] [javascript] onnegotiationneeded
2022-10-25 00:16:01.324514+0700 VedaxLink[1299:408409] [javascript] 'signalingState', 'janus.plugin.audiobridge', 390011489158885, 'have-local-offer'
2022-10-25 00:16:01.326208+0700 VedaxLink[1299:408409] [javascript] 'iceGatheringState', 'janus.plugin.audiobridge', 390011489158885, 'gathering'
2022-10-25 00:16:01.327275+0700 VedaxLink[1299:408409] [javascript] 'candidate event', 'janus.plugin.audiobridge', 390011489158885, { candidate: 'candidate:429538988 1 udp 2122262783 2405:4802:1c3:be00:cd5f:b39:97bc:6572 57606 typ host generation 0 ufrag S/+3 network-id 2 network-cost 10',
  sdpMLineIndex: 0,
  sdpMid: 'audio' }
2022-10-25 00:16:01.327883+0700 VedaxLink[1299:408409] [javascript] 'candidate event', 'janus.plugin.audiobridge', 390011489158885, { candidate: 'candidate:2437072876 1 udp 2122194687 192.168.1.2 56761 typ host generation 0 ufrag S/+3 network-id 1 network-cost 10',
  sdpMLineIndex: 0,
  sdpMid: 'audio' }
2022-10-25 00:16:01.329030+0700 VedaxLink[1299:408409] [javascript] 'candidate event', 'janus.plugin.audiobridge', 390011489158885, { candidate: 'candidate:1042518338 1 udp 2122129151 169.254.125.80 54534 typ host generation 0 ufrag S/+3 network-id 3 network-cost 10',
  sdpMLineIndex: 0,
  sdpMid: 'audio' }
2022-10-25 00:16:01.329578+0700 VedaxLink[1299:408409] [javascript] 'candidate event', 'janus.plugin.audiobridge', 390011489158885, { candidate: 'candidate:429538988 1 udp 2122262783 2405:4802:1c3:be00:cd5f:b39:97bc:6572 53710 typ host generation 0 ufrag S/+3 network-id 2 network-cost 10',
  sdpMLineIndex: 1,
  sdpMid: 'video' }
2022-10-25 00:16:01.330644+0700 VedaxLink[1299:408409] [javascript] 'candidate event', 'janus.plugin.audiobridge', 390011489158885, { candidate: 'candidate:2437072876 1 udp 2122194687 192.168.1.2 58482 typ host generation 0 ufrag S/+3 network-id 1 network-cost 10',
  sdpMLineIndex: 1,
  sdpMid: 'video' }
2022-10-25 00:16:01.331143+0700 VedaxLink[1299:408409] [javascript] 'candidate event', 'janus.plugin.audiobridge', 390011489158885, { candidate: 'candidate:1042518338 1 udp 2122129151 169.254.125.80 60320 typ host generation 0 ufrag S/+3 network-id 3 network-cost 10',
  sdpMLineIndex: 1,
  sdpMid: 'video' }
2022-10-25 00:16:01.363970+0700 VedaxLink[1299:408409] [javascript] 'candidate event', 'janus.plugin.videoroom', 2106938338156817, { candidate: 'candidate:1461305948 1 tcp 1518283007 2405:4802:1c3:be00:cd5f:b39:97bc:6572 60095 typ host tcptype passive generation 0 ufrag dIjJ network-id 2 network-cost 10',
  sdpMLineIndex: 0,
  sdpMid: 'audio' }
2022-10-25 00:16:01.364554+0700 VedaxLink[1299:408409] [javascript] 'candidate event', 'janus.plugin.videoroom', 2106938338156817, { candidate: 'candidate:3753982748 1 tcp 1518214911 192.168.1.2 60096 typ host tcptype passive generation 0 ufrag dIjJ network-id 1 network-cost 10',
  sdpMLineIndex: 0,
  sdpMid: 'audio' }
2022-10-25 00:16:01.365820+0700 VedaxLink[1299:408409] [javascript] 'candidate event', 'janus.plugin.videoroom', 2106938338156817, { candidate: 'candidate:1889562034 1 tcp 1518149375 169.254.125.80 60097 typ host tcptype passive generation 0 ufrag dIjJ network-id 3 network-cost 10',
  sdpMLineIndex: 0,
  sdpMid: 'audio' }
2022-10-25 00:16:01.366763+0700 VedaxLink[1299:408409] [javascript] 'candidate event', 'janus.plugin.videoroom', 2106938338156817, { candidate: 'candidate:1461305948 1 tcp 1518283007 2405:4802:1c3:be00:cd5f:b39:97bc:6572 60098 typ host tcptype passive generation 0 ufrag dIjJ network-id 2 network-cost 10',
  sdpMLineIndex: 1,
  sdpMid: 'video' }
2022-10-25 00:16:01.367967+0700 VedaxLink[1299:408409] [javascript] 'candidate event', 'janus.plugin.videoroom', 2106938338156817, { candidate: 'candidate:3753982748 1 tcp 1518214911 192.168.1.2 60099 typ host tcptype passive generation 0 ufrag dIjJ network-id 1 network-cost 10',
  sdpMLineIndex: 1,
  sdpMid: 'video' }
2022-10-25 00:16:01.368704+0700 VedaxLink[1299:408409] [javascript] 'candidate event', 'janus.plugin.videoroom', 2106938338156817, { candidate: 'candidate:1889562034 1 tcp 1518149375 169.254.125.80 60100 typ host tcptype passive generation 0 ufrag dIjJ network-id 3 network-cost 10',
  sdpMLineIndex: 1,
  sdpMid: 'video' }
2022-10-25 00:16:01.376088+0700 VedaxLink[1299:408409] [javascript] videoroom onWebRTCUpListener
2022-10-25 00:16:01.378462+0700 VedaxLink[1299:408409] [javascript] 'candidate event', 'janus.plugin.audiobridge', 390011489158885, { candidate: 'candidate:941443129 1 udp 1685987071 58.187.122.43 56761 typ srflx raddr 192.168.1.2 rport 56761 generation 0 ufrag S/+3 network-id 1 network-cost 10',
  sdpMLineIndex: 0,
  sdpMid: 'audio' }
2022-10-25 00:16:01.380801+0700 VedaxLink[1299:408409] [javascript] 'signalingState', 'janus.plugin.videoroom', 2106938338156817, 'stable'
2022-10-25 00:16:01.501138+0700 VedaxLink[1299:408409] [javascript] 'NotifyJsonStr', 'RoomCallUserMediaChanged'
2022-10-25 00:16:01.627233+0700 VedaxLink[1299:408409] [javascript] 'updateMediaSource success', undefined
2022-10-25 00:16:02.259736+0700 VedaxLink[1299:408409] [javascript] 'iceconnectionstate', 'janus.plugin.videoroom', 2106938338156817, 'checking'
2022-10-25 00:16:02.260129+0700 VedaxLink[1299:408409] [javascript] 'audioroom setremote success', []
2022-10-25 00:16:02.261932+0700 VedaxLink[1299:408409] [javascript] 'candidate event', 'janus.plugin.videoroom', 2106938338156817, { candidate: 'candidate:1461305948 1 tcp 1518283007 2405:4802:1c3:be00:cd5f:b39:97bc:6572 60101 typ host tcptype passive generation 0 ufrag dIjJ network-id 2 network-cost 10',
  sdpMLineIndex: 0,
  sdpMid: 'audio' }
2022-10-25 00:16:02.265348+0700 VedaxLink[1299:408409] [javascript] 'candidate event', 'janus.plugin.videoroom', 2106938338156817, { candidate: 'candidate:3753982748 1 tcp 1518214911 192.168.1.2 60102 typ host tcptype passive generation 0 ufrag dIjJ network-id 1 network-cost 10',
  sdpMLineIndex: 0,
  sdpMid: 'audio' }
2022-10-25 00:16:02.266937+0700 VedaxLink[1299:408409] [javascript] 'candidate event', 'janus.plugin.videoroom', 2106938338156817, { candidate: 'candidate:1889562034 1 tcp 1518149375 169.254.125.80 60103 typ host tcptype passive generation 0 ufrag dIjJ network-id 3 network-cost 10',
  sdpMLineIndex: 0,
  sdpMid: 'audio' }
2022-10-25 00:16:02.275368+0700 VedaxLink[1299:408409] [javascript] 'candidate event', 'janus.plugin.videoroom', 2106938338156817, { candidate: 'candidate:1461305948 1 tcp 1518283007 2405:4802:1c3:be00:cd5f:b39:97bc:6572 60104 typ host tcptype passive generation 0 ufrag dIjJ network-id 2 network-cost 10',
  sdpMLineIndex: 0,
  sdpMid: 'audio' }
2022-10-25 00:16:02.275982+0700 VedaxLink[1299:408409] [javascript] 'candidate event', 'janus.plugin.videoroom', 2106938338156817, { candidate: 'candidate:3753982748 1 tcp 1518214911 192.168.1.2 60105 typ host tcptype passive generation 0 ufrag dIjJ network-id 1 network-cost 10',
  sdpMLineIndex: 0,
  sdpMid: 'audio' }
2022-10-25 00:16:02.276994+0700 VedaxLink[1299:408409] [javascript] 'candidate event', 'janus.plugin.videoroom', 2106938338156817, { candidate: 'candidate:1889562034 1 tcp 1518149375 169.254.125.80 60106 typ host tcptype passive generation 0 ufrag dIjJ network-id 3 network-cost 10',
  sdpMLineIndex: 0,
  sdpMid: 'audio' }
2022-10-25 00:16:02.277484+0700 VedaxLink[1299:408409] [javascript] 'candidate event', 'janus.plugin.audiobridge', 390011489158885, { candidate: 'candidate:1461305948 1 tcp 1518283007 2405:4802:1c3:be00:cd5f:b39:97bc:6572 60107 typ host tcptype passive generation 0 ufrag S/+3 network-id 2 network-cost 10',
  sdpMLineIndex: 0,
  sdpMid: 'audio' }
2022-10-25 00:16:02.278400+0700 VedaxLink[1299:408409] [javascript] 'candidate event', 'janus.plugin.audiobridge', 390011489158885, { candidate: 'candidate:3753982748 1 tcp 1518214911 192.168.1.2 60108 typ host tcptype passive generation 0 ufrag S/+3 network-id 1 network-cost 10',
  sdpMLineIndex: 0,
  sdpMid: 'audio' }
2022-10-25 00:16:02.279234+0700 VedaxLink[1299:408409] [javascript] 'candidate event', 'janus.plugin.audiobridge', 390011489158885, { candidate: 'candidate:1889562034 1 tcp 1518149375 169.254.125.80 60109 typ host tcptype passive generation 0 ufrag S/+3 network-id 3 network-cost 10',
  sdpMLineIndex: 0,
  sdpMid: 'audio' }
2022-10-25 00:16:02.280501+0700 VedaxLink[1299:408409] [javascript] 'candidate event', 'janus.plugin.audiobridge', 390011489158885, { candidate: 'candidate:1461305948 1 tcp 1518283007 2405:4802:1c3:be00:cd5f:b39:97bc:6572 60110 typ host tcptype passive generation 0 ufrag S/+3 network-id 2 network-cost 10',
  sdpMLineIndex: 1,
  sdpMid: 'video' }
2022-10-25 00:16:02.281002+0700 VedaxLink[1299:408409] [javascript] 'candidate event', 'janus.plugin.audiobridge', 390011489158885, { candidate: 'candidate:3753982748 1 tcp 1518214911 192.168.1.2 60111 typ host tcptype passive generation 0 ufrag S/+3 network-id 1 network-cost 10',
  sdpMLineIndex: 1,
  sdpMid: 'video' }
2022-10-25 00:16:02.282193+0700 VedaxLink[1299:408409] [javascript] 'candidate event', 'janus.plugin.audiobridge', 390011489158885, { candidate: 'candidate:1889562034 1 tcp 1518149375 169.254.125.80 60112 typ host tcptype passive generation 0 ufrag S/+3 network-id 3 network-cost 10',
  sdpMLineIndex: 1,
  sdpMid: 'video' }
2022-10-25 00:16:02.283895+0700 VedaxLink[1299:408409] [javascript] 'candidate event', 'janus.plugin.audiobridge', 390011489158885, { candidate: 'candidate:941443129 1 udp 1685987071 58.187.122.43 58482 typ srflx raddr 192.168.1.2 rport 58482 generation 0 ufrag S/+3 network-id 1 network-cost 10',
  sdpMLineIndex: 1,
  sdpMid: 'video' }
2022-10-25 00:16:02.284689+0700 VedaxLink[1299:408409] [javascript] 'connectionState', 'janus.plugin.videoroom', 2106938338156817, 'connecting'
2022-10-25 00:16:02.291521+0700 VedaxLink[1299:408138] RNInCallManager.AudioRouteChange.Reason: CategoryChange. category=AVAudioSessionCategoryPlayAndRecord mode=AVAudioSessionModeVoiceChat
2022-10-25 00:16:02.291727+0700 VedaxLink[1299:408138] RNInCallManager.updateAudioRoute(): [Enter] forceSpeakerOn flag=0 media=audio category=AVAudioSessionCategoryPlayAndRecord mode=AVAudioSessionModeVoiceChat
2022-10-25 00:16:02.292868+0700 VedaxLink[1299:408409] [javascript] 'signalingState', 'janus.plugin.audiobridge', 390011489158885, 'stable'
2022-10-25 00:16:02.295316+0700 VedaxLink[1299:408409] [javascript] 'iceconnectionstate', 'janus.plugin.audiobridge', 390011489158885, 'checking'
2022-10-25 00:16:02.297581+0700 VedaxLink[1299:408409] [javascript] 'audio setOnStreamListener', { active: true,
  _tracks: 
   [ { _constraints: {},
       _enabled: true,
       _settings: {},
       _muted: false,
       id: 'janusaudio',
       kind: 'audio',
       label: 'janusaudio',
       remote: true,
       readyState: 'live' } ],
  id: 'janus',
  _reactTag: 'F05EC5CD-9A55-49CF-AF3F-518F1B68AEA0' }, ' => videoEnabled: ', true, ' => isOutgoing: ', true
2022-10-25 00:16:02.297637+0700 VedaxLink[1299:408409] [javascript] setSpeakerphoneOn
2022-10-25 00:16:02.297919+0700 VedaxLink[1299:408138] RNInCallManager.updateAudioRoute(): audioSession.overrideOutputAudioPort(.None) success
2022-10-25 00:16:02.298103+0700 VedaxLink[1299:408138] RNInCallManager.updateAudioRoute() did NOT change audio category
2022-10-25 00:16:02.298142+0700 VedaxLink[1299:408138] RNInCallManager.updateAudioRoute() did NOT change audio mode
2022-10-25 00:16:02.298176+0700 VedaxLink[1299:408138] RNInCallManager.AudioRouteChange.SilenceSecondaryAudioHint: End
2022-10-25 00:16:02.298295+0700 VedaxLink[1299:408406] RNInCallManager.setForceSpeakerphoneOn(): flag: 1
2022-10-25 00:16:02.298411+0700 VedaxLink[1299:408138] RNInCallManager.AudioRouteChange.SilenceSecondaryAudioHint: Unknow Value
2022-10-25 00:16:02.299836+0700 VedaxLink[1299:408409] [javascript] audioroom isRemoteDescriptionSet succses
2022-10-25 00:16:02.300206+0700 VedaxLink[1299:408406] RNInCallManager.updateAudioRoute(): [Enter] forceSpeakerOn flag=1 media=audio category=AVAudioSessionCategoryPlayAndRecord mode=AVAudioSessionModeVoiceChat
2022-10-25 00:16:02.301667+0700 VedaxLink[1299:408406] RNInCallManager.updateAudioRoute(): did NOT overrideOutputAudioPort()
2022-10-25 00:16:02.301832+0700 VedaxLink[1299:408406] RNInCallManager.updateAudioRoute() did NOT change audio category
2022-10-25 00:16:02.301943+0700 VedaxLink[1299:408406] RNInCallManager.updateAudioRoute() did NOT change audio mode
2022-10-25 00:16:02.308589+0700 VedaxLink[1299:408409] [javascript] 'connectionState', 'janus.plugin.audiobridge', 390011489158885, 'connecting'
2022-10-25 00:16:02.427180+0700 VedaxLink[1299:408409] [javascript] 'candidate event', 'janus.plugin.videoroom', 2106938338156817, null
2022-10-25 00:16:02.427303+0700 VedaxLink[1299:408409] [javascript] 'iceGatheringState', 'janus.plugin.videoroom', 2106938338156817, 'complete'
2022-10-25 00:16:02.451905+0700 VedaxLink[1299:408409] [javascript] 'candidate event', 'janus.plugin.audiobridge', 390011489158885, null
2022-10-25 00:16:02.452042+0700 VedaxLink[1299:408409] [javascript] 'iceGatheringState', 'janus.plugin.audiobridge', 390011489158885, 'complete'
2022-10-25 00:16:02.583241+0700 VedaxLink[1299:408409] [javascript] 'connectionState', 'janus.plugin.videoroom', 2106938338156817, 'connected'
2022-10-25 00:16:02.583915+0700 VedaxLink[1299:408409] [javascript] 'iceconnectionstate', 'janus.plugin.videoroom', 2106938338156817, 'connected'
2022-10-25 00:16:02.589869+0700 VedaxLink[1299:408409] [javascript] 'connectionState', 'janus.plugin.audiobridge', 390011489158885, 'connected'
2022-10-25 00:16:02.590068+0700 VedaxLink[1299:408409] [javascript] 'iceconnectionstate', 'janus.plugin.audiobridge', 390011489158885, 'connected'
2022-10-25 00:16:02.660064+0700 VedaxLink[1299:408409] [javascript] 'video plugin', 'receiving audio now...'
2022-10-25 00:16:02.676245+0700 VedaxLink[1299:408409] [javascript] 'audio plugin', 'receiving audio now...'
2022-10-25 00:16:02.705921+0700 VedaxLink[1299:408409] [javascript] 'video plugin', 'receiving video now...'
2022-10-25 00:16:09.310043+0700 VedaxLink[1299:408409] [javascript] 'fcm onMessage', { RoomId: '077816f358d245189fa43ca3eca920c97da977419faf44119bb1a7cc9ac1de78',
  CallerId: '7da97741-9faf-4411-9bb1-a7cc9ac1de78',
  CallId: 'V5mHBiREAEaaxCZbShq_zg',
  Cmd: 'HideCallScreen' }
2022-10-25 00:16:09.310406+0700 VedaxLink[1299:408409] [javascript] 'route name', 'SingleCall'
2022-10-25 00:16:09.342225+0700 VedaxLink[1299:408409] [javascript] 'NotifyJsonStr', 'RoomContactAcceptCall'
2022-10-25 00:16:09.342467+0700 VedaxLink[1299:408409] [javascript] stopRingback
2022-10-25 00:16:09.362892+0700 VedaxLink[1299:408409] [javascript] 'NotifyJsonStr', 'RoomChatMsgReadedByUser'
2022-10-25 00:16:13.473566+0700 VedaxLink[1299:408409] [javascript] 'NotifyJsonStr', 'RoomCallUserMediaChanged'
2022-10-25 00:16:13.943454+0700 VedaxLink[1299:408409] [javascript] 'receivePublisher', { id: 2688018271618775,
  displayName: '077816f3-58d2-4518-9fa4-3ca3eca920c9',
  isTalking: undefined,
  codecs: { audio: 'opus', video: 'vp8' } }
2022-10-25 00:16:13.943905+0700 VedaxLink[1299:408409] [javascript] 'stunList', [ 'stun:cmcturn1.vedax.ai:3478',
  'stun:cmcturn2.vedax.ai:3478',
  'stun:cmcturn3.vedax.ai:3478' ]
2022-10-25 00:16:13.944724+0700 VedaxLink[1299:408409] [javascript] 'iceserver', [ { urls: 
     [ 'turn:cmcturn1.vedax.ai:3478',
       'turn:cmcturn1.vedax.ai:3478?transport=tcp',
       'turn:cmcturn1.vedax.ai:3478?transport=udp' ],
    username: 'link',
    credential: 'CMClink@123' },
  { urls: 
     [ 'turn:cmcturn2.vedax.ai:3478',
       'turn:cmcturn2.vedax.ai:3478?transport=tcp',
       'turn:cmcturn2.vedax.ai:3478?transport=udp' ],
    username: 'link',
    credential: 'CMClink@123' },
  { urls: 
     [ 'turn:cmcturn3.vedax.ai:3478',
       'turn:cmcturn3.vedax.ai:3478?transport=tcp',
       'turn:cmcturn3.vedax.ai:3478?transport=udp' ],
    username: 'link',
    credential: 'CMClink@123' },
  { urls: 
     [ 'stun:cmcturn1.vedax.ai:3478',
       'stun:cmcturn2.vedax.ai:3478',
       'stun:cmcturn3.vedax.ai:3478' ] } ]
2022-10-25 00:16:14.147834+0700 VedaxLink[1299:408409] [javascript] receive => joinResponse
2022-10-25 00:16:14.176161+0700 VedaxLink[1299:408409] [javascript] 'signalingState', 'janus.plugin.videoroom', 3346289087011099, 'have-remote-offer'
2022-10-25 00:16:14.179333+0700 VedaxLink[1299:408472] [native] [VideoTrackAdapter] Adapter created for track janus1
2022-10-25 00:16:14.180711+0700 VedaxLink[1299:408409] [javascript] 'onpublisher stream listener', { id: 2688018271618775,
  displayName: '077816f3-58d2-4518-9fa4-3ca3eca920c9',
  isTalking: undefined,
  codecs: { audio: 'opus', video: 'vp8' } }
2022-10-25 00:16:14.189538+0700 VedaxLink[1299:408409] [javascript] set other user remoteDesc success
2022-10-25 00:16:14.205014+0700 VedaxLink[1299:408409] [javascript] 'signalingState', 'janus.plugin.videoroom', 3346289087011099, 'stable'
2022-10-25 00:16:14.220037+0700 VedaxLink[1299:408409] [javascript] receive setLocalDescription succes
2022-10-25 00:16:14.221266+0700 VedaxLink[1299:408409] [javascript] 'iceconnectionstate', 'janus.plugin.videoroom', 3346289087011099, 'checking'
2022-10-25 00:16:14.222268+0700 VedaxLink[1299:408409] [javascript] 'iceGatheringState', 'janus.plugin.videoroom', 3346289087011099, 'gathering'
2022-10-25 00:16:14.223163+0700 VedaxLink[1299:408409] [javascript] 'candidate event', 'janus.plugin.videoroom', 3346289087011099, { candidate: 'candidate:429538988 1 udp 2122262783 2405:4802:1c3:be00:cd5f:b39:97bc:6572 60761 typ host generation 0 ufrag XTwt network-id 2 network-cost 10',
  sdpMLineIndex: 1,
  sdpMid: '1' }
2022-10-25 00:16:14.224029+0700 VedaxLink[1299:408409] [javascript] 'connectionState', 'janus.plugin.videoroom', 3346289087011099, 'connecting'
2022-10-25 00:16:14.225192+0700 VedaxLink[1299:408409] [javascript] 'candidate event', 'janus.plugin.videoroom', 3346289087011099, { candidate: 'candidate:2437072876 1 udp 2122194687 192.168.1.2 61009 typ host generation 0 ufrag XTwt network-id 1 network-cost 10',
  sdpMLineIndex: 1,
  sdpMid: '1' }
2022-10-25 00:16:14.225855+0700 VedaxLink[1299:408409] [javascript] 'candidate event', 'janus.plugin.videoroom', 3346289087011099, { candidate: 'candidate:1042518338 1 udp 2122129151 169.254.125.80 63473 typ host generation 0 ufrag XTwt network-id 3 network-cost 10',
  sdpMLineIndex: 1,
  sdpMid: '1' }
2022-10-25 00:16:14.239002+0700 VedaxLink[1299:408409] [javascript] 'candidate event', 'janus.plugin.videoroom', 3346289087011099, { candidate: 'candidate:941443129 1 udp 1685987071 58.187.122.43 61009 typ srflx raddr 192.168.1.2 rport 61009 generation 0 ufrag XTwt network-id 1 network-cost 10',
  sdpMLineIndex: 1,
  sdpMid: '1' }
2022-10-25 00:16:14.294531+0700 VedaxLink[1299:408409] [javascript] 'receive => startResponse', []
2022-10-25 00:16:14.324839+0700 VedaxLink[1299:408409] [javascript] 'candidate event', 'janus.plugin.videoroom', 3346289087011099, { candidate: 'candidate:1461305948 1 tcp 1518283007 2405:4802:1c3:be00:cd5f:b39:97bc:6572 60135 typ host tcptype passive generation 0 ufrag XTwt network-id 2 network-cost 10',
  sdpMLineIndex: 1,
  sdpMid: '1' }
2022-10-25 00:16:14.325686+0700 VedaxLink[1299:408409] [javascript] 'candidate event', 'janus.plugin.videoroom', 3346289087011099, { candidate: 'candidate:3753982748 1 tcp 1518214911 192.168.1.2 60136 typ host tcptype passive generation 0 ufrag XTwt network-id 1 network-cost 10',
  sdpMLineIndex: 1,
  sdpMid: '1' }
2022-10-25 00:16:14.326289+0700 VedaxLink[1299:408409] [javascript] 'candidate event', 'janus.plugin.videoroom', 3346289087011099, { candidate: 'candidate:1889562034 1 tcp 1518149375 169.254.125.80 60137 typ host tcptype passive generation 0 ufrag XTwt network-id 3 network-cost 10',
  sdpMLineIndex: 1,
  sdpMid: '1' }
2022-10-25 00:16:14.385873+0700 VedaxLink[1299:408409] [javascript] 'candidate event', 'janus.plugin.videoroom', 3346289087011099, null
2022-10-25 00:16:14.386025+0700 VedaxLink[1299:408409] [javascript] 'iceGatheringState', 'janus.plugin.videoroom', 3346289087011099, 'complete'
2022-10-25 00:16:17.179760+0700 VedaxLink[1299:408138] [native] [VideoTrackAdapter] Mute event for pc 2 track janus1
2022-10-25 00:16:17.423751+0700 VedaxLink[1299:408409] [javascript] 'iceconnectionstate', 'janus.plugin.videoroom', 2106938338156817, 'completed'
2022-10-25 00:16:17.450912+0700 VedaxLink[1299:408409] [javascript] 'iceconnectionstate', 'janus.plugin.audiobridge', 390011489158885, 'completed'

  • React Native Version: 0.68.0
  • Plugin Version: WebRTC 1.100.1
  • OS: Iphone 13 promax device
  • OS Version: 16.0

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
fukemycommented, Oct 25, 2022

thanks, i passed null for audioRoom, videoRoom, remoteVideoRoom for ensure all variable were destroyed. But i make new question, please help, thanks so much https://github.com/react-native-webrtc/react-native-webrtc/issues/1211

0reactions
fukemycommented, Oct 25, 2022

Hi, i tried to set those to null, look like this:

audioRoom.pc = null
videoRoom.pc = null

audioRoom = null
videoRoom = null

janus.close()
janus = null

but it’s not working to me. So I did above question, It’s seem give null to those object does not destroy the object.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Black Screen While Using Windows Remote Desktop (RDP ...
In this article, we will show what to do if you see a black screen instead of a desktop when you connect to...
Read more >
Windows 10 Remote Desktop Connects with Black Screen ...
Using Remote Desktop the remote screen turns black right after login and you have no control. The issue appears to be caused by...
Read more >
RDP screen goes black after successful remote login
Today, I rebooted the server and when I try to connect with RDP, I get the login prompt and enter my credentials, I...
Read more >
Black screen when renderer remote video track after ... - GitHub
After connecting to the room and getting trackSubscribed event for the participant, remote participant video is sometimes taking 10 - 20 ...
Read more >
Remote Desktop Shows Black Screen in Windows 7 and 8
Start a new RDP client on your desktop but BEFORE you click CONNECT, click the SHOW OPTIONS link, click the DISPLAY tab and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found