twilio-video.js
twilio-video.js copied to clipboard
Local Audio/Video tracks muted automatically
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
- [x] 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.
- [x] I reviewed the Common Issues and open GitHub issues and verified that this report represents a potentially new issue.
- [x] I verified that the Quickstart application works in my environment.
- [x] 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:
- [x] Browser(s): Safari
- [x] Operating System: iOS
- [x] twilio-video.js: 2.20.0
- [x] Third-party libraries (e.g., Angular, React, etc.): Angular
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.
thanks for your reply @seancoleman2, I checked your link. but yes. it's not working on both localhost and https
@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.
Hi @seancoleman2 is there any updates? we still have a problem. thanks