зеркало из https://github.com/mozilla/gecko-dev.git
24 строки
473 B
HTML
24 строки
473 B
HTML
<!DOCTYPE html>
|
|
<embed type="application/x-test" width="200" height="200"></embed>
|
|
<script>
|
|
var plugin = document.querySelector("embed");
|
|
|
|
function startAudio() {
|
|
plugin.startAudioPlayback();
|
|
}
|
|
|
|
function stopAudio() {
|
|
plugin.stopAudioPlayback();
|
|
}
|
|
|
|
function pluginMuted() {
|
|
return plugin.audioMuted();
|
|
}
|
|
|
|
function toggleMuteState(muted) {
|
|
var Ci = SpecialPowers.Ci;
|
|
var utils = SpecialPowers.getDOMWindowUtils(window.top);
|
|
utils.audioMuted = muted;
|
|
}
|
|
</script>
|