Comments (5)
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.
hello, this has been already asked ;)
if u dont like torrentstreamserever you can make your own with setInterestedBytes(int)
in this lib ;)
from torrentstream-android.
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.
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.
Hey @hugorosario, Can you please post the code?
from torrentstream-android.
Related Issues (20)
- Download speed should be int HOT 1
- Question: Does it Seed as well as download? HOT 1
- bufferProgress does not finish HOT 2
- Resume and Pause function . HOT 1
- totrent streaming stops and further no video is streaming occurs HOT 6
- Error calling alert listener HOT 5
- Access to internal TorrentSessionManager HOT 2
- Doesn't work on Android 11 HOT 8
- Sample with working seekbar HOT 6
- How to get buffer progress when setInterestedBytes(long bytes) is used? HOT 1
- Stream via exo player HOT 3
- Need help regarding setInterestedBytes HOT 3
- some way to play video without download ? HOT 1
- Stream while downloading HOT 4
- How to get interested pieces first on seeking video player forward HOT 1
- ava.lang.UnsatisfiedLinkError: No implementation found for void com.frostwire.jlibtorrent.swig.libtorrent_jni.swig_module_init() HOT 1
- Please upgrade the library to jlibtorrent 1.2.16.0 HOT 3
- Progress stop in xx% and onStreamReady never come with some torrents HOT 3
- explore the files inside the torrent before downloading? HOT 6
- Seek to a particular position HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from torrentstream-android.