amirchev / OBS-OpenLP-Lyrics-Interface

This is a custom stage for OpenLP. It can be connected to OBS as a custom browser dock and browser source, allowing you to display lyrics that appear on your slides in OBS.
Apache License 2.0
19 stars 10 forks source link

BroadcastChannel not working #23

Open cimtico opened 2 years ago

cimtico commented 2 years ago

Hi, I'm trying to run this project, but it seems event's don't get emitted by BroadcastChannel. I'm either missing enabling something so that BroadcastChannel works, or this API seems to be deprecated/broken?

Is there a way to get this to work without the BroadcastChannel API?

amirchev commented 2 years ago

Hi there, I understand the broadcast channel API will be phased out in newer versions of open LP. Try downloading an older version of open LP. I do believe 2.4.6 is the latest version that is supported. Let me know how that goes.

cimtico commented 2 years ago

Hi, thanks for your quick response. I'm actually running openlp 2.4.6 and it doesn't seem to work. I also tried the code on the browser and it doesn't seem to work there either, which is what makes me think the api is deprecated. Since this is JS code, I believe the problem might be tied to the browser support running the code.

amirchev commented 2 years ago

https://developer.mozilla.org/en-US/docs/Web/API/Broadcast_Channel_API According to this, it seems like Chrome and Chrome embedded both support broadcast channel api. We're using this tool at our church services and it seems to be working fine as of last sunday. Do you have the browser dock setup in OBS as well? It's necessary for the browser source part to function.

amirchev commented 2 years ago

In the README, under the heading "Setting up OBS", look at step 3 for the browser dock. It must always be visible, otherwise the browser source will not receive any updates from OpenLP.