This page is Not Ready

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

currentSrc

Property of dom/HTMLMediaElementdom/HTMLMediaElement

Syntax

var result = element.currentSrc;
element.currentSrc = value;

Notes

Remarks

  • currentSrc returns an empty string if a media resource has not been specified.
  • In some browsers, currentSrc will return null if the browser hasn’t yet determined which of the sources (if any) it’s going to play.

Syntax

Standards information

See also

Related pages

  • mediamedia
  • audio
  • audio
  • video element
  • video object
  • srcsrc

Attributions