Skip to content

Playback of the audioworklets version doesn't work in Safari 14.1 #646

@Reiji777

Description

@Reiji777

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/

  1. Open the link in Safari on iPhone or Mac
  2. 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

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions