Get Audio Object

Review the source code of this example to see how to gain access to the JS audio object of a currently playing audio. See console printout.

  • getAudioObject is best used in the context of the callback vh_audioStarted (as it is done here)
  • If this function is called when no audio is playing - 'null' is returned.
  • Object should be considered 'read only' - any changes can impact playback
  • Object is only valid during playback and may become invalid immediately after.
 

© 2003 Oddcast Inc. All Right Reserved