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

gefragt vor einem Jahr323 Aufrufe
2 Antworten
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

beantwortet vor einem Jahr
0

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

AWS
beantwortet vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen