Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>YouTube Volume Test</title>
- <script type="text/javascript"
- src="https://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js">
- </script>
- <script type="text/javascript">
- // Load YouTube video when the document is ready.
- window.onload = function() {
- var params = {
- allowScriptAccess: "always"
- };
- var attrs = {
- id: "player"
- };
- swfobject.embedSWF(
- "http://www.youtube.com/e/dQw4w9WgXcQ?enablejsapi=1&autoplay=1",
- "video", "640", "510", "8", null, null, params, attrs);
- };
- function onYouTubePlayerReady() {
- var player = document.getElementById("player");
- // Set the volume between 0 and 100.
- player.setVolume(10);
- }
- </script>
- </head>
- <body>
- <div id="video"></div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement