Skip to content
This repository has been archived by the owner on Dec 14, 2023. It is now read-only.

Video call have no voice on mac 2016+ models on first page load #17

Open
Bilal-Abbas-Gigalabs opened this issue Nov 20, 2020 · 1 comment

Comments

@Bilal-Abbas-Gigalabs
Copy link

Bilal-Abbas-Gigalabs commented Nov 20, 2020

I am facing a problem at safari 11+
I have tried to add stream.setAudioVolume(100) at stream-subscribed but nothing helps out for safari so far

following is my stream-subscribed callback

rt.client.on('stream-subscribed', (evt) => {
      let stream = evt.stream;
      stream.setAudioVolume(100);
      rt.addStream(stream);
    });

and my stream initialize method

streamInit = (uid, attendeeMode, videoProfile, config) => {
    let defaultConfig = {
      streamID: uid,
      audio: true,
      video: true,
      screen: false,
    };

    switch (attendeeMode) {
      case 'audio-only':
        defaultConfig.video = false;
        break;
      case 'audience':
        defaultConfig.video = false;
        defaultConfig.audio = false;
        break;
      default:
      case 'video':
        break;
    }

    let stream = AgoraRTC.createStream(merge(defaultConfig, config));
    stream.setVideoProfile(videoProfile);
    return stream;
  };

It is working fine at page reload
I am using "agora-rtc-sdk": "^3.1.2".
any other audio events used to sort this issue out?

@plutoless
Copy link
Contributor

@Bilal-Abbas-Gigalabs sorry for late reply. could you pls try this demo to see if it works for you or not?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants