Giter Site home page Giter Site logo

Add progress function about youtube-dl-php HOT 5 CLOSED

norkunas avatar norkunas commented on May 30, 2024
Add progress function

from youtube-dl-php.

Comments (5)

norkunas avatar norkunas commented on May 30, 2024 1

Maybe, but currently I don't have much time to implement that.

from youtube-dl-php.

pionut196 avatar pionut196 commented on May 30, 2024

Thank you! I will wait.
Some advices will be welcome!

from youtube-dl-php.

norkunas avatar norkunas commented on May 30, 2024

It is possible to debug the process stream providing a debug callback like:

$yt->debug(function ($type, $buffer) {
    if (\Symfony\Component\Process\Process::OUT === $type) {
       // read $buffer
    }
});

So you could read the stream output and determine the progress by yourself.

Or you could implement progress($downloadSize, $eta, ...) method with private $progress property and make a PR for it. But keep in mind that you need to provide the default callback to mustRun method #L121 and in that callback call the progress or debug if they are defined.

from youtube-dl-php.

norkunas avatar norkunas commented on May 30, 2024

Related to #35

from youtube-dl-php.

norkunas avatar norkunas commented on May 30, 2024

Handled in 30645d4

from youtube-dl-php.

Related Issues (20)

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.