source

< html‎ | elements
Jump to: navigation, search

source



Summary

Allows developer to specify multiple alternative media resources for media elements, such as video and audio. It does not represent anything on its own, and is used with src attribute to specify the URL.


Overview Table

DOM Interface HTMLElement

Needs Examples: This section should include examples.

Notes

Remarks

Note  If you change the media file using the src property on an audio or video object, you need to call the load method before calling the play method. If you change the src and call the play() method without loading first, it will continue to play the file specified by the source element.

Syntax

Standards information


Members

The source object has these types of members:

  • [#events Events]
  • [#methods Methods]
  • [#properties Properties]


Events

The source object has these events. {

Compatibility

Desktop

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support ? ? ? ? ?

Mobile

Feature Android BlackBerry Chrome for mobile Firefox Mobile (Gecko) IE Mobile Opera Mobile Opera Mini Safari Mobile
Basic support ? ? ? ? ? ? ? ?

See also

Related pages (MSDN)

  • audio
  • video

Attribution

This article contains content originally from external sources.

Portions of this content come from the Microsoft Developer Network: [Windows Internet Explorer API reference Article]