请选择 进入手机版 | 继续访问电脑版
帖子
帖子
用户
博客
课程
显示全部楼层
12
帖子
0
勋章
53
Y币

[插件使用] 关于tencentPlayer 的问题

[复制链接]
发表于 2016-9-20 21:24:56
场景:用tencentPlayer在华为mate7 安卓下播放直播流。          同样的代码,在苹果手机上能够实现直播流的播放,但在安卓手机上无法播放,rmtp m3u8 flv 都不行。
请官

  1. <script type="text/javascript">
  2. function tzhibo(){
  3.   var tencentPlayer = api.require('tencentPlayer');
  4. tencentPlayer.open({
  5.     rect: {
  6.         x: 0,
  7.         y: 0,
  8.         w: 400,
  9.         h: 300
  10.     },
  11.     fixedOn: api.frameName,
  12.     fixed: true
  13. }, function(ret, err) {
  14.     if (ret.status) {
  15.       //  alert(JSON.stringify(ret));
  16.     } else {
  17.        // alert(JSON.stringify(err));
  18.     }
  19. });


  20. tencentPlayer.play({
  21.    //path: 'http://vod.xxxxxx.coxxxxxxxxxxxxxxxsd-mp4-sd/c603edb9331c4c32b99c730e323032fd/MVI_0664.mp4'
  22.    path: 'http:/xxxxxxo.flv'
  23.    
  24.    
  25. });

  26. }


  27. </script>
复制代码

方借助解决。 QQ截图20160920212219.jpg

380
帖子
4
勋章
6
Y币
我们验证一下
您需要登录后才可以回帖 登录

本版积分规则