0xced / XCDYouTubeKit

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

XCDYouTubeVideoErrorDomain error -2 #468

Closed StevenKuo closed 4 years ago

StevenKuo commented 4 years ago

Could I know what did error mean?

[XCDYouTubeKit] Video operation finished with error: The operation couldn’t be completed. (XCDYouTubeVideoErrorDomain error -2.) Domain: XCDYouTubeVideoErrorDomain Code: -2 User Info: { }

gonzo-oin commented 4 years ago

This mean the URL you pass to XCDYouTubeKit is unavailable. Is your network restricted? Could you share the code that used XCDYouTubeKit and maybe the video URL that cause the issue?

SoneeJohn commented 4 years ago

Can you let me know which version of the library you're using and the video identifier?

StevenKuo commented 4 years ago

I can get URL by the others video identifier correctly, the error only happened by specific one.

XCDYouTubeKit (2.8.3) video identifier: cdqP6wI8TCc

SoneeJohn commented 4 years ago

@StevenKuo Thanks! I was able to reproduce this issue. I will look into it further

SoneeJohn commented 4 years ago

@StevenKuo The latest update should fix your issue, unfortunately, the video will have no audio. It appears YouTube is only serving itags that contain video only and no audio.