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

질문됨 일 년 전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

답변함 일 년 전
0

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

AWS
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠