kicumkicum / stupid-player

Middlware for simple create player on node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add a seek() method

wzr1337 opened this issue · comments

Hi,

I want to seek to a certain position in the played file.

An API like:

player.seek(15000/*milliseconds*/)

would be great.

https://github.com/isaacs/fs-readstream-seek

seems to allow seeking in streams.

I tried to implement it in last, but without result. I had problem with stream API. Range was forbidden for my streams.
But I will try again if you want this feature 🙂

I need the feature to set an offset from outside ;)

How can I support? Is there a method to seek in a local file stream?