| | |
| | | >更新画质</a-button |
| | | > |
| | | <a-button v-if="!liveState || !isDockLive" class="ml20" type="primary" large @click="onRefresh" |
| | | >刷新实时容量</a-button |
| | | >刷新</a-button |
| | | > |
| | | </div> |
| | | </div> |
| | |
| | | const clarityList: SelectOption[] = [ |
| | | { |
| | | value: 0, |
| | | label: 'Adaptive' |
| | | label: '自适应' |
| | | }, |
| | | { |
| | | value: 1, |
| | | label: 'Smooth' |
| | | label: '正常' |
| | | }, |
| | | { |
| | | value: 2, |
| | | label: 'Standard' |
| | | label: '标准' |
| | | }, |
| | | { |
| | | value: 3, |
| | | label: 'HD' |
| | | label: '高清' |
| | | }, |
| | | { |
| | | value: 4, |
| | | label: 'Super Clear' |
| | | label: '超清' |
| | | } |
| | | ] |
| | | |
| | |
| | | |
| | | const onUpdateQuality = () => { |
| | | if (!liveState.value) { |
| | | message.info('Please turn on the livestream first.') |
| | | message.info('请先打开直播') |
| | | return |
| | | } |
| | | setLivestreamQuality({ |
| | |
| | | video_quality: claritySelected.value |
| | | }).then(res => { |
| | | if (res.code === 0) { |
| | | message.success('Set the clarity to ' + clarityList[claritySelected.value].label) |
| | | message.success('将清晰度设置为 ' + clarityList[claritySelected.value].label) |
| | | } |
| | | }) |
| | | } |
| | |
| | | } |
| | | const onSwitch = () => { |
| | | if (lensSelected.value === undefined || lensSelected.value === nonSwitchable) { |
| | | message.info('The ' + nonSwitchable + ' lens cannot be switched, please select the lens to be switched.', 8) |
| | | message.info('当前 ' + nonSwitchable + ' 镜头无法切换,请选择要切换的镜头', 8) |
| | | return |
| | | } |
| | | changeLivestreamLens({ |
| | |
| | | video_type: lensSelected.value |
| | | }).then(res => { |
| | | if (res.code === 0) { |
| | | message.success('Switching live camera successfully.') |
| | | message.success('切换实时摄像机成功') |
| | | } |
| | | }) |
| | | } |