-
-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to stream video, audio working ok. #12
Comments
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 <#12 (comment)>, 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. |
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 <#12 (comment)>, 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. |
Hey Eric, |
Hello @bobbysoftware @ |
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.
The text was updated successfully, but these errors were encountered: