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

Extension doesn't work with livestreaming. #14

Closed
Thehail opened this issue Oct 7, 2017 · 9 comments
Closed

Extension doesn't work with livestreaming. #14

Thehail opened this issue Oct 7, 2017 · 9 comments
Labels

Comments

@Thehail
Copy link

Thehail commented Oct 7, 2017

Just what title says. Simply works for some moments but... give a try and you will know what happens.

@craftwar
Copy link

craftwar commented Feb 4, 2018

streamlink doesn't provide audio only in youtube live.
https://github.com/streamlink/streamlink
I don't think youtube live provides audio only stream. Just recognize it's live and don't apply to it.
Do you mind sharing knowledge about audio url? I just apply your logic, don't know why.

@craftwar
Copy link

craftwar commented Feb 8, 2018

bug fix or whatever
I get youtube audio in streamlink (m4a and webm)
This is possible.

@Ashish-Bansal
Copy link
Owner

Do you mind sharing knowledge about audio url? I just apply your logic, don't know why.

I intercept all the requests sent by the chrome and get the audio stream's URL. Then I replace the youtube player's source with that stream's URL.

I get youtube audio in streamlink (m4a and webm)
This is possible.

That's good to know!

@craftwar
Copy link

I know that, I mean how you know what url parameters to set. After more tests, not all live supports audio. There are still some youtube plugin bugs in streamlink.

@Ashish-Bansal
Copy link
Owner

I mean how you know what url parameters to set

I remove the URL parameters which are responsible for requesting partial content from youtube.

@p0we7
Copy link

p0we7 commented Jun 24, 2018

Still doesn't support livestreaming now?

I try to play a live and will response a error on youtube

@Kompwu Kompwu mentioned this issue Aug 7, 2018
13 tasks
@arminmacx
Copy link

Hi, Sorry to ask it again but any news on how we can listen to live youtube with this extension? or did you fix it?

@Ashish-Bansal
Copy link
Owner

Hi @arminmacx,

No it hasn't been fixed.

On the side note, in case anyone is interested in fixing it, I can add technical details I found just now from the live streaming requests. This extension doesn't work for the live youtube because we can't get one audio stream link for live streams. The streams are being served in segments of few seconds. Those segments are specified by sequence no.

image

https://r2---sn-oxu2a0npo-a0ie.googlevideo.com/videoplayback?live=1&gcr=in&hang=1&id=cnugE0LByiU.1&c=WEB&cmbypass=yes&gir=yes&pcm2cms=yes&signature=7505E0A34C18344EF541D39031FCD0F9874D588F.DDD03B3ED765ED3DDB4C2C59E8889D4897C3F47C&ip=103.41.26.191&requiressl=yes&initcwndbps=861250&ms=lv&itag=135&mt=1551673882&mv=m&aitags=133%2C134%2C135%2C160&sparams=aitags%2Ccmbypass%2Cei%2Cgcr%2Cgir%2Chang%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clive%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cnoclen%2Cpcm2cms%2Cpl%2Crequiressl%2Csource%2Cexpire&ipbits=0&keepalive=yes&mm=32&mn=sn-oxu2a0npo-a0ie&ei=f6p8XO7MKIvUkAOirL3AAQ&expire=1551695583&noclen=1&mime=video%2Fmp4&pl=24&source=yt_live_broadcast&key=yt6&alr=yes&cpn=aXkZ5GooXaFVGlW1&cver=2.20190227&sq=681091&rn=133&rbuf=20071

This sequence no. is specified using sq query parameter. We can keep incrementing this sequence no. and play the audio.

@Ashish-Bansal
Copy link
Owner

It will required good amount of DOM manipulation related to Youtube's player. Instead I would suggest just disabling this extension programmatically on the live videos so that it doesn't involve bad UX.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants