0.3.0 • Published 5 years ago

jamy v0.3.0

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

Jamy

Greenkeeper badge Build Status codecov Dependency Status devDependencies contributions welcome Code Climate npm version

Jamy is a streaming Audio player for Node.Js aiming to support MSE compatible sources

Class: Jamy

playbackOptions: PlaybackOptions , Playback options for the transcoder

seekable: boolean , True if the stream is seekable

stream: Stream.PassThrough , The output stream

currentTime: number , The current time of the presentation, in seconds

playing: boolean , True if Jamy is playing something

Jamy.play(infos)

Plays a media

Parameters

infos: MediaInfos, Describes the media source

Jamy.stop()

Stops the playback and kill transcoder

Jamy.resume()

Resumes the playback

Jamy.pause()

Pauses the playback

Jamy.seek(time)

Seeks the given time in seconds If the media is not seekable, does nothing but emit and error

Parameters

time: number, Timecode in seconds. If negative, timecode will be substracted from the end