beta
cables is under heavy development.
There might be one or another bug, please let us know about it!
Ops.WebAudio.MediaPlayer

MediaPlayer
op id:6bf8a173-a9f9-48d8-b23a-76380dfbe4c5
Plays back audio files

summary (oneliner)

Plays an audio-file and allows you to seek / jump to a position. Audio files can be uploaded via drag’n’dropping to the cables-window. When upload is complete you can select it in the project-file-browser. Should also work with audio-files which are hosted somewhere else (untested).

doc

issues

youtube id

collections

related ops

Inputs

Volume (Number)

Playback-Volume, 1.0 = normal, 0.0 = silent


File (string Number)

The audio-file to play back, upload one by drag’n’dropping it to the window and then select if from the project-files or pick one from the library.


Play (Function)

Starts the audio-playback


Pause (Function)

Stops the audio-playback


Rewind (Function)

Sets the playhead to the beginning


Seek Position (Seconds) (Number)

Set this to the position in the audio file you want to jump to (in seconds). You need to call Jump To Seek Position to actually perform the jump afterwards.


Jump To Seek Position (Function)

Jumps / Seeks to the position Seek Position (Seconds)


Outputs

Audio Out (Object)

Connect this e.g. to a Ops.WebAudio.Output to hear the sound


Duration (Number)

The duration of the current audio file (in seconds)


MediaPlayer Play Pause Seek:

Shows how to play / pause / seek an audio file



Credits

  • Uses library: Tone.js (Webaudio Library)
  • Op author: tim

Caught a mistake or want to contribute to the documentation?


Edit this documentcancel save

Examples using MediaPlayer

Public Patches using MediaPlayer