-
Notifications
You must be signed in to change notification settings - Fork 16
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
No subtitles / no audio features #27
Comments
Hey @hansinator Thanks for bringing this up. I did something similar for the chapter buttons (just deactivating them). But hiding makes even more sense. I will see how to get this information from mpv as soon as I find the time. |
@hansinator Unfortunately I did not find an easy way to get this information. For audio I can query the mpv --scripts=/usr/share/mpv/scripts/observe-all.lua /PATH/TO/SOME/MEDIA/FILE | grep "'audio-device-list' changed to" For subtitles this is more difficult. What we can do in any case, is to disable subtitle input elements if no subtitle tracks are available. |
|
This commit adds a new key "audio-support" to the status response json. It is `false` if the only audio device found by mpv is `auto`. As this can be subject to change, it gets reevaluated on every `/status` request. Related to #27
This commit adds a new key "audio-support" to the status response json. It is `false` if the only audio device found by mpv is `auto`. As this can be subject to change, it gets reevaluated on every `/status` request. Related to #27
@hansinator what audio-output driver are you using ? is it |
Hi,
I am using MPV compiled without audio and subtitles. Is there a possibility to detect if audio and or subtitle support is deactivated and include that information in one of the api endpoints response such that the webui can remove or disable the subtitle and audio related buttons?
The text was updated successfully, but these errors were encountered: