jamy
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

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

/jamy/

    Package Sidebar

    Install

    npm i jamy

    Weekly Downloads

    5

    Version

    0.3.0

    License

    MIT

    Unpacked Size

    275 kB

    Total Files

    19

    Last publish

    Collaborators

    • tinyman