Youtube Singleton
The YouTube.get method will return you a object that can be directly passed to a MAF.media.PlaylistEntry Class
Youtube()
Example
Use this to load images into your styling:
styles: {
transformOrigin: '50% 50%',
backgroundRepeat: 'no-repeat',
backgroundImage: widget.getPath( 'Images/background.jpg' )
}Methods
get(id, callback, scope)
This will fetch info about a youtube video.
Parameters:
Name Type Argument Description id String Youtube video id or youtube url.
callback function The method that will be triggered when the info about the video is available.
scope Object optional Define the scope if you want the callback to be run in a specific scope.
regionQueryString()