Blog Logo 블로그 주인장 필명: 노모
필요 시 부담 없이 메일주세요 ^^ ↓
Contact Email
분류 전체보기 (127)
이 블로그는... (2)
먹을거 (9)
게임 (17)
지름 (9)
여행 (1)
정보 (57)
사진 (1)

setMuted function

According to the link below, twitch player inserted by javascript can be muted with the setMuted() function.

setMuted(false) works fine to unmute.

However, setMuted(true) does not work to mute.

setVolume(0.0) can be used instead of setMuted(true), but the volume is not recovered when player is unmuted.

Of course, before the player is muted using setVolume(0.0), the volume can be stored in a variable.

But it is not clear.

Functions that can be used instead of setMuted(true)

player can be muted by following function instead of setMuted(true).

player._sendCommand("setMuted", [true]);

I tested it on Chrome 71.0.3578.98 and it worked.

_sendCommand is a function in the file that you load to use embed twitch.

So, you do not need to write _sendCommand function.

Why setMuted(true) does not work

Below are some of the contents of 

_sendCommand function requires an eventName and a parameter as input variables.

But only when using the setMuted function, input variables are not passed exactly.

I do not know why this part is written in this way.

Leave a comment
≪ Previous : 1 : 2 : 3 : 4 : 5 : 6 : 7 : 8 : 9 : 10 : ··· : 127 : Next ≫