Open bobbysoftware opened 1 year ago
Can you give me 1-2 example youtube videos where you experience this behavior?
Hi Alex,
Thanks for replying. These are shorts where no video plays, audio works. Id: SGM2epABErg, Ed8QtV8aP84. This video doesn't play at all. Id: e-B9nwgxSOA.
let video = YouTube(videoID: "Ed8QtV8aP84") let stream = try await video.streams .filter { $0.isProgressive && $0.subtype == "mp4" } .highestResolutionStream() let streamURL = stream?.url let playerItem = AVPlayerItem(url: streamURL!) player = AVPlayer(playerItem: playerItem)
Best, Bobby
On Jul 23, 2023, at 2:48 PM, Alexander Eichhorn @.***> wrote:
Can you give me 1-2 example youtube videos where you experience this behavior?
— Reply to this email directly, view it on GitHub https://github.com/alexeichhorn/YouTubeKit/issues/12#issuecomment-1646967485, or unsubscribe https://github.com/notifications/unsubscribe-auth/AANINV7RGZ3ESXPY2E2ISNTXRWLZPANCNFSM6AAAAAA2R3235U. You are receiving this because you authored the thread.
Both of the videos work for me. I just copied both stream urls to Safari and it played flawlessly. Which country are you trying it from? Can be a factor sometimes
United States, California.
On Jul 25, 2023, at 2:47 PM, Alexander Eichhorn @.***> wrote:
Both of the videos work for me. I just copied both stream urls to Safari and it played flawlessly. Which country are you trying it from? Can be a factor sometimes
— Reply to this email directly, view it on GitHub https://github.com/alexeichhorn/YouTubeKit/issues/12#issuecomment-1650606063, or unsubscribe https://github.com/notifications/unsubscribe-auth/AANINV3B2BROTSDDLQYCASLXSA5HZANCNFSM6AAAAAA2R3235U. You are receiving this because you authored the thread.
The URL I get for videoID: "Ed8QtV8aP84" works in Safari, but in the player audio only. This URL I get for videoID: "SGM2epABErg" doesn't work in Safari, but in the player audio only.
Hey Eric, I think the error was mine. Looks like you can't stream YouTube URL's in AVPlayer. Thanks for your time, Bobby
Hello @bobbysoftware @\ Hope you are doing well. i faced the same issue, can you help me to fix this issue? thanks in advanced.
Same issue, my case is worse than not having access to video
Hi, I'm unable to stream video, the audio is working fine. I've listed the errors below. [Extraction] applying descrambler [Extraction] finding initial function name [Extraction] Failed to decode object from given start point: The data couldn’t be read because it isn’t in the correct format. pattern (ytplayer.config\s=\s) failed: The operation couldn’t be completed. (YouTubeKit.YouTubeKitError error 1.) signature found, skip decipher
The code fails on line 67 and the error is being thrown on line 69. I'm using the 0.1.8 release. The audio plays but no video. I'm using SwiftUI Xcode 14.3.1, iOS 16.5.1 (c). Mac Mini M1.
Any help would be appreciated. Thanks.