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 Full support 57Edge No support NoFirefox Full support 71IE No support NoOpera Full support YesSafari ? 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.