simonrepp/faircamp
24
334
Fork
You've already forked faircamp
46

Work around browsers with missing Media Session API support #173

Merged
simonrepp merged 1 commit from :main into main 2025年04月15日 12:37:07 +02:00
Contributor
Copy link

Android's WebView does not support the Media Session API (Browser compatibility on MDN).

Thus, in WebView-based browsers, the JavaScript files would previously crash and halt execution, breaking waveform generation, etc. I just added a check to see if the API is available, so that the script will continue running if it isn't.

Android's WebView does not support the Media Session API ([Browser compatibility on MDN](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/mediaSession#browser_compatibility)). Thus, in WebView-based browsers, the JavaScript files would previously crash and halt execution, breaking waveform generation, etc. I just added a check to see if the API is available, so that the script will continue running if it isn't.

Awesome, thanks a lot! I think this might also be the culprit of a bug that was reported (but not yet further diagnosed) here: https://social.tchncs.de/@torstentorsten/114278949929655769 \o/ (let's see!)

Awesome, thanks a lot! I think this might also be the culprit of a bug that was reported (but not yet further diagnosed) here: https://social.tchncs.de/@torstentorsten/114278949929655769 \o/ (let's see!)
Sign in to join this conversation.
No reviewers
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
simonrepp/faircamp!173
Reference in a new issue
simonrepp/faircamp
No description provided.
Delete branch ":main"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?