This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The artist property of the MediaMetaData interface returns or sets the name of the artist, group, creator, etc., of the media to be played.


var artist = mediaMetadata.artist
mediaMetadata.artist = artist


A String containing the name of the artist.


Specification Status Comment
Media Session Standard
The definition of 'artist' in that specification.
Draft Initial definition.

Browser Compatibility

Update compatibility data on GitHub
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
Chrome No support NoEdge ? Firefox Full support 71IE ? Opera No support NoSafari ? WebView Android No support NoChrome Android Full support 57Firefox Android ? Opera Android No support NoSafari iOS ? Samsung Internet Android Full support 7.0


Full support Ā 
Full support
No support Ā 
No support
Compatibility unknown Ā 
Compatibility unknown
Experimental. Expect behavior to change in the future.
Experimental. Expect behavior to change in the future.