Skip to content

Conversation

@mauriciocolli
Copy link
Contributor

@mauriciocolli mauriciocolli commented Jun 21, 2020

What is it?

  • Bug fix
  • Feature
  • Code base improvement
  • Meta improvement to the project

Description of the changes in your PR

I am working in adding Twitch support for NewPipe and ran into this issue. Some streams have a direct link to them, and others use something like DASH or a HLS playlist. This PR adds support for them.

The downloader doesn't support them yet, so when downloading these types of streams, they will be hidden by default.

Fixes the following issue(s)

Relies on the following changes

Testing apk

add-support-stream-delivery.apk.zip

@obfripper @opusforlife2 @clarfon: Can you guys test it?

@mauriciocolli mauriciocolli added bug Issue is related to a bug player Issues related to any player (main, popup and background) requires extractor change This issue requires a change to the extractor labels Jun 21, 2020
@clarfonthey
Copy link

clarfonthey commented Jun 21, 2020

Not conclusive, but I watched a few videos this morning and things were a lot smoother than usual. The hangups are rather spurious because the stream type isn't consistent, but I feel relatively confident this at least improves most of the cases, if not all of them.

@opusforlife2
Copy link
Collaborator

Yes! Yes! I had a bunch of videos in mind to try in case a PR came along, and they ALL work! Thank you so much, Mauricio! You're a champ.

This is the best thing that's happened this week.

... I'm not crying. You're crying.

Copy link
Collaborator

@opusforlife2 opusforlife2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Curiosity, again.

} else if (deliveryFormat instanceof DeliveryFormat.HLS) {
url = ((DeliveryFormat.HLS) deliveryFormat).getUrl();
} else {
Toast.makeText(context, R.string.selected_stream_external_player_not_supported,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So this means external players can't play DASH videos, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that's right.

Although, we could send instead the url pointing to the DASH manifest containing all the resolutions, but it'd make the resolution picker a little useless and maybe confusing.

Maybe even saving a file containing a manually crafted video+audio manifest and sending that to external players? I think it could work.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume such videos would throw an error if shared from the Youtube app to VLC, for example?

@B0pol
Copy link
Member

B0pol commented Jun 22, 2020

Lots of music which are HLS only (TeamNewPipe/NewPipeExtractor#273) still don't work on SoundCloud :/

@mauriciocolli mauriciocolli force-pushed the add-support-stream-delivery branch from 40ef789 to b2dad01 Compare June 24, 2020 04:38
For example, some streams have a direct link to them, and others use
something like DASH or a HLS playlist. This adds support for them.

The downloader doesn't support them yet, so when downloading these
types of streams, they will be hidden.
Streams delivered by SoundCloud are not valid for very long, so a lower
expiration time is needed.
@mauriciocolli mauriciocolli force-pushed the add-support-stream-delivery branch from b2dad01 to efbf79f Compare June 24, 2020 04:39
@mauriciocolli
Copy link
Contributor Author

Lots of music which are HLS only (TeamNewPipe/NewPipeExtractor#273) still don't work on SoundCloud :/

Yeah, I left that for later, I just pushed a fix for that in the extractor PR.

@clarfonthey
Copy link

Any idea when this will get merged? Would love to see a new release with this included.

@dbenjaminmiller
Copy link

Any reason this still hasn't been merged a month plus later? Is there anyone else who can review/push it?

@wb9688
Copy link
Contributor

wb9688 commented Jul 30, 2020

@dbenjaminmiller: Yes, the changes in #2907, this only being for the player and not the downloader, and me not liking the Extractor-side of this implementation.

@avently
Copy link
Contributor

avently commented Jul 30, 2021

Any news about the PR?

@Stypox
Copy link
Member

Stypox commented Jul 31, 2021

@avently yes, #6537

@opusforlife2
Copy link
Collaborator

Closing in favour of #6537.

@mauriciocolli mauriciocolli deleted the add-support-stream-delivery branch December 8, 2021 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Issue is related to a bug player Issues related to any player (main, popup and background) requires extractor change This issue requires a change to the extractor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No playback of certain videos, infinite loading for HLS/DASH streams

8 participants