-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Add support for multiple audio tracks #9937
Conversation
6855506
to
77649d3
Compare
Thanks a lot! Here are some changes that I would suggest to do and that you need to do:
You need to fix the following behaviors:
|
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as outdated.
This comment was marked as outdated.
Bug: the audio selection algorithm doesn't seem to take into account anymore the preferred audio format. When selecting an audio track of latest Mr Beast's video for an external audio player with the M4A codec, I got the URL of a WEBM format (itag 251) where I should have got the itag 140. Also, I don't know if that's intended or if you did changes since my comment about that, but no audio language is still shown in the downloader audio list. |
Hi @AudricV, |
Alright, I have everything implemented. Do you know why the android tests time out? |
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.
Things that should be tested before merging, on videos with various combinations of formats and languages. @Theta-Dev it would be great if you could provide a list of videos that have different features (e.g. no audio stream at all (i.e. only video streams with embedded audio), only original audio, descriptive audio, dubbed audio, all audio types in multiple languages, possibly not only from YouTube but from other platforms, too).
- downloading streams
- external player
- audio track menu both in the play queue activity and in the player
Thanks :-)
app/src/main/java/org/schabi/newpipe/download/DownloadDialog.java
Outdated
Show resolved
Hide resolved
app/src/main/java/org/schabi/newpipe/player/resolver/AudioPlaybackResolver.java
Show resolved
Hide resolved
app/src/main/java/org/schabi/newpipe/player/ui/VideoPlayerUi.java
Outdated
Show resolved
Hide resolved
app/src/main/java/org/schabi/newpipe/util/StreamItemAdapter.java
Outdated
Show resolved
Hide resolved
Videos for testing: |
Okay, I applied the changes and updated the PR. |
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.
Thanks a lot!
Please address the following changes and try to avoid in the future that your IDE or yourself does formatting changes which make reviews harder.
app/src/main/java/org/schabi/newpipe/player/resolver/PlaybackResolver.java
Show resolved
Hide resolved
app/src/main/java/org/schabi/newpipe/download/DownloadDialog.java
Outdated
Show resolved
Hide resolved
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.
Thank you! I tested everything in multiple ways, as said, and everything worked smoothly. The only small inconsistency I found is that the external audio player dialog does not have a "Open in browser" button and opens the audio directly if there is only one audio (which is a different behavior wrt videos). If you agree with me on changing the external audio player dialog to make it consistent with the video one, please do so ;-)
We don't know if, on muxed video streams we get for all services which support multiple audio languages, that the audio language returned is the original one or not, even if it should be the case. In order to avoid saying potential false information, this word has been removed from the string resource (ID and value) and the corresponding layout ID in the download dialog.
This change makes the dialog consistent with the video one.
Kudos, SonarCloud Quality Gate passed! |
All the testing apk links are 404'd |
As this code has been merged into dev branch. You can Try NewPipe Nightly builds: |
I found a regression in the latest nightly which was most likely introduced by this PR: #10180 |
What is it?
Description of the changes in your PR
Before/After Screenshots/Screen Record
Fixes the following issue(s)
APK testing
208887d53
) https://github.com/TeamNewPipe/NewPipe/suites/11651391410/artifacts/605129298ed06f559a
) https://github.com/TeamNewPipe/NewPipe/suites/11688854704/artifacts/60779622139a5c8b
) https://github.com/TeamNewPipe/NewPipe/suites/11887030011/artifacts/621997850Due diligence