Add descriptive and locale properties to audio streams #1026
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds support to extract descriptive audio support property in
AudioStream
(only implemented on YouTube, with a test added), which are currently not distinguished with main audio tracks.It also adds the ability to get a
Locale
for audio languages, which should make easier for clients to get a language object, and so avoid them to parse the audio track id (which may be not reliable in some services, such as MediaCCC where there is no audio track ID but only a language tag) to get aLocale
. Support and tests have been added for YouTube (streams and DASH manifests creators) and MediaCCC (other services doesn't seem to support multiple audio tracks, as far I know).A few documentation improvements and fixes (in the code and in the documentation) around the changes done have been also made.
This PR is required to add an optimal multiple audio tracks support in NewPipe.