index.html 862 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>h.264 To fmp4</title>
  5. </head>
  6. <body>
  7. <h2>h.264 To fmp4</h2>
  8. <script type="text/javascript" src="wfs.js" ></script>
  9. <div class="wfsjs">
  10. <video id="video1" width="640" height="480" controls></video>
  11. <div class="ratio"></div>
  12. </div>
  13. <div class="wfsjs2">
  14. <video id="video2" width="640" height="480" controls></video>
  15. <div class="ratio2"></div>
  16. </div>
  17. <script>
  18. window.onload = function () {
  19. if (Wfs.isSupported()) {
  20. var video1 = document.getElementById("video1"),
  21. wfs = new Wfs();
  22. wfs.attachMedia(video1,'ch1');
  23. var video2 = document.getElementById("video2"),
  24. wfs2 = new Wfs();
  25. wfs2.attachMedia(video2,'ch2');
  26. }
  27. };
  28. </script>
  29. </body>
  30. </html>