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

accept other audio formats for AudioTaskView #302

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sdumetz
Copy link
Contributor

@sdumetz sdumetz commented Sep 4, 2024

AudioTaskView currently only accepts mp3 audio uploads. While this is the only compressed audio format that has 100% support (source: caniuse.com across browsers, some tools (eg: apple's audio recorder) now defaults to more modern formats.

I propose a softer requirement where partially-supported formats would just trigger an alert though I'll understand if you want to keep stricter requirements.


const ext = filename.toLowerCase().split(".").pop();
if(type === "subs" && ext != "vtt"){
Notification.show(`Unable to load - Only ${type === "subs"?".vtt":".mp3,.m4a"} files are currently supported.`, "warning");
Copy link
Collaborator

Choose a reason for hiding this comment

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

With this restructuring, the type === "subs" check isn't really necessary anymore

@gjcope
Copy link
Collaborator

gjcope commented Sep 4, 2024

Yes, the support aspect is why we limited it originally. I will talk to my team and see about opening it up. I generally don't like the idea of supporting content that can ultimately make it look like things are broken, but I understand the need as things have moved beyond mp3.

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.

2 participants