Giter Site home page Giter Site logo

Comments (5)

vonclutch avatar vonclutch commented on September 15, 2024 2

Just check the code everything is there :)

Torrent.java#setInterestedBytes(long bytes)

Does this support seeking through the video?
No, and yes. Opening the video in a normal video player won't allow you to seek. This will need some more work and you'll have to decide what you think is the best solution. TorrentStream allows you to 'seek' by using setInterestedBytes(int) on the Torrent object. This will calculate the pieces that are needed for that certain byte in the video file. This is how TorrentStreamServer-Android works. That library turns the video file into a 'real' HTTP stream that may work better due to the way partial content is handled using the TorrentInputStream.

from torrentstream-android.

vonclutch avatar vonclutch commented on September 15, 2024

hello, this has been already asked ;)

#39

if u dont like torrentstreamserever you can make your own with setInterestedBytes(int) in this lib ;)

from torrentstream-android.

romreviewer avatar romreviewer commented on September 15, 2024

Thank You for your reply i found out that using torrentstreamserver this can be done but i want to use this one can you tell me how to Call setInterestedBytes() and what has to be called in that function

from torrentstream-android.

hugorosario avatar hugorosario commented on September 15, 2024

I am using ExoPlayer in a project that is able to resume playback from a saved position and I extended my own DataSource that wraps the TorrentInputStream.
When ExoPlayer calls the open method on my DataSource, I call setInterestedBytes on the torrent.
The rest of the code is just the basic InputStream reading stuff.

from torrentstream-android.

maxakash avatar maxakash commented on September 15, 2024

Hey @hugorosario, Can you please post the code?

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.