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

asked a year ago312 views
2 Answers
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

answered a year ago
0

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

AWS
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions