Closed ankit0812 closed 3 years ago
What version of the library are you running. Also, can you please provide the console output?
2020-11-05 15:40:20.684671+0530 XCDYouTubeKit iOS Demo[1565:5055727] Task <2902FF48-F3E8-45A1-A7B3-D5153FEFAC32>.<20> failed strict content length check - expected: 101432922, received: 235927, received (uncompressed): 0
2020-11-05 15:40:20.685437+0530 XCDYouTubeKit iOS Demo[1565:5057737] Task <2902FF48-F3E8-45A1-A7B3-D5153FEFAC32>.<20> finished with error [-1005] Error Domain=NSURLErrorDomain Code=-1005 "The network connection was lost." UserInfo={NSLocalizedDescription=The network connection was lost., NSErrorFailingURLStringKey=https://r8---sn-gwpa-25ud.googlevideo.com/videoplayback?expire=1604592618&ei=is-jX86hJ_aA9fwP9r-c0AE&ip=2405%3A201%3Aa405%3A8861%3Af56d%3A4648%3A6572%3A9c0b&id=o-AGzX1jvCGcsWtRyYy0VuZO7YPsQLBPK96JeFLLZpj_W6&itag=22&source=youtube&requiressl=yes&mh=k1&mm=31%2C29&mn=sn-gwpa-25ud%2Csn-qxa7snee&ms=au%2Crdu&mv=m&mvi=8&pl=39&pcm2=yes&initcwndbps=1541250&vprv=1&mime=video%2Fmp4&ratebypass=yes&dur=1180.943&lmt=1586968868956477&mt=1604570932&fvip=3&beids=9466586&c=WEB&txp=6211222&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cpcm2%2Cvprv%2Cmime%2Cratebypass%2Cdur%2Clmt&sig=AOq0QJ8wRAIgSR3EU0cZwmIvfNtd6JBxQ48z0mIOtnO8unX0aDtTp9gCIHsC51s0PTbzwVLl5ii8RRF8phYZGKlj-HC5EqervzmY&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRAIhAI1O4sth581W7RPnO2dhKLQvO-GbaADrQna30sZ1UKApAh97I9OjPfkQIfXCs-TrXOM9ykXyh0nnw9zVxorx5UBC, NSErrorFailingURLKey=https://r8---sn-gwpa-25ud.googlevideo.com/videoplayback?expire=1604592618&ei=is-jX86hJ_aA9fwP9r-c0AE&ip=2405%3A201%3Aa405%3A8861%3Af56d%3A4648%3A6572%3A9c0b&id=o-AGzX1jvCGcsWtRyYy0VuZO7YPsQLBPK96JeFLLZpj_W6&itag=22&source=youtube&requiressl=yes&mh=k1&mm=31%2C29&mn=sn-gwpa-25ud%2Csn-qxa7snee&ms=au%2Crdu&mv=m&mvi=8&pl=39&pcm2=yes&initcwndbps=1541250&vprv=1&mime=video%2Fmp4&ratebypass=yes&dur=1180.943&lmt=1586968868956477&mt=1604570932&fvip=3&beids=9466586&c=WEB&txp=6211222&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cpcm2%2Cvprv%2Cmime%2Cratebypass%2Cdur%2Clmt&sig=AOq0QJ8wRAIgSR3EU0cZwmIvfNtd6JBxQ48z0mIOtnO8unX0aDtTp9gCIHsC51s0PTbzwVLl5ii8RRF8phYZGKlj-HC5EqervzmY&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRAIhAI1O4sth581W7RPnO2dhKLQvO-GbaADrQna30sZ1UKApAh97I9OjPfkQIfXCs-TrXOM9ykXyh0nnw9zVxorx5UBC, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask <2902FF48-F3E8-45A1-A7B3-D5153FEFAC32>.<20>"
), _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <2902FF48-F3E8-45A1-A7B3-D5153FEFAC32>.<20>, NSUnderlyingError=0x600003ac4300 {Error Domain=kCFErrorDomainCFNetwork Code=-1005 "(null)" UserInfo={NSErrorPeerAddressKey=<CFData 0x6000011a3480 [0x7fff8002e4e0]>{length = 28, capacity = 28, bytes = 0x1c1e01bb000000002405020016131728 ... 0000001300000000}}}}
2020-11-05 15:40:22.131623+0530 XCDYouTubeKit iOS Demo[1565:5051952] Task <64EE924B-AA21-4B6D-9765-097948F8AB55>.<22> failed strict content length check - expected: 101196995, received: 0, received (uncompressed): 0
2020-11-05 15:40:22.132803+0530 XCDYouTubeKit iOS Demo[1565:5057737] Task <64EE924B-AA21-4B6D-9765-097948F8AB55>.<22> finished with error [-1005] Error Domain=NSURLErrorDomain Code=-1005 "The network connection was lost." UserInfo={NSLocalizedDescription=The network connection was lost., NSErrorFailingURLStringKey=https://r8---sn-gwpa-25ud.googlevideo.com/videoplayback?expire=1604592618&ei=is-jX86hJ_aA9fwP9r-c0AE&ip=2405%3A201%3Aa405%3A8861%3Af56d%3A4648%3A6572%3A9c0b&id=o-AGzX1jvCGcsWtRyYy0VuZO7YPsQLBPK96JeFLLZpj_W6&itag=22&source=youtube&requiressl=yes&mh=k1&mm=31%2C29&mn=sn-gwpa-25ud%2Csn-qxa7snee&ms=au%2Crdu&mv=m&mvi=8&pl=39&pcm2=yes&initcwndbps=1541250&vprv=1&mime=video%2Fmp4&ratebypass=yes&dur=1180.943&lmt=1586968868956477&mt=1604570932&fvip=3&beids=9466586&c=WEB&txp=6211222&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cpcm2%2Cvprv%2Cmime%2Cratebypass%2Cdur%2Clmt&sig=AOq0QJ8wRAIgSR3EU0cZwmIvfNtd6JBxQ48z0mIOtnO8unX0aDtTp9gCIHsC51s0PTbzwVLl5ii8RRF8phYZGKlj-HC5EqervzmY&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRAIhAI1O4sth581W7RPnO2dhKLQvO-GbaADrQna30sZ1UKApAh97I9OjPfkQIfXCs-TrXOM9ykXyh0nnw9zVxorx5UBC, NSErrorFailingURLKey=https://r8---sn-gwpa-25ud.googlevideo.com/videoplayback?expire=1604592618&ei=is-jX86hJ_aA9fwP9r-c0AE&ip=2405%3A201%3Aa405%3A8861%3Af56d%3A4648%3A6572%3A9c0b&id=o-AGzX1jvCGcsWtRyYy0VuZO7YPsQLBPK96JeFLLZpj_W6&itag=22&source=youtube&requiressl=yes&mh=k1&mm=31%2C29&mn=sn-gwpa-25ud%2Csn-qxa7snee&ms=au%2Crdu&mv=m&mvi=8&pl=39&pcm2=yes&initcwndbps=1541250&vprv=1&mime=video%2Fmp4&ratebypass=yes&dur=1180.943&lmt=1586968868956477&mt=1604570932&fvip=3&beids=9466586&c=WEB&txp=6211222&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cpcm2%2Cvprv%2Cmime%2Cratebypass%2Cdur%2Clmt&sig=AOq0QJ8wRAIgSR3EU0cZwmIvfNtd6JBxQ48z0mIOtnO8unX0aDtTp9gCIHsC51s0PTbzwVLl5ii8RRF8phYZGKlj-HC5EqervzmY&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRAIhAI1O4sth581W7RPnO2dhKLQvO-GbaADrQna30sZ1UKApAh97I9OjPfkQIfXCs-TrXOM9ykXyh0nnw9zVxorx5UBC, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask <64EE924B-AA21-4B6D-9765-097948F8AB55>.<22>"
), _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <64EE924B-AA21-4B6D-9765-097948F8AB55>.<22>, NSUnderlyingError=0x600003b8c570 {Error Domain=kCFErrorDomainCFNetwork Code=-1005 "(null)" UserInfo={NSErrorPeerAddressKey=<CFData 0x6000011b0180 [0x7fff8002e4e0]>{length = 28, capacity = 28, bytes = 0x1c1e01bb000000002405020016131728 ... 0000001300000000}}}}
2020-11-05 15:40:22.777489+0530 XCDYouTubeKit iOS Demo[1565:5057735] Task
v2.15.0 build 50
Other videos were working fine at the same time
Other videos were working fine at the same time
Please, always update to the latest version before reporting an issue. Your ID is playing fine on 2.15.0 https://github.com/0xced/XCDYouTubeKit/releases/tag/2.15.0
@someziggyman Using the same version mate. Not playing at my end. Can you give a video reference for this if it is playing at your end or 1-2 screenshots will also be welcome. Also please check my previous comments I have clearly mentioned version I am using v2.15.0 build 50
oops. seems I've posted to a wrong thread. Sorry. Wanted to write about the latest version here: https://github.com/0xced/XCDYouTubeKit/issues/484#issuecomment-723469894
However, your ID is playable as well. Running in objective-C, playing URL inside AVPlayer. Works like a charm. Might be device specific problem or I don't know.
Are you playing it in WebView (If yes I know that it plays on webviews but we need to play it in our app without the webview using the sdk). AVPlayer by default cannot play youtube links I think you must know this. Also attaching a video of the same issue on the latest sdk.
Are you playing it in WebView (If yes I know that it plays on webviews but we need to play it in our app without the webview using the sdk). AVPlayer by default cannot play youtube links I think you must know this. Also attaching a video of the same issue on the latest sdk.
I’m using AVPlayer class on MacOS. No webview. Using it exactly like it says in usage instructions. https://github.com/0xced/XCDYouTubeKit#ios-tvos-and-macos Getting the url for video stream and then feeding it to AVPlayer. And it just works. My only assumption is that AVPlayer on MacOS may just be a more “open” and powerful class, than the one on iOS. Don’t know really.
Most probably because of macOS. Not working on iOS currently.
This ID (HpkXAmGVaR8) is working for me on iOS on 2.15 using AVPlayer (not Webview).
However, AE2ZfzSG5d4 does NOT work for me.
I am using this library to play video in iOS device.Some video id like "US8Uu6ZjWzU" are not playing in this library giving error like "Video unavailable". I checked this video id is playing in browser. why it is giving such error ? Please help me with it.
I made some changes on the develop branch can you download that branch and try the demo app again and send me the logs?
You can download it here: https://codeload.github.com/0xced/XCDYouTubeKit/zip/develop
Thanks!
This video id now runs on the prod version as well as the above mentioned develop version. Possibly an issue at youtube's end 👍
We have tested this on the sample app as well (we always get loader near the seek bar). Similar cases where seen on few other videos as well kindly help.