0xced / XCDYouTubeKit

YouTube video player for iOS, tvOS and macOS
MIT License
2.92k stars 626 forks source link

SDK returns invalid url #473

Open DmytroBrovkin opened 4 years ago

DmytroBrovkin commented 4 years ago

Hi, VideoId = "r9_Id6nsZS4" SDK returns URL, but it is invalid. If you try to load video with this url, 403 would be returned. As a result, player would stuck forever. Please assist.

URL: https://r2---sn-t0a7ln7d.googlevideo.com/videoplayback?expire=1584093054&ei=HgNrXv_pN66ggwPt15C4BQ&ip=80.71.45.183&id=o-AHcV61Y-srr_gmXzk-Ooj1w-paR2BqUoqPVsPyxNj-yr&itag=399&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C394%2C395%2C396%2C397%2C398%2C399&source=youtube&requiressl=yes&mh=g2&mm=31%2C26&mn=sn-t0a7ln7d%2Csn-tt1e7n7k&ms=au%2Conr&mv=m&mvi=1&pl=20&initcwndbps=1227500&vprv=1&mime=video%2Fmp4&gir=yes&clen=37497807&dur=178.428&lmt=1575264814028202&mt=1584071391&fvip=2&keepalive=yes&fexp=23842630&c=WEB&txp=5531432&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=ABSNjpQwRQIhANJUINbu0h47mR1bzfqur4M2JUtONAuZ-BPYCfi7mATHAiB-bpK81YfIwjPMuWdgEpbC8AprvUwtgEkZdaPHBVBDfg%3D%3D&sig==eMjL3kO_yPFf_yL-otVyaXt6YsnkzSvcLE56IA2WtAEiALW9Yp5AZoh7Nre0wl3qE64I0MGLhEVV8B4JWazGXLNYAhIgRwMGkhKDADP&ratebypass=yes

gmoledina commented 3 years ago

Facing the same issue with different videoIDs - did you find a fix for this?

gmoledina commented 3 years ago

I think the main issue is with YouTube - the issue seems to be similar to https://github.com/youtube/youtube-ios-player-helper/issues/417