source

< html‎ | elements
Jump to: navigation, search

source

This article is Not Ready.



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


Compatibility

Do you think this data can be improved? You can ask to add by opening an issue or make a pull request.

Desktop

FeaturesChromeFirefoxInternet ExplorerOperaSafari
Basic support
?
Yes
?
Unknown
9.0
Yes
?
Yes
?
Yes
media attribute
?
Yes
?
Unknown
9.0
Yes
?
Yes
?
Yes

Mobile

FeaturesAndroidFirefox MobileIE MobileOpera MobileSafari Mobile
Basic support
?
Yes
1.0
Yes
?
Unknown
?
Unknown
?
Unknown
media attribute
?
Yes
15.0
Yes
?
Unknown
?
Unknown
?
Unknown

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


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]