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
Attribute
id - The glomex media ID or playlist ID to load.
Attribute
environment - The environment to use for the provider request.
Attribute
poster - URL to override the poster image of the media item.
Attribute
title - Override the title of the 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><glomex-integration
integration-id="REPLACE_WITH_INTEGRATION_ID"
>
<glomex-media-item
id="REPLACE_WITH_MEDIA_OR_PLAYLIST_ID"
environment="stage"
></glomex-media-item>
</glomex-integration>Extends
Constructors
Constructor
new GlomexMediaItemElement():
GlomexMediaItemElement
Returns
GlomexMediaItemElement
Inherited from
MediaItemElement.constructor
Properties
id
id:
string
The content ID used by the provider to look up the media item. For glomex, this can be a media ID or a playlist ID. For Joyn, this is a Joyn media ID.
Attribute
id
Inherited from
poster
poster:
string=''
Overridden poster of the media item.
Attribute
poster
environment?
optionalenvironment:"stage"|"prod"='prod'
The environment to use for the provider.
Attribute
environment
Default Value
'prod'