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

Support for Cipher signature #22

Open
edzzn opened this issue Jan 18, 2021 · 1 comment
Open

Support for Cipher signature #22

edzzn opened this issue Jan 18, 2021 · 1 comment

Comments

@edzzn
Copy link
Contributor

edzzn commented Jan 18, 2021

Some of the videos come ciphered. When trying to access some URLS, I get a Access denied message in the browser:

Access to r3---sn-xu525-j0xs.googlevideo.com was denied

Please take a look

Video with this problem: Ne4okV5MqPs

Here are some links with relevant discussions:
How to decode the Cipher
Another resource on decripting

 {
     itag: 18,
     mimeType: video / mp4;codecs = "avc1.42001E, mp4a.40.2",
     bitrate: 643499,
     width: 640,
     height: 360,
     lastModified: 1609584804476169,
     contentLength: 19324285,
     quality: medium,
     fps: 24,
     qualityLabel: 360 p,
     projectionType: RECTANGULAR,
     averageBitrate: 643330,
     audioQuality: AUDIO_QUALITY_LOW,
     approxDurationMs: 240303,
     audioSampleRate: 44100,
     audioChannels: 2,
     signatureCipher: s = % 3 D % 3 D % 3 D % 3 Dgk5ptKJ4gLfk_I7vbruneVV - D5Vmnm9qbevxGRSBRicBiAS0stdvC2udNBoB_io0j9RNciAtZtSwZdyL9ZSPpJb1NAhIQAw8JQ0qRORO & sp = sig & url = https: //r3---sn-xu525-j0xs.googlevideo.com/videoplayback%3Fexpire%3D1610955070%26ei%3D3uQEYNrtGIGY0_wPs7aMwAo%26ip%3D191.100.140.63%26id%3Do-ABr_WjR7yQqrhNiQQ-q6h51ZyGA9v23pmwX7xX1JRQYp%26itag%3D18%26source%3Dyoutube%26requiressl%3Dyes%26mh%3DYT%26mm%3D31%252C29%26mn%3Dsn-xu525-j0xs%252Csn-hp57ynel%26ms%3Dau%252Crdu%26mv%3Dm%26mvi%3D3%26pcm2cms%3Dyes%26pl%3D21%26pcm2%3Dyes%26initcwndbps%3D378750%26vprv%3D1%26mime%3Dvideo%252Fmp4%26ns%3DKjO5zjhfGTuGgQrgqhTXqKoF%26gir%3Dyes%26clen%3D19324285%26ratebypass%3Dyes%26dur%3D240.303%26lmt%3D1609584804476169%26mt%3D1610933086%26fvip%3D3%26c%3DWEB%26txp%3D5530432%26n%3Dqcsf7RNT1ehV2W%26sparams%3Dexpire%252Cei%252Cip%252Cid%252Citag%252Csource%252Crequiressl%252Cpcm2%252Cvprv%252Cmime%252Cns%252Cgir%252Cclen%252Cratebypass%252Cdur%252Clmt%26lsparams%3Dmh%252Cmm%252Cmn%252Cms%252Cmv%252Cmvi%252Cpcm2cms%252Cpl%252Cinitcwndbps%26lsig%3DAG3C_xAwRgIhAP0Vso85cXhu79iNOB5L9x1xv1jumIYKu5Oo9-tXAEUVAiEA1_O6xkNIV-bpDtA-muy_YNwhyYXphO2VKCXZLyJ7UB8%253D
     }
@edzzn
Copy link
Contributor Author

edzzn commented Jan 18, 2021

At least there the exception should be handled! The following unhadled exception pops up:

PlatformException (PlatformException(VideoError, Video player had error com.google.android.exoplayer2.ExoPlaybackException: Source error, null, null))

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

No branches or pull requests

1 participant