Skip to main content
Version: V10

Collage

Before you start

Follow the instructions mentioned in the article to consume the VIDIZMO Featured Media Widget How to use VIDIZMO Widgets

The following code will display the Featured Media Widget.

Note: Make sure data-widget is set to ‘true’ as this applies the VIDIZMO default styling to the widget.

VIDIZMO widgets have multiple events that are triggered on the various status and lifecycle changes. Following code examples explain how to utilize event listeners to subscribe to these events. 

PropertyTypeDefaultRequiredDescription
search-criteriaMashupSearchCriteria No 
keywordstring No 
order-byMashupOrderBy No 
sort-typeSortType No 
page-sizenumber No 
page-indexnumber No 
is-featuredboolean No 
is-globalboolean No 
show-on-channel-libraryboolean No 
statusMashupStatus No 

All the available input properties can be found in the following article: Input properties available for widgets

There are no methods for this widget.

MethodParamsReturn TypeDescription
----

EventDataScenario
on-mashups-loading

mashupSearchCriteria:MashupSearchCriteria

 

When search criteria are changed and the call is not yet sent to the server.
on-mashups-loaded

mashupInfo:MashupInfo

 

Undefined is raised in case no mashups are returned from the server.
on-mashups-loading-failed

exception

 

When search call has failed.
on-slide-changednumberThe latest slide number will be returned.
on-play{ t: number, mashupInfo:MashupInfo}This method will return time from where a user wants to playback and mashup the object that needs to be played.

Sample Code

Next Steps

You can playback the content by simply clicking on the content within the Media Library Gallery Widget. Upon clicking the content, an event "onPlay()" would be raised and listened to.

You can learn more about this in the following articles:

How to playback an audio from a widget

How to playback video from a widget