Skip to content

SecurityError when requesting access to MIDI #195

Open
@ArTiSTiX

Description

@ArTiSTiX

I was working for the past few days on a Piano display (you can see it here: https://chord-display.rednet.io), using BrowserSource on OBS v21, using MIDI features of CEF.
Everything was working fine, but not anymore after update to OBS v24.
It is also working on v23 (made the downgrade).

Current Behavior

MIDI Access request rejects with following error:

SecurityError: an attempt was made to break through the security policy of the user agent

It was working fine, on a localhost version, a localfile, and on a deployed version of my tool with an HTTPS certificate.

Expected Behavior

It should allow using MIDI, and display notes played by user in OBS.

Steps to Reproduce

  1. Create a BrowserSource in OBS with url: https://chord-display.rednet.io
  2. (optional) Plug a MIDI device (piano), or install a Virtual MIDI device (OSX: MidiKeys is a good one for testing: http://www.manyetas.com/creed/midikeys.html)
  3. Play notes

Step 1 is currently breaking with error, since MIDI is initialized on load.

Additional information

OS: MacOS Mojave 10.14.6
OBS Studio version: v24.0.6
[obs-browser]: Version 2.7.16

Working OBS Studio versions: v21...v23 ([obs-browser]: Version 2.3.1)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions