Guest User

Untitled

a guest
Jun 15th, 2014
1,381
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Just Live 24</title>
  6. <link rel="stylesheet" type="text/css" href="template/css/bootstrap.css">
  7. <link rel="stylesheet" type="text/css" href="template/css/bootstrap.min.css">
  8. <link rel="stylesheet" type="text/css" href="template/css/tv-theme.css">
  9. </head>
  10. <body>
  11. <div class="navbar navbar-inverse navbar-fixed-top">
  12. <div class="container">
  13. <div class="container-fluid">
  14. <a class="navbar-brand" href="http://windchimesys.com">JustLive24</a>
  15.  
  16. <div class="broadcast">
  17. <button class="btn btn-success"><i class="icon-bullhorn"></i>Start Broadcasting</button>
  18. </div>
  19. </div>
  20. </div>
  21. </div>
  22. <div class="container-fluid">
  23. <script src="stream/jwplayer.js"></script>
  24. <div id="mediaplayer">This div will be replaced by the JW Player</div>
  25. <script>
  26. function getQueryVariable(variable) {
  27. var query = window.location.search.substring(1);
  28. var vars = query.split("&");
  29. for (var i=0;i<vars.length;i++) {
  30. var pair = vars[i].split("=");
  31. if (pair[0] == variable) {
  32. return pair[1];
  33. }
  34. }
  35. }
  36.  
  37. $(function(){
  38.  
  39. var chanel = getQueryVariable("chanel");
  40. var host= ("rtmp://216.245.200.114/Live/");
  41. var stream=host+chanel;
  42.  
  43.  
  44. jwplayer('mediaplayer').setup({
  45. width: "600",
  46. height: "500",
  47. primary: "flash",
  48. autostart: "true",
  49. repeat: 'always',
  50. sources:[
  51. { file: stream }
  52. ]
  53. });
  54.  
  55. });
  56. </script>
  57.  
  58. </div>
  59. </body>
  60. </html>
Advertisement
Add Comment
Please, Sign In to add comment