Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title>Page Title</title>
- </head>
- <body>
- <div onclick="playPause()">
- <video controls style="width:100%" id="cc1">
- <source src="" type="video/mp4">
- http://www.w3schools.com/html/tryit.asp?filename=tryhtml_intro
- </video>
- </div>
- <h1>Heading</h1>
- <p>https://www.youtube.com/feed/trending</p>
- <input type="text" id="cc2" value="1.5">
- <button onclick="myFunction()">Click me</button>
- <button onclick="myFunction(1)"><--</button>
- <br>
- <script>
- function myFunction(cc3) {
- var cc2v = cc3?1:document.getElementById("cc2").value;
- document.getElementById("cc1").playbackRate = cc2v;
- }
- function playPause() {
- var pp2s = document.getElementById("cc1");
- pp2s.paused ? pp2s.play() : pp2s.pause();
- }
- top.iframeResult.setAttribute('allowfullscreen', '');
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement