帖子
帖子
用户
博客
课程
显示全部楼层
7
帖子
0
勋章
3245
Y币

[BUG] alivcLivePusher v1.0.9鸿蒙系统开播闪退

[复制链接]
发表于 2023-3-8 09:30:58
  1. startPushL: function () {

  2.                           var _this = this

  3.                           api.showProgress({

  4.                               style: 'default',

  5.                               animationType: 'fade',

  6.                               title: '',

  7.                               text: '',

  8.                               modal: true

  9.                           });



  10.                           setTimeout(function () {

  11.                             alivcLivePusher.startPush({

  12.                               url:pushRUL

  13.                             },function(ret){

  14.                                 if(ret.status) {

  15.                                   //发消息改图标

  16.                                   api.execScript({

  17.                                       name: 'live_room_win',

  18.                                       frameName: 'live_room_frm',

  19.                                       script: 'vm.live_start();vm.start = !vm.start;'

  20.                                   });

  21.                                   var msg = '直播开启成功'

  22.                                   api.hideProgress();

  23.                                   api.toast({

  24.                                       msg: msg,

  25.                                       duration: 2000,

  26.                                       location: 'middle'

  27.                                   });

  28.                                 } else {

  29.                                   var setInt = setInterval(function () {

  30.                                     alivcLivePusher.restartPush(function (ret) {

  31.                                       if(ret.status) {

  32.                                         clearInterval(setInt)

  33.                                       }

  34.                                     })

  35.                                   },1000);

  36.                                   //var msg = '直播开启失败'

  37.                                 }



  38.                               //alert(JSON.stringify(ret));

  39.                             })

  40.                           }, 500)



  41.                         },
复制代码
上面 的代码就是立即开播的代码,执行会闪退

您好,闪退日志能拿到不
您需要登录后才可以回帖 登录

本版积分规则