Available Variables#

The following methods are available to call in your Twig templates:

craft.videoPicker.getAllSources()#

Returns a collection of Source objects.

craft.videoPicker.getAllEnabledSources()#

Returns a collection of enabled Source objects.

craft.videoPicker.getAllConfiguredSources()#

Returns a collection of configured Source objects.

craft.videoPicker.getSourceById(id)#

Returns a Source object by its ID.

craft.videoPicker.getSourceByHandle(handle)#

Returns a Source object by its handle.

craft.videoPicker.getVideoByUrl(videoUrl, clearCache = false)#

Returns a Video object for the provided URL. You can also opt to fetch live data with clearCache = true, but this will impact performance.

Previous ← YouTube Next Rendering Videos →