A background graphic for videos to detect broken connections
这个提交包含在:
父节点
b82e8f651b
当前提交
b74edd1512
二进制文件未显示。
之后 宽度: | 高度: | 大小: 4.1 KiB |
|
@ -1023,6 +1023,13 @@ export default {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// DEBUGGING: fake open a broken video to see the error graphic
|
||||||
|
if (this.message.toLowerCase().indexOf("/debug-broken-video") === 0) {
|
||||||
|
this.WebRTC.streams["#broken"] = null;
|
||||||
|
this.message = "";
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// DEBUGGING: print WebRTC statistics
|
// DEBUGGING: print WebRTC statistics
|
||||||
if (this.message.toLowerCase().indexOf("/debug-webrtc") === 0) {
|
if (this.message.toLowerCase().indexOf("/debug-webrtc") === 0) {
|
||||||
let lines = [
|
let lines = [
|
||||||
|
|
|
@ -156,4 +156,11 @@ export default {
|
||||||
top: 30px;
|
top: 30px;
|
||||||
bottom: 44px;
|
bottom: 44px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* A background image behind video elements in case they don't load properly */
|
||||||
|
video {
|
||||||
|
background-image: url(/static/img/connection-error.png);
|
||||||
|
background-position: center center;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
正在加载...
在新工单中引用
屏蔽一个用户