mirror of
https://github.com/vega-org/vega-providers.git
synced 2026-04-17 23:51:44 +00:00
fix: update timeout values in getWebstreamerStream and getRiveStream functions; bump version to 1.6 in manifest
This commit is contained in:
@@ -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