Skip to content

Using WebRTC, MSE & HLS as audio source. Problems with visualization. #96

@IgorA100

Description

@IgorA100

I use IP cameras + RTSPToWeb
When using MSE & audio AAC there are no problems with visualization. Everything works fine.
When using WebRTC & audio G.711A there is no visualization, although the sound from the camera is audible. No errors!

Connection code:

    ...................................
   const mediaStream = new MediaStream();
   audioEl.srcObject = mediaStream;
    ...................................

    const audioEl = document.getElementById('liveStream');
    var audioMotion = new AudioMotionAnalyzer(
      document.getElementById('audioVisualisation'),
      {
        source: audioEl,
        height: 100,
      }
    );

When doing audioEl .srcObject.getAudioTracks() I get an audio track.

I can't figure out why visualization doesn't work for MediaStream()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions