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

feat(react-native): add livestream player component #1373

Merged
merged 1 commit into from
May 27, 2024

Conversation

santhoshvai
Copy link
Member

No description provided.

if (!call) {
return;
}
call.join().catch((e) => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we have try catch instead of .then.catch?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

my opinion is that it doesnt matter here. Both are fine.

When we chain promises I would rather go for try/catch, for single promise, just having catch is fine in a useEffect scenario

console.error('Failed to join call', e);
});
return () => {
call.leave().catch((e) => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here

@santhoshvai santhoshvai merged commit a821e23 into main May 27, 2024
13 checks passed
@santhoshvai santhoshvai deleted the rn-livestream-player branch May 27, 2024 08:26
oliverlaz added a commit that referenced this pull request May 27, 2024
Adds the missing component export for the `LivestreamPlayer` component. #1373
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

Successfully merging this pull request may close these issues.

None yet

2 participants