Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception on sound in Firefox / Request permission for media #58

Closed
snicki13 opened this issue Sep 21, 2021 · 2 comments
Closed

Exception on sound in Firefox / Request permission for media #58

snicki13 opened this issue Sep 21, 2021 · 2 comments
Assignees
Labels
bug Something isn't working web-gui

Comments

@snicki13
Copy link
Member

snicki13 commented Sep 21, 2021

When you get an invitation, you get the following error message: Uncaught (in promise): NotSupportedError: The media resource indicated by the src attribute or assigned media provider object was not suitable.. This should not be displayed because the browser either does not support this function or the user has rejected the authorization (Thus this error is intentional). Maybe you could add a setting later to activate this function (ask for permission again).

Originally posted by @mxsph in #34 (review)

@snicki13 snicki13 self-assigned this Sep 21, 2021
@mxsph mxsph added the bug Something isn't working label Sep 22, 2021
@mxsph
Copy link
Member

mxsph commented Sep 22, 2021

I am not able to reproduce this - even after revoking browser permissions. Would you please describe your environment and other circumstances in #58?
Originally posted by @snicki13 in #34 (comment)

I get an error in Firefox when the permission is granted:

Uncaught (in promise): NotSupportedError: The media resource indicated by the src attribute or assigned media provider object was not suitable.

and when I do not allow it

Error: Uncaught (in promise): NotAllowedError: The play method is not allowed by the user agent or the platform in the current context, possibly because the user denied permission.

In Chrome (Chromium) there is a similar error.

I noticed that the request to get the audio file (/assets/classic_phone.mp3) fails (With a 401 Error) which probably leads to the error if the required permission is present. Is it possible that this request works for you because you tested it with the Angular dev server and not with the Docker build?

Why with not given permission you don't get an error I can't say. For me it occurs when I do activate Block media with audio (respectively Set Sound to Automatic in Chrome).

Environment

  • ManjaroLinux 21.1.3
  • Firefox 92.0 (64-Bit)
  • Chromium Version 93.0.4577.82 (Offizieller Build) Arch Linux (64-Bit)
  • Digital Classroom: Build & Run with Docker-Compose

mxsph added a commit that referenced this issue Oct 13, 2021
* Menubar styling

* Refactor: User -> UserCredentials; UserDisplay -> User.

These names better reflect the meaning of the objects.

Also: Backend implementation of AvatarURL.

* Avatar Upload #19

* Fixed typo

* Better error overlay.

* Logout styled

* Simplified full page components for error messages, etc.

* ktlint formatter

* Ticket-list reworked 30%

* add-ticket icon

* Tickets reworked

* UserIconService

* Credentials to user

* Fixed userAvatar in Tickets.

* Sidemenues

* Cleanup + BugFix: dead conferences

* Fix invitation accuracy.

* Better overlay error

* Login error handling.

* Fixed undefined behavior in AuthManager

* Choose conference to join.

* Conference visibility preparations.

* ktlint

* Update attendees from BBB server

* missing menu component...

* Merge backend code from ui-overhaul

* clean sender

* Small tweaks.

* rename

* Dynamic side panel components.
& Fixed color calculation.

* fix assets

* fixed assets and changed routes in backend / frontend. #58?

* Update web-gui/src/app/page-components/classroom/classroom.component.ts

Co-authored-by: Max Stephan <[email protected]>

* Updating attendees from BBB backend needs longer delay, since BBB registers disconnects once a minute.

* layout change.

* Update web-gui/src/index.html

Co-authored-by: Max Stephan <[email protected]>

* minor fix on example.env

* Fixes on docker build process.

* Fixed some sound problems and centralized asset management.

* Angular update.

* Strict ESLint :')

* [examples][docker-compose] fix CLASSROOM_HOST

Co-authored-by: Max Stephan <[email protected]>
@snicki13
Copy link
Member Author

Reopen if still relevant. Sound handling was changed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working web-gui
Projects
None yet
Development

No branches or pull requests

2 participants