Search.../

poster

Sets or gets the image shown in the video player before the video is played.

Description

Setting the poster property changes the displayed poster to the poster found at the new poster value.

Getting the poster property returns the location of the current poster media file.

The media file is one of the following:

  • An image from the Media Manager. URL Format: wix:image://v1/<image_uri>/<filename>#originWidth=<width>&originHeight=<height>
  • An external image URL. URL Format: http(s)://site.com/image-file.jpg

Type:

stringRead & Write

Was this helpful?

Get the current video's poster

Copy Code
1let videoPoster = $w("#myVideoPlayer").poster;
2// "wix:image://v1/11062b_7124ff06fc5649f5f4846ff000.jpg/_.jpg#originWidth=1920&originHeight=1080"
Set the current video's poster to an image from the Media Manager

Copy Code
1$w("#myVideoPlayer").poster = "wix:image: //v1/11062b_7124ff06fc56495f4846ff000.jpg/_.jpg#originWidth=1920&originHeight=1080";