Skip to content

Feature Request: Option to send/receive messages via javascript BroadcastChannel inside the OBS browser #1600

Description

@istvanmate

Background

I have several html sources and custom browser docks which communicate amongst themselves via BroadcastChannel messages. Does SceneSwitcher support this? If not, would be a nice addition.

Solution

ability to tap into javascript broadcast channels:

var bc = new BroadcastChannel('channel-name')

send messages with

bc.postMessage('message-to-send')

receive messages with

bc.onmessage = function(message){
  if(message == 'message-to-send') {
    ...
  }
}

Alternatives

No response

Anything else we should know?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions