|
[BUG]
alivcLivePusher v1.0.9鸿蒙系统开播闪退
[复制链接]
- startPushL: function () {
- var _this = this
- api.showProgress({
- style: 'default',
- animationType: 'fade',
- title: '',
- text: '',
- modal: true
- });
- setTimeout(function () {
- alivcLivePusher.startPush({
- url:pushRUL
- },function(ret){
- if(ret.status) {
- //发消息改图标
- api.execScript({
- name: 'live_room_win',
- frameName: 'live_room_frm',
- script: 'vm.live_start();vm.start = !vm.start;'
- });
- var msg = '直播开启成功'
- api.hideProgress();
- api.toast({
- msg: msg,
- duration: 2000,
- location: 'middle'
- });
- } else {
- var setInt = setInterval(function () {
- alivcLivePusher.restartPush(function (ret) {
- if(ret.status) {
- clearInterval(setInt)
- }
- })
- },1000);
- //var msg = '直播开启失败'
- }
- //alert(JSON.stringify(ret));
- })
- }, 500)
- },
复制代码 上面 的代码就是立即开播的代码,执行会闪退
|
|