Commit bdcd006a7ee9fd4637c7ad467df7dabee1853101
1 parent
a5d9afeb
fix(jessibuca): 修复 jessibuca 组件截图报错的问题
Showing
1 changed file
with
6 additions
and
1 deletions
web_src/src/components/common/jessibuca.vue
| ... | ... | @@ -12,7 +12,7 @@ |
| 12 | 12 | <span class="jessibuca-btn">{{ kBps }} kb/s</span> |
| 13 | 13 | <!-- <i class="iconfont icon-file-record1 jessibuca-btn"></i>--> |
| 14 | 14 | <!-- <i class="iconfont icon-xiangqing2 jessibuca-btn" ></i>--> |
| 15 | - <i class="iconfont icon-camera1196054easyiconnet jessibuca-btn" @click="jessibuca.screenshot('截图','png',0.5)" | |
| 15 | + <i class="iconfont icon-camera1196054easyiconnet jessibuca-btn" @click="screenshot" | |
| 16 | 16 | style="font-size: 1rem !important"></i> |
| 17 | 17 | <i class="iconfont icon-shuaxin11 jessibuca-btn" @click="playBtnClick"></i> |
| 18 | 18 | <i v-if="!fullscreen" class="iconfont icon-weibiaoti10 jessibuca-btn" @click="fullscreenSwich"></i> |
| ... | ... | @@ -243,6 +243,11 @@ export default { |
| 243 | 243 | this.err = ""; |
| 244 | 244 | this.performance = ""; |
| 245 | 245 | }, |
| 246 | + screenshot: function () { | |
| 247 | + if (jessibucaPlayer[this._uid]) { | |
| 248 | + jessibucaPlayer[this._uid].screenshot(); | |
| 249 | + } | |
| 250 | + }, | |
| 246 | 251 | mute: function () { |
| 247 | 252 | if (jessibucaPlayer[this._uid]) { |
| 248 | 253 | jessibucaPlayer[this._uid].mute(); | ... | ... |