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

Local Audio/Video tracks muted automatically #1977

Open
8 tasks done
Kstar0722 opened this issue Feb 2, 2023 · 4 comments
Open
8 tasks done

Local Audio/Video tracks muted automatically #1977

Kstar0722 opened this issue Feb 2, 2023 · 4 comments

Comments

@Kstar0722
Copy link

Kstar0722 commented Feb 2, 2023

I am trying to create audio/video local tracks on mobile safari. but seems it's blocking automatically even if I allowed microphone and camera in Settings/Safari

  • I have verified that the issue occurs with the latest twilio-video.js release and is not marked as a known issue in the CHANGELOG.md.
  • I reviewed the Common Issues and open GitHub issues and verified that this report represents a potentially new issue.
  • I verified that the Quickstart application works in my environment.
  • I am not sharing any Personally Identifiable Information (PII)
    or sensitive account information (API keys, credentials, etc.) when reporting this issue.
await createLocalAudioTrack({
      name: this.deviceId,
      logLevel: 'debug',
})
[Log] 2023-02-02T14:01:00.282Z – "debug" – "[LocalAudioTrack #2: undefined]" – "Initializing" (vendor.js, line 338862)
[Log] 2023-02-02T14:01:01.436Z – "debug" – "[LocalAudioTrack #2: xxxx]" – "Started" (vendor.js, line 338862)
[Info] 2023-02-02T14:01:01.636Z – "info" – "[LocalAudioTrack #2: xxxx]" – "Muted" (vendor.js, line 338862)

Expected behavior:

Should not mute audio track automatically

Actual behavior:
It's muted automatically only in mobile safari

Software versions:

  • Browser(s): Safari
  • Operating System: iOS
  • twilio-video.js: 2.20.0
  • Third-party libraries (e.g., Angular, React, etc.): Angular
@seancoleman2 seancoleman2 self-assigned this Feb 6, 2023
@seancoleman2
Copy link
Contributor

Hi @Kstar0722, I seeLocalAudioTrack #2 so my first thought is this could be related to a WebKit bug where calling getUserMedia again with iOS Safari will mute previously acquired LocalTracks. This is documented at the bottom of this section https://www.twilio.com/docs/video/build-js-video-application-recommendations-and-best-practices#acquiring-local-media. I'd check that section out for some of the nuances for Mobile Web to see if there is anything that could be the culprit (based on how you are handling your LocalTracks).

Let me know if that helps or if you have any further questions.

@Kstar0722
Copy link
Author

thanks for your reply @seancoleman2, I checked your link. but yes. it's not working on both localhost and https

@Kstar0722
Copy link
Author

@seancoleman2 the problem is it's working local track if I publish it to the call. but it's not working if I create it alone without publishing.

@seancoleman2 seancoleman2 removed their assignment Feb 14, 2023
@Kstar0722
Copy link
Author

Hi @seancoleman2 is there any updates? we still have a problem. thanks

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

2 participants