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

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董小礼

请问楼主解决了吗

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

  • 标题 / 粗斜体
  • 代码片段
  • 超链接 / 图片 / 视频
  • 列表 / 引用

文章内容较多时,可以用标题分段 :

## 大标题 
### 小标题

斜体 / 粗体 :

**粗体** 
*斜体*
***粗斜体***

代码片段 :

``` javascript
代码片段
```

超链接 :

[链接文字](链接地址) 例: [百度](http://www.baidu.com)

图片 :

![图片说明](图片地址) 例: ![百度logo](http://www.baidu.com/img/bdlogo.gif)

视频 :

!![视频说明](视频地址) 例: !![优酷视频](http://youku.com)

有序列表 :

1. 123
2. 123
3. 123

无序列表 :

- 123
- 123
- 123

引用 : ( 双回车后结束引用 )

> 引用内容
引用内容
引用内容