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

Issue when changing the source while casting #41

Open
bertrandgorge opened this issue Nov 13, 2023 · 1 comment
Open

Issue when changing the source while casting #41

bertrandgorge opened this issue Nov 13, 2023 · 1 comment

Comments

@bertrandgorge
Copy link

bertrandgorge commented Nov 13, 2023

Hello, I'm not sure if it's a bug, or me not using the code the right way: I'm using the lib to cast a radio with multiple variations, and when I switch from one radio from another, I just use the cast function again. What I find is that the stream doesn't always start right away, I need to pause and play again in order for the stream to actually play... You can see by yourself here: https://bertrand.famille-gorge.org/fip/

I've tried calling play after cast, but it didn't really help... Any idea ?

@Fenny
Copy link
Member

Fenny commented Feb 2, 2024

Did you try to play around with the joinpolicy?

// Custom receiver or joinpolicy
const cjs = new Castjs({
    receiver  : 'CC1AD845',              // default
    joinpolicy: 'tab_and_origin_scoped', // default
//  joinpolicy: 'custom_controller_scoped',
//  joinpolicy: 'origin_scoped',
//  joinpolicy: 'page_scoped',
});

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

2 participants