This message was deleted.
# helpdesk
s
This message was deleted.
f
And I tried this way too
publishTrack(audioTrack, { source: Track.Source.Microphone, stopMicTrackOnMute: true })
But it's keeping recording is on when the user muted always
So I was trying to unpublish/publish to stop track when the user muted. But it's getting warning. I was trying to publish audio track by using same source
Microphone
a
Hm @polite-kilobyte-67570 probably knows the answer (though he might be out for the weekend)
f
Got it. Thanks. I will wait by next Monday
d
@flat-ability-87405 which platform are you testing on? On Chrome/Mac,
stopMicTrackOnMute
works well for me.
f
Chrome/Windows
Is this related with the platform?
d
possibly. So if you unpublish & republish, other than the warning, what else do you see?
f
No else. I am getting warning.
"You are trying to publish with same Source again"
d
but it behaves like the way you would like?
f
Yes. it's working well
d
ok, that's good. we'll check out how it behaves on windows
last I tried it did work properly. but maybe something has changed
f
Can you help to check why track is not stopped when it's muted?
d
the code is stopping it when that option is set
f
Yes. I checked the code. It's trying to stop. But it's not working on my side. Let me try to debug again.
@dry-elephant-14928 I tried to debug. It's not working
I checked
setMicrophoneEnabled
function. It's trying to unpublish/publish. So I think I can do this way on my local side without using this
setMicrophoneEnabled
What do you think of this?
d
just to check, did you pass in stopMicTrackOnMute when initially enabling microphone? those options are used only during publishing (enabled=true), and ignored when it's being turned off
f
Sure
Please check
setTrackEnabled
. It's checking source is Screenshare. If it's not screenshare, it's trying to unmute simply
d
can you check your code when mic was enabled? what are you passing in for publish options?
again.. not when you are calling setEnabled(false... how are you enabling the track?
f
Please check these two functions
d
what is audioTrack? how was that acquired?
f
it's acquired from getUserMedia
d
if you are using that instead of setMicrphoneEnabled(true), we cannot manage mic indicator for you
that's expected
f
I understand.
Thanks. Let me check more