Code Monkey home page Code Monkey logo

Comments (3)

AlwardL24 avatar AlwardL24 commented on September 28, 2024

Sorry to hear that. Most of my testing has been with audio.
Have you tried with different formats? Also, could you send an example video ID which reproduces the issue?

from swiftyoutubeextractor.

Franknxtn avatar Franknxtn commented on September 28, 2024

Below are few videos i tried. but all streams are really reallys slow.

dBDkYofMUs4
69lO08ar-mI
b_l1IP_6psY

I use below code for URL extraction to no avail.

Task {
    let formats = try await extractor.formats(for: "dBDkYofMUs4")
            let mp4Formats      = formats.filter({$0.fileExtension == "mp4"})

                if let sdFormat = mp4Formats.first(where: {$0.qualityDescription == "480p"}){

print(sdFormat.url.absoluteString)
//load this url in AVPlayer.

                }

}



}

from swiftyoutubeextractor.

AlwardL24 avatar AlwardL24 commented on September 28, 2024

I think the issue is likely because the AVPlayer has to download the whole .mp4 file before it starts playing.

I haven't yet implemented HLS support (for .m3u8 files) but I will work on that. I think that should fix your issue as the video can be played back live, rather than having to download the whole thing first.

from swiftyoutubeextractor.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.