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

URL Error #434

Closed
xjimi opened this issue May 14, 2019 · 22 comments
Closed

URL Error #434

xjimi opened this issue May 14, 2019 · 22 comments

Comments

@xjimi
Copy link

xjimi commented May 14, 2019

Sometimes the url obtained from XCDYouTubekit will play correctly,
sometimes it will error, and it will happen in any video.

Domain=NSURLErrorDomain Code=-999 "cancelled" :

https://r2---sn-qpbpqvhju8-u2xe.googlevideo.com/videoplayback?expire=1557872045&ei=TenaXIyKFIyTgQPdiKOQBQ&ip=150.117.223.241&id=o-AJOm2c0LslNVLmAreDj4IsKUnitoL6XeZQHZBjqkJJlQ&itag=18&source=youtube&requiressl=yes&mm=31%2C29&mn=sn-qpbpqvhju8-u2xe%2Csn-un57sn7z&ms=au%2Crdu&mv=m&pl=23&gcr=tw&initcwndbps=1305000&mime=video%2Fmp4&gir=yes&clen=21052031&ratebypass=yes&dur=243.972&lmt=1557136161716157&mt=1557850357&fvip=2&c=WEB&txp=5531432&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cgcr%2Cmime%2Cgir%2Cclen%2Cratebypass%2Cdur%2Clmt&lsparams=mm%2Cmn%2Cms%2Cmv%2Cpl%2Cinitcwndbps&lsig=AHylml4wRQIhANbKiMmPX09KnSXMXfcDstzL3BBtZ98wbG60wAQy4bThAiACj4wBM_jiEZy7Xx8m8uq4rw33JkguXlO0sgh223DsUw%3D%3D&signature=ALgxI2wwRAIgf5IN_QfWSlM3EMI90f6WZhkB80A4Yoyqd4c1rL5maSMCIBQVd1cyxsgM62bIGhmGuhgLlcfusU9fAGLs-TllW6KE

Then I try again, although it is wrong, but it can be played

Domain=NSURLErrorDomain Code=-999 "cancelled"

https://r2---sn-un57sn7z.googlevideo.com/videoplayback?id=o-AJN0diMs6A3NptvhIlf1MzaJbRc-heRwtpdvLqhTJrxg&itag=18&source=youtube&requiressl=yes&pl=23&ei=UunaXNzfE5e8qAHXi5S4Cg&gcr=tw&mime=video%2Fmp4&gir=yes&clen=21052031&ratebypass=yes&dur=243.972&lmt=1557136161716157&fvip=2&c=WEB&txp=5531432&ip=150.117.223.241&ipbits=0&expire=1557872050&sparams=clen,dur,ei,expire,gcr,gir,id,ip,ipbits,itag,lmt,mime,mm,mn,ms,mv,pl,ratebypass,requiressl,source&key=cms1&signature=410BEC642ACE13220F697423D84EF7DEE0F15F7C.68C8A740BEEF20BC047D3E04B835F334BCB4B062&redirect_counter=1&cm2rm=sn-qpbpqvhju8-u2xe7l&req_id=2dc155c2fbf4a9b1&cms_redirect=yes&mm=29&mn=sn-un57sn7z&ms=rdu&mt=1557850298&mv=m

@SoneeJohn
Copy link
Collaborator

Which version of the library are you using?

@xjimi
Copy link
Author

xjimi commented May 20, 2019

After updating to the latest version, all problems have been solved.

@xjimi xjimi closed this as completed May 20, 2019
@ryanrward
Copy link

Hello,
I am getting the following error. The video plays after the error is thrown.

Task <6D318B02-F2EC-4022-BA7D-500EADF449D8>.<2> load failed with error Error Domain=NSURLErrorDomain Code=-999 "cancelled" UserInfo={NSErrorFailingURLStringKey=https://r3---sn-q0-50il.googlevideo.com/videoplayback?expire=1563474188&ei=rGQwXd3gNpaQ1wbS7Low&ip=91.75.68.78&id=o-AAcOQCP-0Py2RmMQsAMobO97wqaETjF_ZG7K2ml8A_-m&itag=22&source=youtube&requiressl=yes&mm=31%2C29&mn=sn-q0-50il%2Csn-4wg7ln7d&ms=au%2Crdu&mv=m&mvi=2&pl=19&initcwndbps=478750&mime=video%2Fmp4&ratebypass=yes&dur=665.507&lmt=1563319236471751&mt=1563452475&fvip=3&c=WEB&txp=3516222&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cmime%2Cratebypass%2Cdur%2Clmt&sig=ALgxI2wwRQIhAJvEtgIS_yub37OSs9Z03OAccYrAw2t7EsJ5nKMAjuZEAiAf4DcEz7E8OcTbsO0RF6a-zmlagvMIX9g44jbvcpIOyQ%3D%3D&lsparams=mm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AHylml4wRQIhAOevkN_Ooy-xO-sZ5guWowuiskkEU1nwyU0DMhuUUX2wAiBOWWv4RZt1UuAZDsl1EHTrjmYrhQNVInt7eHFgGdRX8A%3D%3D, NSErrorFailingURLKey=https://r3---sn-q0-50il.googlevideo.com/videoplayback?expire=1563474188&ei=rGQwXd3gNpaQ1wbS7Low&ip=91.75.68.78&id=o-AAcOQCP-0Py2RmMQsAMobO97wqaETjF_ZG7K2ml8A_-m&itag=22&source=youtube&requiressl=yes&mm=31%2C29&mn=sn-q0-50il%2Csn-4wg7ln7d&ms=au%2Crdu&mv=m&mvi=2&pl=19&initcwndbps=478750&mime=video%2Fmp4&ratebypass=yes&dur=665.507&lmt=1563319236471751&mt=1563452475&fvip=3&c=WEB&txp=3516222&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cmime%2Cratebypass%2Cdur%2Clmt&sig=ALgxI2wwRQIhAJvEtgIS_yub37OSs9Z03OAccYrAw2t7EsJ5nKMAjuZEAiAf4DcEz7E8OcTbsO0RF6a-zmlagvMIX9g44jbvcpIOyQ%3D%3D&lsparams=mm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AHylml4wRQIhAOevkN_Ooy-xO-sZ5guWowuiskkEU1nwyU0DMhuUUX2wAiBOWWv4RZt1UuAZDsl1EHTrjmYrhQNVInt7eHFgGdRX8A%3D%3D, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask <6D318B02-F2EC-4022-BA7D-500EADF449D8>.<2>"
), _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <6D318B02-F2EC-4022-BA7D-500EADF449D8>.<2>, NSLocalizedDescription=cancelled} [-999]

@SoneeJohn
Copy link
Collaborator

@ryanrward Can you give me the video URL of the video and also what version of the library are you using?

@ryanrward
Copy link

I tried many videos with the same result. Right now the following video is there:
https://www.youtube.com/watch?v=uG-1fNu05hI

I'm using XCDYouTubeKit (2.7.7)

@SoneeJohn
Copy link
Collaborator

@ryanrward Please see my comment here: #406 (comment)

@ryanrward
Copy link

Is this the correct info?

string __NSCFString * @"var _yt_player={};(function(g){var window=this;var ba,da,la,ma,na,pa,oa,qa,ra,sa,ua,baa,caa,va,wa,daa,eaa,xa,ya,za,Aa,Ba,Ea,Ia,Ja,gaa,haa,Ta,Ua,iaa,jaa,ab,kaa,ib,jb,laa,pb,lb,maa,nb,naa,oaa,paa,ub,vb,Db,Eb,Gb,Jb,Mb,Nb,Pb,Tb,Vb,Wb,Zb,$b,fc,gc,ic,hc,kc,raa,lc,saa,taa,oc,pc,sc,tc,waa,vc,uc,Bc,Fc,Gc,Hc,zaa,Caa,Daa,Lc,Oc,Eaa,Faa,Nc,Qc,Iaa,Vc,Xc,Zc,bd,cd,dd,Laa,fd,gd,hd,id,Naa,jd,rd,ud,xd,Bd,Cd,Id,Jd,Md,Kd,Od,Pd,Vd,Saa,Yd,zd,de,be,ce,Qaa,ee,yd,Uaa,Vaa,me,he,qe,se,pe,te,ue,ve,ye,ze,Ae,Be,Ce,De,Ee,Fe,Ge,He,Ie,Je,Me,Ne,Oe,Pe,Qe,Re,Se,Te,$e,We,af,Waa,bf,\ncf,df,ef,Xe,ff,hf,gf,kf,lf,jf,mf,nf,Xaa,tf,Zaa,wf,xf,yf,Af,Ef,$aa,Bf,Hf,Of,Nf,bba,Df,Tf,Uf,Vf,Wf,Yf,cba,Zf,$f,dba,eg,gg,hg,jg,kg,mg,ng,og,rg,sg,eba,ug,wg,yg,tg,vg,ig,pg,gba,Bg,zg,Ag,Dg,fba,Cg,Hg,Ig,hba,iba,jba,Jg,Lg,Ng,Og,Pg,Ug,Vg,Wg,Xg,Yg,Zg,ah,ch,dh,fh,mba,hh,ih,kh,lh,nba,rh,sh,th,uh,wh,xh,yh,Eh,Ih,Jh,Kh,Nh,Mh,Oh,Gh,oba,Uh,Vh,Wh,pba,qba,Xh,Yh,ai,ci,bi,di,ei,sba,uba,vba,xba,gi,hi,ii,ji,ni,oi,ri,pi,Aba,qi,si,ti,vi,ui,wi,xi,yi,Bba,zi,Di,Ei,Cba,Gi,Ii,Li,Mi,Ni,Oi,Pi,Dba," 0x000000012a272000

@SoneeJohn
Copy link
Collaborator

@ryanrward Yes. Did you get that and still had an error?

@ryanrward
Copy link

@SoneeJohn yes, it's happening regardless of which video id place in there.

Here's the code I"m using to implement the video:

struct YouTubeVideoQuality {
static let hd720 = NSNumber(value: XCDYouTubeVideoQuality.HD720.rawValue)
static let medium360 = NSNumber(value: XCDYouTubeVideoQuality.medium360.rawValue)
static let small240 = NSNumber(value: XCDYouTubeVideoQuality.small240.rawValue)
}

private func setupPlayerView() {
    XCDYouTubeClient.default().getVideoWithIdentifier("GhzVZ2jaBN4") { (video: XCDYouTubeVideo?, error: Error?) in
        if let streamURLs = video?.streamURLs, let streamURL = (streamURLs[XCDYouTubeVideoQualityHTTPLiveStreaming] ?? streamURLs[YouTubeVideoQuality.hd720] ?? streamURLs[YouTubeVideoQuality.medium360] ?? streamURLs[YouTubeVideoQuality.small240]) {
            
            let player = AVPlayer(url: streamURL as URL)
            
            let playerLayer = AVPlayerLayer(player: player)
            self.layer.addSublayer(playerLayer)
            playerLayer.frame = self.frame
            
            player.play()
        }
    }
}

@SoneeJohn
Copy link
Collaborator

SoneeJohn commented Jul 19, 2019

@ryanrward. Thanks. Please see my updated comment at #406 (comment)

@ryanrward
Copy link

Thank you. I set the breakpoint but didn't receive any error or String.

@SoneeJohn
Copy link
Collaborator

SoneeJohn commented Jul 21, 2019

@ryanrward Can you show me the entire console output you get what fetching that video?

Screen Shot 2019-07-21 at 12 00 18 AM

@ryanrward
Copy link

No problem @SoneeJohn. And thank you again for your help looking into this.

Concole output:

2019-07-21 14:14:15.502516+0400 MyVideoApp[19866:1279929] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C2.1:2][0x7fdc33c2c810] get output frames failed, state 8196
2019-07-21 14:14:15.508437+0400 MyVideoApp[19866:1279929] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C2.1:2][0x7fdc33c2c810] get output frames failed, state 8196
2019-07-21 14:14:15.527134+0400 MyVideoApp[19866:1279929] TIC Read Status [2:0x0]: 1:57
2019-07-21 14:14:15.528258+0400 MyVideoApp[19866:1279929] TIC Read Status [2:0x0]: 1:57
2019-07-21 14:14:16.435617+0400 MyVideoApp[19866:1280943] Task <3E90BDEF-E53B-428F-B183-3E86B4AD431C>.<2> load failed with error Error Domain=NSURLErrorDomain Code=-999 "cancelled" UserInfo={NSErrorFailingURLStringKey=https://r1---sn-q0-50il.googlevideo.com/videoplayback?expire=1563725652&ei=9Do0XbPYLsGAhAe0ppuwCA&ip=91.75.68.78&id=o-AIL7vvsPAz_NeoJkhd-Vp5-nJ4jdazbU-sR3sPphNK8J&itag=22&source=youtube&requiressl=yes&mm=31%2C29&mn=sn-q0-50il%2Csn-4wg7ln7k&ms=au%2Crdu&mv=m&mvi=0&pl=19&initcwndbps=363750&mime=video%2Fmp4&ratebypass=yes&dur=606.667&lmt=1563206954121497&mt=1563703926&fvip=1&c=WEB&txp=2316222&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cmime%2Cratebypass%2Cdur%2Clmt&sig=ALgxI2wwRQIgOra2CURM4UFWcDJdm7xQL1qDS9Kd6jkwCKKc_zdRfq4CIQDv7Ki0wYVsswDCRwzm1H261ag5_bitrsMp43b1yn8J5w%3D%3D&lsparams=mm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AHylml4wRAIgTIDoScRYZ2g26c-zHJlOqE2JqvuVvMsvIknz2Lc0U5ACIFsaiVUTcPIcwZI2GbCRnwzosLM0TcRVFpqyIsrPEAg_, NSErrorFailingURLKey=https://r1---sn-q0-50il.googlevideo.com/videoplayback?expire=1563725652&ei=9Do0XbPYLsGAhAe0ppuwCA&ip=91.75.68.78&id=o-AIL7vvsPAz_NeoJkhd-Vp5-nJ4jdazbU-sR3sPphNK8J&itag=22&source=youtube&requiressl=yes&mm=31%2C29&mn=sn-q0-50il%2Csn-4wg7ln7k&ms=au%2Crdu&mv=m&mvi=0&pl=19&initcwndbps=363750&mime=video%2Fmp4&ratebypass=yes&dur=606.667&lmt=1563206954121497&mt=1563703926&fvip=1&c=WEB&txp=2316222&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cmime%2Cratebypass%2Cdur%2Clmt&sig=ALgxI2wwRQIgOra2CURM4UFWcDJdm7xQL1qDS9Kd6jkwCKKc_zdRfq4CIQDv7Ki0wYVsswDCRwzm1H261ag5_bitrsMp43b1yn8J5w%3D%3D&lsparams=mm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AHylml4wRAIgTIDoScRYZ2g26c-zHJlOqE2JqvuVvMsvIknz2Lc0U5ACIFsaiVUTcPIcwZI2GbCRnwzosLM0TcRVFpqyIsrPEAg_, NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask <3E90BDEF-E53B-428F-B183-3E86B4AD431C>.<2>"
), NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <3E90BDEF-E53B-428F-B183-3E86B4AD431C>.<2>, NSLocalizedDescription=cancelled} [-999]
2019-07-21 14:14:16.443314+0400 MyVideoApp[19866:1278978] TIC Read Status [4:0x0]: 1:57
2019-07-21 14:14:16.443445+0400 MyVideoApp[19866:1280619] Task <3E90BDEF-E53B-428F-B183-3E86B4AD431C>.<2> finished with error - code: -999
2019-07-21 14:14:32.940508+0400 MyVideoApp[19866:1280943] Task <3A79CCC0-FB6E-443F-B6A4-B3E65A475B96>.<5> load failed with error Error Domain=NSURLErrorDomain Code=-999 "cancelled" UserInfo={NSErrorFailingURLStringKey=https://r1---sn-q0-50il.googlevideo.com/videoplayback?expire=1563725652&ei=9Do0XbPYLsGAhAe0ppuwCA&ip=91.75.68.78&id=o-AIL7vvsPAz_NeoJkhd-Vp5-nJ4jdazbU-sR3sPphNK8J&itag=22&source=youtube&requiressl=yes&mm=31%2C29&mn=sn-q0-50il%2Csn-4wg7ln7k&ms=au%2Crdu&mv=m&mvi=0&pl=19&initcwndbps=363750&mime=video%2Fmp4&ratebypass=yes&dur=606.667&lmt=1563206954121497&mt=1563703926&fvip=1&c=WEB&txp=2316222&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cmime%2Cratebypass%2Cdur%2Clmt&sig=ALgxI2wwRQIgOra2CURM4UFWcDJdm7xQL1qDS9Kd6jkwCKKc_zdRfq4CIQDv7Ki0wYVsswDCRwzm1H261ag5_bitrsMp43b1yn8J5w%3D%3D&lsparams=mm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AHylml4wRAIgTIDoScRYZ2g26c-zHJlOqE2JqvuVvMsvIknz2Lc0U5ACIFsaiVUTcPIcwZI2GbCRnwzosLM0TcRVFpqyIsrPEAg
, NSErrorFailingURLKey=https://r1---sn-q0-50il.googlevideo.com/videoplayback?expire=1563725652&ei=9Do0XbPYLsGAhAe0ppuwCA&ip=91.75.68.78&id=o-AIL7vvsPAz_NeoJkhd-Vp5-nJ4jdazbU-sR3sPphNK8J&itag=22&source=youtube&requiressl=yes&mm=31%2C29&mn=sn-q0-50il%2Csn-4wg7ln7k&ms=au%2Crdu&mv=m&mvi=0&pl=19&initcwndbps=363750&mime=video%2Fmp4&ratebypass=yes&dur=606.667&lmt=1563206954121497&mt=1563703926&fvip=1&c=WEB&txp=2316222&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cmime%2Cratebypass%2Cdur%2Clmt&sig=ALgxI2wwRQIgOra2CURM4UFWcDJdm7xQL1qDS9Kd6jkwCKKc_zdRfq4CIQDv7Ki0wYVsswDCRwzm1H261ag5_bitrsMp43b1yn8J5w%3D%3D&lsparams=mm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AHylml4wRAIgTIDoScRYZ2g26c-zHJlOqE2JqvuVvMsvIknz2Lc0U5ACIFsaiVUTcPIcwZI2GbCRnwzosLM0TcRVFpqyIsrPEAg
, NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask <3A79CCC0-FB6E-443F-B6A4-B3E65A475B96>.<5>"
), NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <3A79CCC0-FB6E-443F-B6A4-B3E65A475B96>.<5>, NSLocalizedDescription=cancelled} [-999]
2019-07-21 14:14:32.945019+0400 MyVideoApp[19866:1280908] Task <3A79CCC0-FB6E-443F-B6A4-B3E65A475B96>.<5> finished with error - code: -999
2019-07-21 14:14:37.730521+0400 MyVideoApp[19866:1280670] [ops] Communications error: Connection interrupted
2019-07-21 14:14:41.107876+0400 MyVideoApp[19866:1280943] Task .<6> load failed with error Error Domain=NSURLErrorDomain Code=-999 "cancelled" UserInfo={NSErrorFailingURLStringKey=https://r1---sn-q0-50il.googlevideo.com/videoplayback?expire=1563725652&ei=9Do0XbPYLsGAhAe0ppuwCA&ip=91.75.68.78&id=o-AIL7vvsPAz_NeoJkhd-Vp5-nJ4jdazbU-sR3sPphNK8J&itag=22&source=youtube&requiressl=yes&mm=31%2C29&mn=sn-q0-50il%2Csn-4wg7ln7k&ms=au%2Crdu&mv=m&mvi=0&pl=19&initcwndbps=363750&mime=video%2Fmp4&ratebypass=yes&dur=606.667&lmt=1563206954121497&mt=1563703926&fvip=1&c=WEB&txp=2316222&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cmime%2Cratebypass%2Cdur%2Clmt&sig=ALgxI2wwRQIgOra2CURM4UFWcDJdm7xQL1qDS9Kd6jkwCKKc_zdRfq4CIQDv7Ki0wYVsswDCRwzm1H261ag5_bitrsMp43b1yn8J5w%3D%3D&lsparams=mm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AHylml4wRAIgTIDoScRYZ2g26c-zHJlOqE2JqvuVvMsvIknz2Lc0U5ACIFsaiVUTcPIcwZI2GbCRnwzosLM0TcRVFpqyIsrPEAg
, NSErrorFailingURLKey=https://r1---sn-q0-50il.googlevideo.com/videoplayback?expire=1563725652&ei=9Do0XbPYLsGAhAe0ppuwCA&ip=91.75.68.78&id=o-AIL7vvsPAz_NeoJkhd-Vp5-nJ4jdazbU-sR3sPphNK8J&itag=22&source=youtube&requiressl=yes&mm=31%2C29&mn=sn-q0-50il%2Csn-4wg7ln7k&ms=au%2Crdu&mv=m&mvi=0&pl=19&initcwndbps=363750&mime=video%2Fmp4&ratebypass=yes&dur=606.667&lmt=1563206954121497&mt=1563703926&fvip=1&c=WEB&txp=2316222&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cmime%2Cratebypass%2Cdur%2Clmt&sig=ALgxI2wwRQIgOra2CURM4UFWcDJdm7xQL1qDS9Kd6jkwCKKc_zdRfq4CIQDv7Ki0wYVsswDCRwzm1H261ag5_bitrsMp43b1yn8J5w%3D%3D&lsparams=mm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AHylml4wRAIgTIDoScRYZ2g26c-zHJlOqE2JqvuVvMsvIknz2Lc0U5ACIFsaiVUTcPIcwZI2GbCRnwzosLM0TcRVFpqyIsrPEAg
, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask .<6>"
), _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask .<6>, NSLocalizedDescription=cancelled} [-999]
2019-07-21 14:14:41.123793+0400 MyVideoApp[19866:1278978] Task .<6> finished with error - code: -999

@SoneeJohn
Copy link
Collaborator

SoneeJohn commented Jul 21, 2019

@ryanrward Thanks! I forgot to mention adding the XCDYouTubeKitLogLevel environment variable to 4. Do that and send me your logs again please :-)

Screen Shot 2019-07-21 at 6 50 54 AM

@ryanrward
Copy link

Okay @SoneeJohn, I did that, but the error looks the same to me.

showing video Play
2019-07-21 15:27:08.543844+0400 MyVideoApp[20466:1333083] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C2.1:2][0x7fde52f10a10] get output frames failed, state 8196
2019-07-21 15:27:08.544084+0400 MyVideoApp[20466:1333083] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C2.1:2][0x7fde52f10a10] get output frames failed, state 8196
2019-07-21 15:27:08.544632+0400 MyVideoApp[20466:1333083] TIC Read Status [2:0x0]: 1:57
2019-07-21 15:27:08.544870+0400 MyVideoApp[20466:1333083] TIC Read Status [2:0x0]: 1:57
2019-07-21 15:27:09.902987+0400 MyVideoApp[20466:1333272] Task <98EEB3A1-1821-470C-9717-2A4341D98F18>.<2> load failed with error Error Domain=NSURLErrorDomain Code=-999 "cancelled" UserInfo={NSErrorFailingURLStringKey=https://r1---sn-q0-50il.googlevideo.com/videoplayback?expire=1563730028&ei=C0w0XeSePI2SmLAP8py2iAw&ip=91.75.68.78&id=o-AJSZAZOUJ3QcBR2skubzdKLtoiXEAUDUMh8tjBjlUzGT&itag=22&source=youtube&requiressl=yes&mm=31%2C29&mn=sn-q0-50il%2Csn-4wg7ln7k&ms=au%2Crdu&mv=m&mvi=0&pl=19&pcm2=yes&initcwndbps=422500&mime=video%2Fmp4&ratebypass=yes&dur=606.667&lmt=1563206954121497&mt=1563708348&fvip=1&c=WEB&txp=2316222&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cpcm2%2Cmime%2Cratebypass%2Cdur%2Clmt&sig=ALgxI2wwRQIgRuJvAWdmaPPgeyyEyptD1MIEYmSHBRv1t9FebdL5U6QCIQCvujrpGgfPPtmHkKJSNvzvkVK8FT5B5e3QJgQOBYGEVQ%3D%3D&lsparams=mm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AHylml4wRgIhAJ0B0PSihtjaY0T4chd8PJECzMXCJGdrPsWrLnj1LL-XAiEAo9yo5jKn70mg75ZQ45ZP5ZQEGM6EOhSps-fOg_dQJrE%3D, NSErrorFailingURLKey=https://r1---sn-q0-50il.googlevideo.com/videoplayback?expire=1563730028&ei=C0w0XeSePI2SmLAP8py2iAw&ip=91.75.68.78&id=o-AJSZAZOUJ3QcBR2skubzdKLtoiXEAUDUMh8tjBjlUzGT&itag=22&source=youtube&requiressl=yes&mm=31%2C29&mn=sn-q0-50il%2Csn-4wg7ln7k&ms=au%2Crdu&mv=m&mvi=0&pl=19&pcm2=yes&initcwndbps=422500&mime=video%2Fmp4&ratebypass=yes&dur=606.667&lmt=1563206954121497&mt=1563708348&fvip=1&c=WEB&txp=2316222&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cpcm2%2Cmime%2Cratebypass%2Cdur%2Clmt&sig=ALgxI2wwRQIgRuJvAWdmaPPgeyyEyptD1MIEYmSHBRv1t9FebdL5U6QCIQCvujrpGgfPPtmHkKJSNvzvkVK8FT5B5e3QJgQOBYGEVQ%3D%3D&lsparams=mm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AHylml4wRgIhAJ0B0PSihtjaY0T4chd8PJECzMXCJGdrPsWrLnj1LL-XAiEAo9yo5jKn70mg75ZQ45ZP5ZQEGM6EOhSps-fOg_dQJrE%3D, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask <98EEB3A1-1821-470C-9717-2A4341D98F18>.<2>"
), _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <98EEB3A1-1821-470C-9717-2A4341D98F18>.<2>, NSLocalizedDescription=cancelled} [-999]
2019-07-21 15:27:09.906950+0400 MyVideoApp[20466:1331022] TIC Read Status [4:0x0]: 1:57
2019-07-21 15:27:09.907194+0400 MyVideoApp[20466:1333081] Task <98EEB3A1-1821-470C-9717-2A4341D98F18>.<2> finished with error - code: -999

@SoneeJohn
Copy link
Collaborator

@ryanrward Okay. Please use the demo app in the project (the Mac app) and try entering the video ID that is causing the error for you and see that your environment variables are like this:

Screen Shot 2019-07-21 at 8 13 45 AM

@ryanrward
Copy link

ryanrward commented Jul 21, 2019

@SoneeJohn Did that. Is this more helpful?

2019-07-21 16:19:22.421701+0400 XCDYouTubeKit OS X Demo[22735:1518701] Starting video operation: <XCDYouTubeVideoOperation: 0x600003510dc0> GhzVZ2jaBN4 (en)
2019-07-21 16:19:22.425836+0400 XCDYouTubeKit OS X Demo[22735:1518701] Starting request: https://www.youtube.com/get_video_info?el=embedded&hl=en&ps=default&video_id=GhzVZ2jaBN4
2019-07-21 16:19:22.998065+0400 XCDYouTubeKit OS X Demo[22735:1518688] SecTaskLoadEntitlements failed error=22 cs_flags=20, pid=22735
2019-07-21 16:19:22.998268+0400 XCDYouTubeKit OS X Demo[22735:1518688] SecTaskCopyDebugDescription: XCDYouTubeKit OS[22735]/0#-1 LF=0
2019-07-21 16:19:23.581263+0400 XCDYouTubeKit OS X Demo[22735:1518701] Response: <NSHTTPURLResponse: 0x600000298aa0> { URL: https://www.youtube.com/get_video_info?el=embedded&hl=en&ps=default&video_id=GhzVZ2jaBN4 } { Status Code: 200, Headers {
"Cache-Control" = (
"no-store"
);
"Content-Encoding" = (
br
);
"Content-Type" = (
"application/x-www-form-urlencoded"
);
Date = (
"Sun, 21 Jul 2019 12:19:23 GMT"
);
Expires = (
"Tue, 27 Apr 1971 19:44:06 EST"
);
Server = (
"YouTube Frontend Proxy"
);
"Strict-Transport-Security" = (
"max-age=31536000"
);
"alt-svc" = (
"quic=":443"; ma=2592000; v="46,43,39""
);
p3p = (
"CP="This is not a P3P policy! See http://support.google.com/accounts/answer/151657?hl=en for more info.""
);
"x-content-type-options" = (
nosniff
);
"x-frame-options" = (
SAMEORIGIN
);
"x-xss-protection" = (
0
);
} }
gapi_hint_param
2019-07-21 16:19:23.586191+0400 XCDYouTubeKit OS X Demo[22735:1518701] Handling video info response
2019-07-21 16:19:23.598336+0400 XCDYouTubeKit OS X Demo[22735:1518701] Video operation finished with success: [GhzVZ2jaBN4] Chris Joslin: BEING | X Games Minneapolis 2019
2019-07-21 16:19:23.619148+0400 XCDYouTubeKit OS X Demo[22735:1518624] <XCDYouTubeVideo: 0x600002640660> [GhzVZ2jaBN4] Chris Joslin: BEING | X Games Minneapolis 2019
Duration: 10m 7s
Expiration date: 2019-07-21 18:19:23 +0000
Thumbnail: https://i.ytimg.com/vi/GhzVZ2jaBN4/hqdefault.jpg?sqp=-oaymwEiCKgBEF5IWvKriqkDFQgBFQAAAAAYASUAAMhCPQCAokN4AQ==&rs=AOn4CLCEhGczTAhKRNI20exctKofnly6NA
Streams: {
18 → https://r1---sn-q0-50il.googlevideo.com/videoplayback?expire=1563733163&ei=S1g0XY7sE6aAhAesu5_gBQ&ip=91.75.68.78&id=o-AHTlncOj2T7g7ZH7tAkmHVFItJniOZ418u9q2gJ1LWNg&itag=18&source=youtube&requiressl=yes&mm=31%2C29&mn=sn-q0-50il%2Csn-4wg7ln7k&ms=au%2Crdu&mv=m&mvi=0&pcm2cms=yes&pl=19&initcwndbps=456250&mime=video%2Fmp4&gir=yes&clen=43165881&ratebypass=yes&dur=606.667&lmt=1563206734889925&mt=1563711488&fvip=1&c=WEB&txp=2311222&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cmime%2Cgir%2Cclen%2Cratebypass%2Cdur%2Clmt&sig=ALgxI2wwRQIhAMX7I5DD7v7jENRnI7WItEb3aA1bIg1FKKjyfT8-de8RAiBk94P6mC9Hz8sGV6LpkeB0G61j6FkxoiyDGAXS_ZE6NQ%3D%3D&lsparams=mm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpcm2cms%2Cpl
2019-07-21 16:19:23.697246+0400 XCDYouTubeKit OS X Demo[22735:1518616] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C1.1:2][0x1006424f0] get output frames failed, state 8196
2019-07-21 16:19:23.697700+0400 XCDYouTubeKit OS X Demo[22735:1518616] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C1.1:2][0x1006424f0] get output frames failed, state 8196
2019-07-21 16:19:23.698350+0400 XCDYouTubeKit OS X Demo[22735:1518616] TIC Read Status [1:0x0]: 1:57
2019-07-21 16:19:23.698705+0400 XCDYouTubeKit OS X Demo[22735:1518616] TIC Read Status [1:0x0]: 1:57
2019-07-21 16:19:24.996710+0400 XCDYouTubeKit OS X Demo[22735:1518701] startConfigurationWithCompletionHandler: Failed to get remote object proxy: Error Domain=NSCocoaErrorDomain Code=4097 "connection to service named com.apple.rtcreportingd" UserInfo={NSDebugDescription=connection to service named com.apple.rtcreportingd}
2019-07-21 16:19:25.077944+0400 XCDYouTubeKit OS X Demo[22735:1518701] startConfigurationWithCompletionHandler: Failed to get remote object proxy: Error Domain=NSCocoaErrorDomain Code=4097 "connection to service named com.apple.rtcreportingd" UserInfo={NSDebugDescription=connection to service named com.apple.rtcreportingd}
2019-07-21 16:19:25.156665+0400 XCDYouTubeKit OS X Demo[22735:1518701] sendMessageWithDictionary: Failed to get remote object proxy: Error Domain=NSCocoaErrorDomain Code=4097 "connection to service named com.apple.rtcreportingd" UserInfo={NSDebugDescription=connection to service named com.apple.rtcreportingd}
2019-07-21 16:19:25.656140+0400 XCDYouTubeKit OS X Demo[22735:1518624] sendMessageWithDictionary: Failed to get remote object proxy: Error Domain=NSCocoaErrorDomain Code=4097 "connection to service named com.apple.rtcreportingd" UserInfo={NSDebugDescription=connection to service named com.apple.rtcreportingd}
2019-07-21 16:19:25.699362+0400 XCDYouTubeKit OS X Demo[22735:1517353] SecTaskLoadEntitlements failed error=22 cs_flags=20, pid=22735
2019-07-21 16:19:25.699484+0400 XCDYouTubeKit OS X Demo[22735:1517353] SecTaskCopyDebugDescription: XCDYouTubeKit OS[22735]/0#-1 LF=0
2019-07-21 16:19:25.727839+0400 XCDYouTubeKit OS X Demo[22735:1520117] sendMessageWithDictionary: Failed to get remote object proxy: Error Domain=NSCocoaErrorDomain Code=4097 "connection to service named com.apple.rtcreportingd" UserInfo={NSDebugDescription=connection to service named com.apple.rtcreportingd}
2019-07-21 16:19:25.740170+0400 XCDYouTubeKit OS X Demo[22735:1520107] Task <74B9A031-A03E-4A98-BD34-B8C927C7062B>.<6> load failed with error Error Domain=NSURLErrorDomain Code=-999 "cancelled" UserInfo={NSErrorFailingURLStringKey=https://r1---sn-q0-50il.googlevideo.com/videoplayback?expire=1563733163&ei=S1g0XY7sE6aAhAesu5_gBQ&ip=91.75.68.78&id=o-AHTlncOj2T7g7ZH7tAkmHVFItJniOZ418u9q2gJ1LWNg&itag=22&source=youtube&requiressl=yes&mm=31%2C29&mn=sn-q0-50il%2Csn-4wg7ln7k&ms=au%2Crdu&mv=m&mvi=0&pcm2cms=yes&pl=19&initcwndbps=456250&mime=video%2Fmp4&ratebypass=yes&dur=606.667&lmt=1563206954121497&mt=1563711488&fvip=1&c=WEB&txp=2316222&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cmime%2Cratebypass%2Cdur%2Clmt&sig=ALgxI2wwRQIhAP8Q4dNn_IaEzHcQ3Wn1KNUUbJkfxNwfU1BDo6zPo658AiBnOlM4Fn-vucRPByfHOAJUkWR_KIMmd-GoaGH9SgxZvw%3D%3D&lsparams=mm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpcm2cms%2Cpl%2Cinitcwndbps&lsig=AHylml4wRAIgXTRn7vGzcEXaY0aoRJdq_lK1bvO5lovXhFZghNYjqPUCIGP16IgD2eaElAAs7-OVsFAdJZAgCZXsnx3SfGU2bEXC, NSErrorFailingURLKey=https://r1---sn-q0-50il.googlevideo.com/videoplayback?expire=1563733163&ei=S1g0XY7sE6aAhAesu5_gBQ&ip=91.75.68.78&id=o-AHTlncOj2T7g7ZH7tAkmHVFItJniOZ418u9q2gJ1LWNg&itag=22&source=youtube&requiressl=yes&mm=31%2C29&mn=sn-q0-50il%2Csn-4wg7ln7k&ms=au%2Crdu&mv=m&mvi=0&pcm2cms=yes&pl=19&initcwndbps=456250&mime=video%2Fmp4&ratebypass=yes&dur=606.667&lmt=1563206954121497&mt=1563711488&fvip=1&c=WEB&txp=2316222&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cmime%2Cratebypass%2Cdur%2Clmt&sig=ALgxI2wwRQIhAP8Q4dNn_IaEzHcQ3Wn1KNUUbJkfxNwfU1BDo6zPo658AiBnOlM4Fn-vucRPByfHOAJUkWR_KIMmd-GoaGH9SgxZvw%3D%3D&lsparams=mm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpcm2cms%2Cpl%2Cinitcwndbps&lsig=AHylml4wRAIgXTRn7vGzcEXaY0aoRJdq_lK1bvO5lovXhFZghNYjqPUCIGP16IgD2eaElAAs7-OVsFAdJZAgCZXsnx3SfGU2bEXC, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask <74B9A031-A03E-4A98-BD34-B8C927C7062B>.<6>"
), _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <74B9A031-A03E-4A98-BD34-B8C927C7062B>.<6>, NSLocalizedDescription=cancelled} [-999]
2019-07-21 16:19:25.741036+0400 XCDYouTubeKit OS X Demo[22735:1520117] TIC Read Status [8:0x0]: 1:57
2019-07-21 16:19:25.740989+0400 XCDYouTubeKit OS X Demo[22735:1518701] Task <74B9A031-A03E-4A98-BD34-B8C927C7062B>.<6> finished with error - code: -999

@ryanrward
Copy link

hi @SoneeJohn. Yes, I can view it.

@ryanrward
Copy link

@SoneeJohn so, should i ignore the error message in xocde?

i am attempting to add custom player controls to the player, but i believe the error is affecting this.

@yukitoto
Copy link

yukitoto commented Oct 1, 2019

@SoneeJohn Thank you for your library.
Can you play video id "jrkSCn4GtNs"?
I use 2.8.1 and also tried with your sample project. However It doesn't play.

If I should comment at other place, please tell me.

@zabojad
Copy link

zabojad commented Jan 27, 2021

Hi there!
I'm having the same error message.
In debug mode, the video will still play but not in release mode (the player opens and dismiss right away...).
Did you guys solved this problem at your end or what?
The issue I've opened ==> #518

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

No branches or pull requests

5 participants