We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8cfb78 commit 459b2c8Copy full SHA for 459b2c8
api/src/stream/internal-hls.js
@@ -16,15 +16,17 @@ function transformObject(streamInfo, hlsObject) {
16
17
let fullUrl;
18
if (getURL(hlsObject.uri)) {
19
- fullUrl = hlsObject.uri;
+ fullUrl = new URL(hlsObject.uri);
20
} else {
21
fullUrl = new URL(hlsObject.uri, streamInfo.url);
22
}
23
24
- hlsObject.uri = createInternalStream(fullUrl.toString(), streamInfo);
+ if (fullUrl.hostname !== '127.0.0.1') {
25
+ hlsObject.uri = createInternalStream(fullUrl.toString(), streamInfo);
26
- if (hlsObject.map) {
27
- hlsObject.map = transformObject(streamInfo, hlsObject.map);
+ if (hlsObject.map) {
28
+ hlsObject.map = transformObject(streamInfo, hlsObject.map);
29
+ }
30
31
32
return hlsObject;
0 commit comments