Skip to content

fix(Record): clear media element source when no URL is provided#4113

Merged
katspaugh merged 1 commit intokatspaugh:mainfrom
matemolnar8:fix/firefox-src-warnings
Jun 24, 2025
Merged

fix(Record): clear media element source when no URL is provided#4113
katspaugh merged 1 commit intokatspaugh:mainfrom
matemolnar8:fix/firefox-src-warnings

Conversation

@matemolnar8
Copy link
Contributor

Short description

Resolves #4039

Fixes the continuous warning logging on Firefox

Implementation details

Instead of setting src to '' when loading the data from record plugin to wavesurfer, the src attribute is removed.
I also updated other places where src was set to '' as the media element interprets it as relative path.

I left the '' URL being passed to load, but maybe passing null instead would be safer. Let me know if I should change that.

How to test it

Start recording with record plugin on Firefox on the record example page

Screenshots

Screenshot 2025-06-21 at 20 44 23 Before the fix: Screenshot 2025-06-21 at 20 45 07

Checklist

  • This PR is covered by e2e tests
  • It introduces no breaking API changes

Copy link
Owner

@katspaugh katspaugh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@katspaugh katspaugh merged commit cdc252c into katspaugh:main Jun 24, 2025
5 checks passed
@matemolnar8 matemolnar8 deleted the fix/firefox-src-warnings branch June 24, 2025 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Recorder plugin in Firefox generates continuous errors

2 participants