.externalcontentGadgetExternalvideo()
Categories: UI
.externalcontentGadgetExternalvideo( [ options ] )
Subclass: de_epages
Inherit: (Subclass: de_epages) .widget()
Plugin: de_epages.externalcontent.gadget.externalvideo
Description: Embed a video player with video from an extern provider.
-
.externalcontentGadgetExternalvideo( [ options ] )
version added: 6.15.0options A map of additional options to pass to the method.
The Widget inserts a video player from YouTube, MyVideo, Dailymotion, vimeo, wideo or metacafe including a video id into the target element on which the widget is executed on.
-
The Widget is executed on a pageelement and is called with passing optional parameters. In this example a youtube video player with size 320:180 is implemented and contains a video from ePages.
Code:
jQuery.ready({ plugin: [ 'de_epages.externalcontent.gadget.externalvideo' ], DOM: true }, function($){ var widget = de_epages('<div>').externalcontentGadgetExternalvideo({ provider : "youtube", id : "UGhd7eZfrDA", width : 320, height: 180 }); });
-
The Widget is executed on a pageelement and is called with passing optional parameters. In this example a metacafe video player with size 560:315 (default) is implemented and contains a user-defined video.
Code:
jQuery.ready({ plugin: [ 'de_epages.externalcontent.gadget.externalvideo' ], DOM: true }, function($){ var widget = de_epages('<div>').externalcontentGadgetExternalvideo({ provider : "metacafe", id : ""yt-2B1QxOmbMZ0/alf_tries_to_eat_the_cat" }); });
-
destroy
-
.externatcontentGadgetExternalvideo('destroy')
version added: 6.15.0
This method removes the container on which the Google-Plus button has been appended to.
-