Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Property 'localParticipant' is private and only accessible within class 'Stage'.ts #1

Open
mattvick opened this issue Feb 19, 2024 · 0 comments

Comments

@mattvick
Copy link

mattvick commented Feb 19, 2024

Many thanks for this helpful and clearly written demo repo! 💯🥇

When using Typescript I'm seeing the following error:

Property 'localParticipant' is private and only accessible within class 'Stage'.ts(2341)

localParticipant, which is a private member of Stage, is being accessed in hello-world/client/src/app/utils/mediaDevices.js on line 52.

const { videoStream } = stageRef.current.localParticipant;

src/stage/v2/stage.d.ts

/**
 * A class impementing the Stages SDK
 */
export declare class Stage extends TypedEmitter<StageEventMap> {
    // ...
    private localParticipant?;
    // ...
}

Is there a planned change to the amazon-ivs-web-broadcast API, or a suggested workaround?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant