-
Notifications
You must be signed in to change notification settings - Fork 229
Closed
Labels
area-playerRelated to the audio playback engine.Related to the audio playback engine.platform-javascriptRelated to the JavaScript version of alphaTabRelated to the JavaScript version of alphaTabstate-needs-investigation
Description
Expected Results
Playback works for all devices
Observed Results
As I am testing the latest audioworklets implementation, the playback function is not working in Safari 14.1 on iPhone or Mac.
When clicking on the play button, the playback won't occur; instead it returns an error:
unhandled Promise Rejection: InvalidStateError: No ScriptProcessor was registered with this name
The error is pointing to alphaTab.js:26188, which is the following code in the AlphaSynthAudioWorkletOutput class
this._worklet = new AudioWorkletNode(ctx, 'alphatab');
On other devices I have tested so far (Android phone, Safari Preview 15.0 / Chrome on Mac), the playback works with no problem
Steps to Reproduce
Link to jsFiddle, CodePen, Project etc.: https://jsbin.com/budozuf/
- Open the link in Safari on iPhone or Mac
- Click on the play button
Further details
Your environment
Version
- 1.0
- 1.1
- 1.2
- 1.3-alpha.127
Flavor
- JavaScript
- .net
System
iPhone X (iOS 14.6); Safari 14.1.1
Macbook (Big Sur 11.4); Safari 14.1.1
Metadata
Metadata
Assignees
Labels
area-playerRelated to the audio playback engine.Related to the audio playback engine.platform-javascriptRelated to the JavaScript version of alphaTabRelated to the JavaScript version of alphaTabstate-needs-investigation
Type
Projects
Status
Done