A background graphic for videos to detect broken connections

这个提交包含在:
Noah 2024-05-15 19:42:51 -07:00
父节点 b82e8f651b
当前提交 b74edd1512
共有 3 个文件被更改,包括 14 次插入0 次删除

二进制文件未显示。

之后

宽度:  |  高度:  |  大小: 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>