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

MediaPlayer Op

MediaPlayer

This op is deprecated!

It will not receive any updates

Plays back audio files


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).


Edit Documentation

Full Name
  • Ops.Deprecated.WebAudio.MediaPlayer
Visibility
  • Core Op - Official cables op
Author


 

INPUT PORTS


Volume (Number)

Playback-Volume, 1.0 = normal, 0.0 = silent

File (Number:string )

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 (Trigger)

Starts the audio-playback

Pause (Trigger)

Stops the audio-playback

Rewind (Trigger)

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 (Trigger)

Jumps / Seeks to the position Seek Position (Seconds)

OUTPUT PORTS


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)


Usages of MediaPlayer

  • Examples
  • Public
  • My Patches
  • Ops

Changelog


Ops.WebAudio.MediaPlayer renamed to Ops.Deprecated.WebAudio.MediaPlayeruser avatarpandur - 2021-01-13