player.js 950 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. buffer : 5,
  12. videourl: url,
  13. skin: "vodWhite",
  14. title: title ? title : '监控',
  15. timedisplay : 'disable',
  16. claritybutton : 'disable',
  17. poster : 'http://www.xinnongbaohe.com/assets/play.png',
  18. lang: 'zh_CN'
  19. }, "player");
  20. setTimeout(function()
  21. {
  22. $("#playerShow").show();
  23. }, 1);
  24. }
  25. function show(html)
  26. {
  27. $("#playerShow").css('margin-bottom', '350px').html(html).show();
  28. }
  29. if(location.href.indexOf('test') != -1)
  30. {
  31. $("#playerShow").show();
  32. }