forked from mirrors/gecko-dev
Add new tests and move some share codes to head.js. MozReview-Commit-ID: GcCio6JupZu --HG-- extra : rebase_source : a9324aaebd89412d77bed19b0554e6cf2959b6e2
19 lines
438 B
HTML
19 lines
438 B
HTML
<!DOCTYPE html>
|
|
<embed type="application/x-test" width="200" height="200"></embed>
|
|
<script>
|
|
var plugin = document.querySelector("embed");
|
|
onload = function() {
|
|
plugin.startAudioPlayback();
|
|
};
|
|
|
|
function start_plugin() {
|
|
plugin.startAudioPlayback();
|
|
}
|
|
|
|
function stop_plugin() {
|
|
plugin.stopAudioPlayback();
|
|
}
|
|
|
|
</script>
|
|
<button id="start" onclick="start_plugin()">Start</button>
|
|
<button id="stop" onclick="stop_plugin()">Stop</button>
|