Sets or gets the cover image displayed in an audio player.


Setting the coverImage property changes the displayed image to the image found at the new coverImage value.

Getting the coverImage property returns the location of the cover image file.

The image file can either be from the Media Manager or an external file from any web location.

The following URL formats are supported:

  • Media Manager: wix:image://v1/<uri>/<filename>#originWidth=<width>&originHeight=<height>[&watermark=<watermark_manifest_string>]
  • Web URL: http(s)://<image url>


stringRead & Write

Was this helpful?

Get the cover image's location

Copy Code
1let coverImageSource = $w("#myAudioPlayer").coverImage;
2// "wix:image://v1/68d3...cad2.jpg/flowers.jpg#originWidth=1970&originHeight=112
Set the cover image to be an image from the Media Manager

Copy Code
1$w("#myAudioPlayer").coverImage = "wix:image://v1/68d3...cad2.jpg/flowers.jpg#originWidth=1970&originHeight=1120";
Set the cover image to be an image from the web

Copy Code
1$w("#myAudioPlayer").coverImage = "";