Giter Site home page Giter Site logo

Comments (5)

se-bastiaan avatar se-bastiaan commented on August 11, 2024

Those are not errors. Try to provide as much information as you can, otherwise I can't help you.

from torrentstream-android.

richjhart avatar richjhart commented on August 11, 2024

I'm just trying to start a simple torrent:

        File destination = FileUtil.downloadFolder;
        TorrentOptions options = new TorrentOptions.Builder()
                .saveLocation(destination)
                .removeFilesAfterStop(false)
                .build();
        TorrentStream stream = TorrentStream.init(options);
        stream.addListener(this);
        stream.startStream("file:///mnt/internal_sd/Movies/UHDDevice/test.torrent");

And I just have a debug statement in each of the listener events, such as:

    @Override
    public void onStreamPrepared(Torrent torrent) {
        L.d(L.DEBUG_TORRENT, "stream prepared");
    }

and

    @Override
    public void onStreamStarted(Torrent torrent) {
        L.d(L.DEBUG_TORRENT, "stream started");
    }

The torrent is just one I found online - it works elsewhere, and within the app it creates an empty file at the expected location, but it stays at 0 bytes and I never hit any of the events other than onStreamPrepared().

I have an internet connection, and it did actually start downloading in another torrent library (but that had other issues, and doesn't appear to be being maintained).

I'm running Android 4.4.2.

from torrentstream-android.

se-bastiaan avatar se-bastiaan commented on August 11, 2024

You're not getting any further because the download is not started 😁
Try calling torrent.startDownload(); in onStreamPrepared. Like in the sample.

from torrentstream-android.

richjhart avatar richjhart commented on August 11, 2024

Ah - in that case I would suggest the readme needs updating. It says you only need to call startStream(), and that a listener is optional.

from torrentstream-android.

se-bastiaan avatar se-bastiaan commented on August 11, 2024

Mmm, you have a valid point. It might be better to change the behaviour though and add a configuration option.

from torrentstream-android.

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.