Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Streaming playback? #80

Closed
ollym opened this issue Aug 25, 2014 · 2 comments
Closed

Streaming playback? #80

ollym opened this issue Aug 25, 2014 · 2 comments

Comments

@ollym
Copy link

@ollym ollym commented Aug 25, 2014

How will this work exactly? And what are your plans for implementing it?

@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Apr 8, 2015

Streaming is already supported. From the README:

stream = file.createReadStream([opts])

Create a readable stream
to the file. Pieces needed by the stream will be prioritized highly and fetched from the
swarm first.

You can pass opts to stream only a slice of a file.

{
  start: startByte,
  end: endByte
}

Both start and end are inclusive.

@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Apr 8, 2015

Streaming playback is implemented for VLC, Chromecast, Airplay, the html5 <video> tag, etc. by detecting seek events and responding with the correct file data. If those pieces of the torrent haven't been fetched from the network yet, then these pieces are highly prioritized.

@feross feross closed this Apr 8, 2015
@lock lock bot locked as resolved and limited conversation to collaborators May 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.