Skip to content

Commit

Permalink
添加是否在单人音视频通话页面显示音视频 SDK 相关提示配置
Browse files Browse the repository at this point in the history
  • Loading branch information
siqiii committed Dec 17, 2024
1 parent ae34332 commit a395bd3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ export default class Config {
// 是否支持水印
static ENABLE_WATER_MARK = true

// 单人音视频通话页面是否显示音视频 SDK 相关提示
static SHOW_VOIP_TIP = true

static getWFCPlatform() {
if (isElectron()) {
if (window.process && window.process.platform === 'darwin') {
Expand Down
6 changes: 3 additions & 3 deletions src/ui/voip/Single.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
<div class="flex-column flex-align-center flex-justify-center" style="background: #292929">
<h1 style="display: none">Voip-single,运行在新的window,和主窗口数据是隔离的!!</h1>

<p class="webrtc-tip" v-if="showVoipTip">
<div class="webrtc-tip" v-if="showVoipTip">
<p>{{ supportConference ? '当前使用:多人版音视频' : '当前使用:高级版音视频' }}</p>
<p>多人版音视频 和 高级版音视频不互通,切换方法请参考: wfc/av/internal/README.MD</p>
<p>{{ voipTip }}</p>
</p>
</div>
<div v-if="session" class="container">
<section class="full-height full-width">
<!--audio-->
Expand Down Expand Up @@ -149,7 +149,7 @@ export default {
audioInputDeviceIndex: 0,
autoPlayInterval: 0,
ringAudio: null,
showVoipTip: true,
showVoipTip: Config.SHOW_VOIP_TIP,
voipTip: '',
supportConference: avenginekit.startConference !== undefined,
}
Expand Down

0 comments on commit a395bd3

Please sign in to comment.