NotAllowedError when opening url to play song #4

Closed
opened 10 months ago by Hygna · 7 comments

Browser

  • Chromium Based
  • Firefox Based
  • Other
.

Firefox 102.0.1
Chromium 103.0.5060.114

Expected Behaviour

The song should start playing.

Actual Behaviour

A popup with an error is thrown.

Misc. ( optional )

image
image

## Browser - [x] Chromium Based - [x] Firefox Based - [ ] Other <!-- Name and Version -->. Firefox 102.0.1 Chromium 103.0.5060.114 ## Expected Behaviour <!-- TODO --> The song should start playing. ## Actual Behaviour <!-- TODO --> A popup with an error is thrown. ## Misc. ( optional ) <!-- Screen Shots / Console Logs / Network Requests / Anything else Relevent --> ![image](/attachments/405c21f9-5e11-4863-ba3a-8e1f96c88873) ![image](/attachments/b48b4de5-e786-499e-87d1-e1f9f7070a0d)
Poster

Sorry for all the opened issues recently. Here is an example url btw: https://hyperpipe.surge.sh/watch?v=Kx7B-XvmFtE

Sorry for all the opened issues recently. Here is an example url btw: https://hyperpipe.surge.sh/watch?v=Kx7B-XvmFtE
Owner
The error just means that autoplay of audio is disabled by the browser :) https://developer.mozilla.org/en-US/docs/Web/Media/Autoplay_guide#autoplay_availability https://developer.chrome.com/blog/autoplay/ https://webkit.org/blog/7734/auto-play-policy-changes-for-macos/
Owner

But point made,
I will make it more user friendly

But point made, I will make it more user friendly
Poster

Perhaps there can be a play button instead since most browsers disable autoplay with audio by default.

Perhaps there can be a play button instead since most browsers disable autoplay with audio by default.
Owner

Just click on the play/pause button on the bottom, it should start playing normally :)

The icon may not switch in some cases though

Just click on the play/pause button on the bottom, it should start playing normally :) The icon may not switch in some cases though
Poster

Idk if it is good ux to have that error popup though, I think it might just be better to not make it autoplay as most browsers block autoplay with audio by default.

Idk if it is good ux to have that error popup though, I think it might just be better to not make it autoplay as most browsers block autoplay with audio by default.
Owner

Ahh, okay I'll replace the alert with a console error.

Thank you for your input

Ahh, okay I'll replace the alert with a console error. Thank you for your input
snematoda closed this issue 10 months ago
Sign in to join this conversation.
No Milestone
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: Hyperpipe/Hyperpipe#4
Loading…
There is no content yet.