player.js 834 B

12345678910111213141516171819202122232425262728293031323334
  1. function play(title,url, state)
  2. {
  3. if(state == 1)
  4. {
  5. //$("#playerShow").append('<div id="download" style="display:;"><a href="http://www.xinnongbaohe.com/assets/pc/lib/video/WebComponents.exe" target="_blank" title="下载并安装播放控件后,将可以对摄像头进行控制">点此下载播放控件</a></div>');
  6. }
  7. SewisePlayer.setup({
  8. server: "vod",
  9. type: "m3u8",
  10. autostart: "true",
  11. starttime:0,
  12. buffer : 5,
  13. videourl: url,
  14. skin: "vodFlowPlayer",
  15. title: title ? title : '监控',
  16. claritybutton : 'disable',
  17. lang: 'zh_CN'
  18. }, "player");
  19. $("#playerShow").show();
  20. }
  21. function show(html)
  22. {
  23. $("#playerShow").css('margin-bottom', '350px').html(html).show();
  24. }
  25. if(location.href.indexOf('test') != -1)
  26. {
  27. $("#playerShow").show();
  28. }