fix: fix WebRTC (camera-streamer) port with external instance (#1586)
This commit is contained in:
1 parent
cd1b9b85bd
commit
a3e74aa57a
1 file changed
-1
@@ -39,7 +39,6 @@ export default class WebrtcCameraStreamer extends Mixins(BaseMixin, WebcamMixin)
|
||||
get url() {
|
||||
const baseUrl = this.camSettings.stream_url
|
||||
let url = new URL(baseUrl, this.printerUrl === null ? this.hostUrl.toString() : this.printerUrl)
|
||||
url.port = this.hostPort.toString()
|
||||
|
||||
if (baseUrl.startsWith('http') || baseUrl.startsWith('://')) url = new URL(baseUrl)
|
||||
|
||||
|
||||
Reference in new issue
Block a user