Index

(misc)

o2_play

o2_play(string $sound_file)

Plays an audio file.
The audio file parameter is the URL to the file to play.

Correct use to play a local file by path:
o2_play(o2_path($file, 1))

If parameter $sound_file is not passed or it is passed as blank (""), then default runtime "beep" sound file will be played.


Parameters:
  1. $sound_file
  2. URL to file audio to play