提交代码

dev_xd
姜玉琦 2025-12-26 09:35:38 +08:00
parent 7660cc28cd
commit d61809bddc
3 changed files with 6 additions and 4 deletions

View File

@ -16,7 +16,7 @@
<script <script
type="text/javascript" type="text/javascript"
src="https://api.map.baidu.com/api?type=webgl&v=1.0&ak=eseRcUMFiUlnWA6miQLejNpvS70H8SRN" src="https://api.map.baidu.com/api?type=webgl&v=1.0&ak=nDcjhjtaNwnVrKNIDbjibTm6i4u0k0fk"
></script> ></script>
<script src="/cdn/vue/dist/vue.js"></script> <script src="/cdn/vue/dist/vue.js"></script>
<script src="/cdn/element-ui/lib/index.js"></script> <script src="/cdn/element-ui/lib/index.js"></script>

View File

@ -14,6 +14,7 @@ Page({
ysToken: '', ysToken: '',
palyUrl: '', palyUrl: '',
channelNo: 0, channelNo: 0,
loginName: '',
}, },
/** /**
@ -31,7 +32,8 @@ Page({
let _url = "rtmp://open.ys7.com/"+_dat[0]+"/"+_cha+"/live"; let _url = "rtmp://open.ys7.com/"+_dat[0]+"/"+_cha+"/live";
this.setData({ this.setData({
palyUrl: _url, palyUrl: _url,
channelNo: _cha channelNo: _cha,
loginName: app.globalData.userData.userName,
}); });
}, },

View File

@ -19,10 +19,10 @@
id="ezplayer" id="ezplayer"
accessToken="{{ysToken}}" accessToken="{{ysToken}}"
url="{{palyUrl}}" url="{{palyUrl}}"
plugins="talk,voice,capture" plugins="talk,voice,capture,ptz"
width="360" width="360"
height="300" height="300"
watermark="shuiyin" watermark="{{loginName}}"
themeData="{'poster':'','controls':{fullScreenBtn:false,hdBtn:true}}" themeData="{'poster':'','controls':{fullScreenBtn:false,hdBtn:true}}"
channelNo="{{channelNo}}" channelNo="{{channelNo}}"
bind:handleError="handleError" bind:handleError="handleError"