Skip to Content
The new glomex player is released! 🎉View upgrade guide

Class: GlomexMediaItemElement

Web component that allows to override title and poster of a given glomex content id. It can be placed inside the integration element. For integrating external media items, see ExternalMediaItemElement.

Tagname

glomex-media-item

Examples

This only works when no playlist-id is assigned to glomex-integration

<glomex-integration integration-id="REPLACE_WITH_INTEGRATION_ID" > <glomex-media-item id="REPLACE_WITH_MEDIA_OR_PLAYLIST_ID" ></glomex-media-item> <glomex-media-item id="ANOTHER_MEDIA_OR_PLAYLIST_ID" ></glomex-media-item> </glomex-integration>
<glomex-integration integration-id="REPLACE_WITH_INTEGRATION_ID" > <glomex-media-item id="REPLACE_WITH_MEDIA_OR_PLAYLIST_ID" title="REPLACE_WITH_TITLE_OVERRIDE" poster="REPLACE_WITH_POSTER_URL_OVERRIDE" ></glomex-media-item> </glomex-integration>

Extends

  • LitElement

Constructors

Constructor

new GlomexMediaItemElement(): GlomexMediaItemElement

Returns

GlomexMediaItemElement

Inherited from

LitElement.constructor

Properties

id

id: string = ''

Unique identifier of the media item.

Overrides

LitElement.id


title

title: string = ''

Overridden title of the media item.

Overrides

LitElement.title


poster?

optional poster: string

Overridden poster of the media item.

Last updated on