Advertisement
Guest User

Untitled

a guest
Sep 24th, 2013
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 3.23 KB | None | 0 0
  1. <a href="13800503074ba43.flv" style="display:block;width:100%;height:545px;" id="the_Video_Player">
  2. <object id="the_Video_Player_api" name="the_Video_Player_api" data="https://movtex.com/player/pak_player2/flowplayer.commercial-3.2.16.swf"
  3. type="application/x-shockwave-flash" height="100%" width="100%"><param name="allowfullscreen" value="true">
  4. <param name="allowscriptaccess" value="always"><param name="quality" value="high"><param name="bgcolor" value="#000000">
  5. <param value="config={"key":"#$8e3e1f0e3edf5ddf3c6","clip":{"provider":"rtmp","connectionProvider":"secure","url":"13800503074ba43.flv"},
  6. "plugins":{"controls":{"stop":"true"},"rtmp":{"url":"https://movtex.com/player/pak_player2/flowplayer.rtmp-3.2.12.swf",
  7. "netConnectionUrl":"rtmpe://5.9.30.50:1935/vod"},"secure":{"url":"https://movtex.com/player/pak_player2/flowplayer.securestreaming-3.2.8.swf",
  8. "token":"#kuca#voli@macu159#753"}},"canvas":{"backgroundGradient":"none","backgroundColor":"#000000"},"playerId":"the_Video_Player","playlist":
  9. [{"provider":"rtmp","connectionProvider":"secure","url":"13800503074ba43.flv"}]}" name="flashvars">
  10. </object>
  11. </a>
  12.  
  13. <!-- info box
  14. <div class="info box" id="infoss">
  15.     Resolved URL shown here
  16. </div> -->
  17.  
  18. <script language="JavaScript">
  19. var pakplayer_path = 'https://movtex.com/player/pak_player2';
  20. var player_logo = 'https://movtex.com/images/plaery-logo.png';
  21. var hq_video_file = 'http://5.9.30.50/stream/13800503074ba43-hd.mp4';
  22. var normal_video_file = 'http://5.9.30.50/stream/13800503074ba43.flv';
  23. var ytcode = '';
  24. var pre_item = "";
  25. var next_item = "";
  26.  
  27.  
  28. //Now lets write an HQ video function that swaps the original video with hq
  29. var video_quality = 'normal';
  30. function toggleQuality(obj)
  31. {
  32.    
  33.         if(video_quality=='normal')
  34.         {
  35.             video_quality = 'hq';
  36.             flowplayer(obj).stop();
  37.             flowplayer(obj).setClip({url:hq_video_file});
  38.             flowplayer(obj).play();
  39.         }
  40.         else
  41.         {
  42.             video_quality = 'normal';
  43.             flowplayer(obj).stop();
  44.             flowplayer(obj).setClip({url:normal_video_file});
  45.             flowplayer(obj).play();
  46.         }
  47. }
  48.  
  49. function pakplayer_hq()
  50. {
  51.     toggleQuality('the_Video_Player');
  52. }
  53. has_hq_function = true;
  54. hq_function = pakplayer_hq;
  55.  
  56.  
  57.  
  58. var menu = new Array("menu","embed/share","settings/playlist","comments");
  59. flowplayer("the_Video_Player", "https://movtex.com/player/pak_player2/flowplayer.commercial-3.2.16.swf", {
  60.         key:'#$8e3e1f0e3edf5ddf3c6',
  61.     clip: {
  62.         // use RTMP streaming
  63.         provider: 'rtmp',
  64.        
  65.         //url: '1379877378eca43.flv',
  66.         // with a secured connection
  67.         connectionProvider: 'secure'
  68.     },
  69.  
  70.     plugins: {
  71.         controls: {
  72.             stop: 'true'
  73.            
  74.         },
  75.        
  76.        
  77.        
  78.         rtmp: {
  79.             url: pakplayer_path+'/flowplayer.rtmp-3.2.12.swf',
  80.  
  81.             // The net connection URL with HDDN looks like this
  82.             netConnectionUrl: 'rtmpe://5.9.30.50:1935/vod'
  83.         },
  84.  
  85.         secure: {
  86.             // path to latest version
  87.             url: pakplayer_path+'/flowplayer.securestreaming-3.2.8.swf',
  88.  
  89.             // URL used to fetch a timestamp from the server
  90.            
  91.  
  92.             // identical to lighttpd.conf / secdownload.secret
  93.             token: '#kuca#voli@macu159#753'
  94.            
  95.            
  96.         }
  97.        
  98.        
  99.        
  100.        
  101.                
  102.  
  103.     },
  104. canvas: {
  105.     backgroundGradient: "none",
  106.     backgroundColor: "#000000"
  107.   }
  108.  
  109.    
  110. });
  111. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement