IVS BroadcastClient SDK - Creating a client does not work in development instance, works fine locally

0

Trying to create a livestream player using IVS Broadcast SDK. I'm following the documentation found here. When running the application on my local instance, everything works fine and I'm able to host a live stream with no issues.

The problem occurs when this code is deployed to our development instance, where I'm running into the following error message: TypeError: Cannot read properties of undefined (reading 'bind') - when following the trail, it's pointing to line 160 (see screenshot below), which is the code below:

I'm using static values here to debug, but normally the values would be fetched from a GraphQL response.

let client = IVSBroadcastClient.create({
      streamConfig: {
        maxBitrate: 1500,
        maxFramerate: 30,
        maxResolution: { width: 852, height: 480 },
      },
      ingestEndpoint: "09e4d4713215.global-contribute.live-video.net",
    });

Here is a screenshot of the full error message: Enter image description here

2 Risposte
1

Hi there, by chance is your site leveraging create-react-app? If so we've discovered an issue where the default minification options result in malformed function names. We've got a fix on the roadmap but to unblock you more immediately, excluding the library from minification will work around the issue. For create-react-app specifically, enable profiling mode when doing a production build: npm run build -- --profile

con risposta un anno fa
0

Hi this issue is fixed in the latest version of the library (1.3.0 or greater).

AWS
con risposta un anno fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande