QAudioDecoder more definitive error?
-
if a media type "doesn't contain an audio stream", we get an error of "Format"
but we can get "Format" errors for any number of things, not just because it's a valid media type (like mp4) that happens to not have an audio track.so, in using QAudioDecoder to ask questions (not QMediaPlayer), can i get a more definitive error than that, telling me precisely that the media doesn't have audio, and not just that there is a Format error?
i know i can read the error STRING, but that feels hacky, because strings can and do change, especially if we're running in another language, so i don't feel i can rely on asking if the error string contains "doesn't contain an audio stream".
To be clear, i do not wish to use QMeidaPlayer, which i understand is capable of asking this question.
-
Hi,
I think you would need to modify that in the backend code directly as from a quick look, it's there that the error is handled.
-
yeah bummer. looks like QMediaPlayer is the only way to get the answer
-