Categories

.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.0

    options   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"
    		});
    });
    
    
  • provider

    version added: 6.15.0

    Specifies the provider whose video player will be used.

    Default: youtube

  • id

    version added: 6.15.0

    A reference to the embedded video that is liked to be shown.

    Default: UGhd7eZfrDA

  • width

    version added: 6.15.0

    Defines the width of the embedded video player. Values: 'large', 'medium', 'small'

    Default: 560

  • height

    version added: 6.15.0

    Defines the height of the embedded video player. Values: 'large', 'medium', 'small'

    Default: 315

  • destroy

    • .externatcontentGadgetExternalvideo('destroy')

      version added: 6.15.0

    This method removes the container on which the Google-Plus button has been appended to.