Using YouTube's Service

Using YouTube's Service

The Evo Slider plugin allows you to display videos from YouTube.

You can use the external option to load data from YouTube.

YouTube parameters:

Name Type Description
data String Set to "youtube" when you want to load content from YouTube.
source String Possible values are: "user", "playlist", or "search".
username String YouTube user id.
playlist_id String The Playlist id.
search_term String Search query.
title_length Number Set the number of characters in the title.
desc_length Number Set the number of characters in the text description.

Examples:

Retrieve all of a user's recent videos:

external: {
    data: "youtube",
    source: "user",
    username: "youtube_user_id"
    }                             
                

Retrieve playlist videos:

external: {
    data: "youtube",
    source: "playlist",
    playlist_id: "youtube_playlist_id"
    }                             
                

Retrieve videos based on the search term:

external: {
    data: "youtube",
    source: "search",
    search_term: "search_query"
    }