mirror of
https://github.com/vega-org/vega-providers.git
synced 2026-04-17 15:41:45 +00:00
fix: update timeout values in getWebstreamerStream and getRiveStream functions; bump version to 1.6 in manifest
This commit is contained in:
2
dist/autoEmbed/stream.js
vendored
2
dist/autoEmbed/stream.js
vendored
File diff suppressed because one or more lines are too long
@@ -10,7 +10,7 @@
|
||||
{
|
||||
"display_name": "MultiStream",
|
||||
"value": "autoEmbed",
|
||||
"version": "1.5",
|
||||
"version": "1.6",
|
||||
"icon": "",
|
||||
"type": "global",
|
||||
"disabled": false
|
||||
|
||||
@@ -67,7 +67,7 @@ export async function getWebstreamerStream(
|
||||
console.log("Webstreamer URL: ", encodeURI(url));
|
||||
try {
|
||||
const res = await providerContext.axios.get(encodeURI(url), {
|
||||
timeout: 5000,
|
||||
timeout: 30000,
|
||||
headers: providerContext.commonHeaders,
|
||||
});
|
||||
res.data?.streams.forEach((source: any) => {
|
||||
@@ -132,7 +132,7 @@ export async function getRiveStream(
|
||||
console.log("Rive: " + url + server);
|
||||
try {
|
||||
const res = await providerContext.axios.get(url + server, {
|
||||
timeout: 4000,
|
||||
timeout: 8000,
|
||||
});
|
||||
const subtitles: TextTracks = [];
|
||||
// if (res.data?.data?.captions) {
|
||||
|
||||
Reference in New Issue
Block a user