Advertisement
Guest User

player

a guest
Jun 19th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
  5. <title></title>
  6. <script> var player;
  7. function init(){
  8. player = stbPlayerManager.list[0];
  9. gSTB.SetTopWin(0);
  10. player.play({uri: 'rtp://239.1.1.1:1234', solution: 'auto'});
  11. }
  12.  
  13. var stbEvent = {
  14. onEvent : function (event) {
  15. console.log(event);
  16. if (event == 7) {
  17. gSTB.Debug('frameRate '+player.videoInfo.frameRate);
  18. gSTB.Debug('bitRate '+player.videoInfo.bitRate);
  19. gSTB.Debug('width '+player.videoInfo.width);
  20. gSTB.Debug('height '+player.videoInfo.height);
  21. gSTB.Debug('hPAR '+player.videoInfo.hPAR);
  22. gSTB.Debug('hPAR '+player.videoInfo.vPAR);
  23. }
  24. },
  25. event : 0
  26. }
  27.  
  28. </script>
  29. </head>
  30. <body onload="init();">
  31. </body>
  32. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement