Advertisement
NutShotzFTW

yt volume

Jan 20th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. <html>
  2. <head>
  3. <title>YouTube Volume Test</title>
  4. <script type="text/javascript"
  5. src="https://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js">
  6. </script>
  7. <script type="text/javascript">
  8.  
  9. // Load YouTube video when the document is ready.
  10. window.onload = function() {
  11. var params = {
  12. allowScriptAccess: "always"
  13. };
  14. var attrs = {
  15. id: "player"
  16. };
  17.  
  18. swfobject.embedSWF(
  19. "http://www.youtube.com/e/dQw4w9WgXcQ?enablejsapi=1&autoplay=1",
  20. "video", "640", "510", "8", null, null, params, attrs);
  21. };
  22.  
  23. function onYouTubePlayerReady() {
  24. var player = document.getElementById("player");
  25.  
  26. // Set the volume between 0 and 100.
  27. player.setVolume(10);
  28. }
  29.  
  30. </script>
  31. </head>
  32. <body>
  33. <div id="video"></div>
  34. </body>
  35. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement