mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 16:28:38 +09:00
import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo
This commit is contained in:
commit
dcd9973243
150858 changed files with 23884658 additions and 0 deletions
25
dom/base/test/file_pluginAudioNonAutoStart.html
Normal file
25
dom/base/test/file_pluginAudioNonAutoStart.html
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
<!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.wrap(window).top
|
||||
.QueryInterface(Ci.nsIInterfaceRequestor)
|
||||
.getInterface(Ci.nsIDOMWindowUtils);
|
||||
utils.audioMuted = muted;
|
||||
}
|
||||
</script>
|
||||
Loading…
Add table
Add a link
Reference in a new issue