Audio"

From Documentation
Line 9: Line 9:
 
= Employment/Purpose =
 
= Employment/Purpose =
 
An <tt>audio</tt> component is used to play the audio at the browser. Like <tt>image</tt>, you could use the <tt>src</tt> property to specify an URL of an audio resource, or the <tt>setContent</tt> method to specify a dynamically generated audio.
 
An <tt>audio</tt> component is used to play the audio at the browser. Like <tt>image</tt>, you could use the <tt>src</tt> property to specify an URL of an audio resource, or the <tt>setContent</tt> method to specify a dynamically generated audio.
 +
Note: <tt>setContent</tt> method doesn't support in Chrome.
  
 
Depending on the browser and the <tt>audio</tt> plugin, developers might be able to control the play of an audio by the <tt>play</tt>, <tt>stop</tt> and <tt>pause</tt> methods. Currently, Internet Explorer with Media Player is capable of such controls.
 
Depending on the browser and the <tt>audio</tt> plugin, developers might be able to control the play of an audio by the <tt>play</tt>, <tt>stop</tt> and <tt>pause</tt> methods. Currently, Internet Explorer with Media Player is capable of such controls.

Revision as of 09:34, 22 October 2013

Audio

Employment/Purpose

An audio component is used to play the audio at the browser. Like image, you could use the src property to specify an URL of an audio resource, or the setContent method to specify a dynamically generated audio. Note: setContent method doesn't support in Chrome.

Depending on the browser and the audio plugin, developers might be able to control the play of an audio by the play, stop and pause methods. Currently, Internet Explorer with Media Player is capable of such controls.

Example

ZKComRef Audio Example.png

 <audio id="audio" src="music.wav" controls="true"></audio>

Supported Events

Name
Event Type
None None

Supported Children

*NONE

Use Cases

Version Description Example Location
     

Version History

Last Update : 2013/10/22


Version Date Content
     



Last Update : 2013/10/22

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.