4***@qq.com
4***@qq.com
  • 发布:2019-12-14 15:22
  • 更新:2020-07-22 14:15
  • 阅读:2000

plus.video.createLivePusher 层叠问题

分类:uni-app

以下代码APP可以正常直播,要求'标题'是浮动在视频上的,但是APP端看不到 “标题”,要如何处理呢?

<template>  
    <view class="live">  
        <!--  #ifdef  MP-WEIXIN -->  
        <view id='video-box' class="live">    
            <live-pusher class="live" id="pusher" whiteness=9 beauty=9 mode="RTC" :url="url"  autopush='true'></live-pusher>  
        </view>  
        <!--  #endif -->  
        <view-cover @tap="clickRequest" class="chat" style="position: absolute;z-index: 999;width: 100%;height: 100px;bottom:0px; color: #ffffff;background:#000000;">  
        标题  
        </view-cover>  
    </view>  
</template>
            //#ifdef APP-PLUS  
            onPush(url){  
                const currentWebview = this.$mp.page.$getAppWebview()    
                var pusher = plus.video.createLivePusher("livepusher", {      
                url:url,  
                top:'0px',  
                left:'0px',  
                width: '100%',  
                height: '100%',  
                position: 'absolute',  
                //beauty:1,  
                //whiteness:1  
                });   
                currentWebview.append(pusher);  
                pusher.start();  
            },  
            //#endif

其他省略

2019-12-14 15:22 负责人:无 分享
已邀请:
2***@qq.com

2***@qq.com

我也遇到这个问题,请问解决了吗

  • 6***@163.com

    请问你现在解决了吗?

    2020-06-04 11:40

百倍

百倍

解决了吗

  • 6***@163.com

    请问你现在解决了吗?

    2020-06-04 11:40

2***@qq.com

2***@qq.com

我是用nvue文件解决的,没有用这个

Aa董小礼

Aa董小礼

请问楼主解决了吗

该问题目前已经被锁定, 无法添加新回复