se-bastiaan / TorrentStream-Android

A torrent streamer library for Android based on libtorrent4j
Other
343 stars 108 forks source link

Video always seek forward when stream. #22

Closed Kuoyhout closed 8 years ago

Kuoyhout commented 8 years ago

The buffer progress in onStreamProgress method always jump from 40-60 to 100 and then start playing, after playing for a little while the video will seek forward. Can you tell me why? And how to fix it?

se-bastiaan commented 8 years ago

The video will seek forward? What do you mean exactly? The video player you're using is seeking forward?

Kuoyhout commented 8 years ago

I try to stream a torrent which has a video about 23 minutes long. When onStreamReady method called I played it with my video player, then after about 30 or 40 seconds or a bit longer, the video suddenly jump to about 20 minutes.

I've also try to use intent to let the official video player app play, just like the sample, but after it play for a bit the app suddenly close.

se-bastiaan commented 8 years ago

That doesn't really look like something that is TorrentStream's fault, it seems your video player doesn't know how to handle incomplete files.

Try using VLC, it worked really well in the past for me. The sample application just uses a video intent, which doesn't mean it'll use the 'official video player app'. It uses the one you choose, and in my case that is VLC or MX.