新增一个组件,以禁用B站直播的P2P(WebRTC)上传功能,防止巨额的后台上传流量 #5404
KDH-KDHKDH
started this conversation in
功能建议 / Ideas
Replies: 3 comments 1 reply
-
|
如果没有 WebRTC 的使用需求,建议直接全局关闭 WebRTC,WebRTC 不止会用于 P2P,还会导致 IP 泄露等其他问题。
如果需要使用用户脚本等来禁用 WebRTC,可以使用以下代码: try {
class _RTCPeerConnection {
addEventListener() { }
createDataChannel() { }
}
class _RTCDataChannel { }
Object.defineProperty(unsafeWindow, 'RTCPeerConnection', { value: _RTCPeerConnection, enumerable: false, writable: false });
Object.defineProperty(unsafeWindow, 'RTCDataChannel', { value: _RTCDataChannel, enumerable: false, writable: false });
Object.defineProperty(unsafeWindow, 'webkitRTCPeerConnection', { value: _RTCPeerConnection, enumerable: false, writable: false });
Object.defineProperty(unsafeWindow, 'webkitRTCDataChannel', { value: _RTCDataChannel, enumerable: false, writable: false });
} catch (e) { } |
Beta Was this translation helpful? Give feedback.
1 reply
-
Beta Was this translation helpful? Give feedback.
0 replies
-
|
知情权这一块,说不定它哪个又臭又长的用户协议里说了然后你“自愿”“同意”了🤣 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
问题描述: 我发现B站网页版直播目前会强制使用P2P(WebRTC)技术。这导致用户在观看直播时,会在自己毫不知情且无法关闭的情况下,被动地产生巨额的后台上传流量。
为何需要此功能: 以我个人为例(见下图),近一个月仅浏览器(chrome.exe)就产生了超过350GB的上传流量,经过排查确认是由观看B站直播导致。
这种做法在未明确告知用户、且未提供关闭选项的情况下,大量占用了用户的私有上行带宽资源,严重侵犯了用户的知情权和选择权。
功能建议: 希望 Bilibili-Evolved 能够添加一个组件,允许用户一键禁用B站直播的P2P上传功能。
Beta Was this translation helpful? Give feedback.
All reactions