0xced / XCDYouTubeKit

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

XCDYouTubeVideoErrorDomain code -2 #400

Closed jag2011 closed 5 years ago

jag2011 commented 5 years ago

Hi, I'm having a problem with some video Ids

XCDYouTubeClient.default().getVideoWithIdentifier(youtubeId) { [unowned self] (video : XCDYouTubeVideo?, error) in {

}

using ID sCxURbI2WVE

results in:

[XCDYouTubeKit] JavaScript exception: TypeError: window.matchMedia is not a function. (In 'window.matchMedia("(max-width: 656px)")', 'window.matchMedia' is undefined)
[XCDYouTubeKit] JavaScript exception: TypeError: window.matchMedia is not a function. (In 'window.matchMedia("(max-width: 656px)")', 'window.matchMedia' is undefined)
[XCDYouTubeKit] No signature function in player script
XCDYouTubeKit] Video operation finished with error: The operation couldn’t be completed. (XCDYouTubeVideoErrorDomain error -2.)
Domain: XCDYouTubeVideoErrorDomain
Code:   -2
User Info: {
    NSURL = "https://www.youtube.com/get_video_info?el=detailpage&hl=de&ps=default&video_id=sCxURbI2WVE";
}
jag2011 commented 5 years ago

oops solved by update to 2.6