-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Make audio track picker accept video files #4840
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
Make audio track picker accept video files #4840
Conversation
title: "Load external audio file", | ||
chooseDir: false, | ||
dir: currentDir, | ||
sheetWindow: player.currentWindow, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added new lines for better readability
chooseDir: false, | ||
dir: currentDir, | ||
sheetWindow: player.currentWindow, | ||
allowedFileTypes: Utility.playableFileExt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is actually Utility.supportedFileExt[.audio]! + Utility.supportedFileExt[.video]!, so I decided not to duplicate it and use existing static field. But I see its name makes no sense here ¯\_(ツ)_/¯
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the naming here is fair.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pulled changes, built IINA, tested. Worked fine.
Changes look good to me.
Thanks for contributing to IINA! |
Thanks from me as well! The comments in the PR explaining the thinking behind the code changes were very helpful. |
issue #3259
Description:
I've added union of video and audio types to allowedFileTypes in "Load external audio file". Selecting video file works out of the box for years in IINA, and was allowed until 1.0.7 (on 1.0.7 it works, but on newer versions doesn't).
It's time to fix it! 💛