yassram / YoutubeVideoExtractor

A youtube video extractor from videoid (Swift 4)
12 stars 2 forks source link

iOS13 issue #1

Open KoaGiggs opened 5 years ago

KoaGiggs commented 5 years ago

Since I updated Xcode to version 11 Golden Master (GM) with iOS13 GM, I can't use your YouTube Extractor anymore. The issue is on this line:

let player = AVPlayer(url: URL(string: dic.values.first!)!) Error: Thread 7: Fatal error: Unexpectedly found nil while unwrapping an Optional value

Seems "dic" value is nil.

Do you know why?

Thanks

cristea2017 commented 4 years ago

this line " let strUrl = "http://www.youtube.com/get_video_info?video_id=\(youtubeId)&el=embedded&ps=default&eurl=&gl=US&hl=en" " return : reason=HTTP+is+not+supported.&status=fail&errorcode=180 - tested with Postman I have another solution for this , replace strlUrl with " http://youtube.com/get_video_info?video_id=FHCYHldJi_g&eurl=https://youtube.googleapis.com/v/FHCYHldJi_g " this works

anveshfactorly commented 4 years ago

Hi The above is also not working

cristea2017 commented 4 years ago

Hi The above is also not working

just use https://github.com/0xced/XCDYouTubeKit 100 % will work ;)

Pushpendracolourmoon commented 3 years ago

This solution is not working at all!

kidanh commented 3 years ago

Not working, Please, please, please update swift 5, Thank you,Thank you,Thank you,