Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chrome crashes on h.264 dual stream #20

Open
uctakeoff opened this issue Aug 11, 2021 · 0 comments
Open

Chrome crashes on h.264 dual stream #20

uctakeoff opened this issue Aug 11, 2021 · 0 comments

Comments

@uctakeoff
Copy link

uctakeoff commented Aug 11, 2021

When I run the sample code basicVideoCall.js with some modifications, and repeat Join and Leave, Google Chrome often freezes.

OS: Windows 10 Pro
Chrome Version: 92.0.4515.131(Official Build) (64 bit)

The modifications are as follows.

  • Create an RTC client with h.264, dualstream

    var client = AgoraRTC.createClient({ mode: "rtc", codec: "h264" });
    client.enableDualStream().then(() => {
      console.log("Enable Dual stream success!");
      client.setLowStreamParameter({
        bitrate: 256,
        framerate: 1,
        width: 160,
        height: 90,
      });
    }).catch(err => {
      console.err(err);
    });
  • Add parameters to AudioTrack and VideoTrack.

      [ options.uid, localTracks.audioTrack, localTracks.videoTrack ] = await Promise.all([
        // Join the channel.
        client.join(options.appid, options.channel, options.token || null, options.uid || null),
        // Create tracks to the local microphone and camera.
        AgoraRTC.createMicrophoneAudioTrack({
          AEC: true,
          AGC: true,
          ANS: true,
          encoderConfig: {
            bitrate: 128
          }
        }),
        AgoraRTC.createCameraVideoTrack({
          encoderConfig: {
            width: 1920,
            height: 1080,
            bitrateMin: 1000,
            bitrateMax: 2000,
            frameRate: 30,
          }
        })
      ]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant