Skip to content
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

How NewPipe increases the live window duration of YouTube live videos? #1004

Closed
SurajBahadur opened this issue Dec 29, 2022 · 2 comments
Closed
Labels
question Not really an issue, but more of a question about how something works youtube service, https://www.youtube.com/

Comments

@SurajBahadur
Copy link

SurajBahadur commented Dec 29, 2022

If we play a live video of YouTube on android exoplayer by using hlsManifestUrl then the live window duration is of 30 seconds and In the new pipe library duration increases by 1 hour from 30 seconds.

can anyone tell how the NewPipe is modifying the duration?

@AudricV
Copy link
Member

AudricV commented Dec 29, 2022

We use the HLS manifest of the iOS YouTube app, which returns live windows from 30 seconds up to 1 hour (ANDROID and WEB clients' ones are still used as a fallback if there is no manifest provided on the iOS client (this is unlikely to happen) or if the fetching of its player response fails). See #680 and #780 for more details.

Using the DASH manifest of YouTube, you should be able to have a live window which goes up to 4 hours, even if the first version of them is broken and pretty huge, that's the reason why it is not used.

However, I discovered recently that newer versions of these manifests are available, and can be get using a mpd_version parameter on the DASH manifest URL (the desktop website client uses the version 5, it goes up to version 7). This parameter should be added in the extractor soon.

By the way, that's NewPipe and not new pipe.

@AudricV AudricV closed this as completed Dec 29, 2022
@AudricV AudricV added question Not really an issue, but more of a question about how something works youtube service, https://www.youtube.com/ labels Dec 29, 2022
@AudricV AudricV changed the title How newpipe increase Live Window duraction of YouTube Live video. How NewPipe increases the live window duration of YouTube live videos? Dec 29, 2022
@SurajBahadur
Copy link
Author

We use the HLS manifest of the iOS YouTube app, which returns live windows from 30 seconds up to 1 hour (ANDROID and WEB clients' ones are still used as a fallback if there is no manifest provided on the iOS client (this is unlikely to happen) or if the fetching of its player response fails). See #680 and #780 for more details.

Using the DASH manifest of YouTube, you should be able to have a live window which goes up to 4 hours, even if the first version of them is broken and pretty huge, that's the reason why it is not used.

However, I discovered recently that newer versions of these manifests are available, and can be get using a mpd_version parameter on the DASH manifest URL (the desktop website client uses the version 5, it goes up to version 7). This parameter should be added in the extractor soon.

By the way, that's NewPipe and not new pipe.

Thank you @AudricV

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Not really an issue, but more of a question about how something works youtube service, https://www.youtube.com/
Projects
None yet
Development

No branches or pull requests

2 participants