media.onMuteRequest - GiGAGenie-ServiceSDK/UserGuide GitHub Wiki
gigagenie.media.onMuteRequest
API μ€λͺ
- Mute μ΄λ²€νΈ API
- G-Box μ λ³΅ν© μν©μμ ContainerAppμ Mute μμ² μ΄λ²€νΈ μμ νλ μ½λ°±
- G-Box λ³΅ν© μν©μ ContainerApp μμ μ€μν΄μΌ λλ μ¬νμΌλ‘ HTMLμμ λμμ, μ€λμ€ νλ μ΄μμ onMuteRequest μ΄λ²€νΈλ₯Ό μμ νμ¬ λμμ, μ€λμ€μ μμ±μ Off ν΄μΌλ§ ν¨ (κ°μ μ¬νμΌλ‘, App μ°¨λ¨ κ°λ₯ν¨)
API ꡬ쑰
- function callback(extra)
extra
mute
: (Boolean, Mandatory) μ€λμ€ On/Offμ λν κ°true
: mute μν(μ€λμ€λ₯Ό Offν΄μΌ ν¨)false
: mute μν ν΄μ (μ€λμ€ On)
μ¬μ© μμ
// callback λ°©μ
var options = {};
gigagenie.media.onMuteRequest = function (extra) {
if (extra.mute) {
console.log("mute requested ");
//λμμ, μ€λμ€ Mute
} else {
console.log("mute is released ");
//λμμ, μ€λμ€ Mute ν΄μ
};
};
νμ© μμ λ (GiGA Genie ꡬꡬλ¨)μμ νμΈ κ°λ₯ν©λλ€