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

已提问 1 年前323 查看次数
2 回答
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

已回答 1 年前
0

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

AWS
已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则

相关内容