Youtube Action Plugin Help File

Youtube Action Plugin Help File

Plugin Name:

Youtube Action Plugin

Current Version:

1.0.0.0

Description:

Get info to youtube videos

Author:

rafaxplayer & webultra

Web:

amsspecialist.com

Requirements:

Modules: 'socket','socket.http','socket.url','ltn12'
dlls : socket.dll,mime.dll

Install Notes:

- Copy youtube folder into amsfolder/plugins/actions

- Extract Resources.rar in your proyect autoplay/scripts path.


Table of Contents

youtube.GetVideoInfo
youtube.GetUrlImage
youtube.GetEmbeb

youtube.GetVideoInfo


(table) youtube.GetVideoInfo ( 

(string) ID )

Description

Get info youtube video

Parameters

ID

(string) ID or url youtube video

Returns

(table) Table with information about the video:
Returns values:
(string)title.
(string)category.
(string)published.
(string)Author.
(string)updated.
(string)keywords.
(string)description.
(string)url.
(string)id.
(table)comments.


Example

strIdUrl="ID OR URL YOUTUBE VIDEO"
txt="";
if strIdUrl ~= "" then
local t = youtube.GetVideoInfo(strIdUrl);
Debug.ShowWindow(true);
if t then
    for i,v in pairs(t) do
        if type(v)~='table' then

            Debug.Print(i.." : "..v.."\r\n");
        end
            
    end
    if t['comments'] then
        for x,n in pairs(t['comments'])do
                Debug.Print("comment:"..x.." : "..n.."\r\n");
        end
    end                
end



youtube.GetUrlImage


(string) youtube.GetUrlImage ( 

(string) ID,

(string) Options )

Description

Get thumbnails images youtube video

Parameters

ID

(string) ID or url youtube video

Options

(string) Option image values :'default,'large'','1','2','3'.

Returns

(string) return url to thumnail image


Example

strurltoimage=youtube.GetUrlImage('wd4fE5fk-fk','large');



youtube.GetEmbeb


(string) youtube.GetEmbeb ( 

(string) ID,

(number) Width,

(number) Height,

(number) Autoplay,

(boolean) controls )

Description

Get HTML youtube video

Note: defaults autoplay=0,width = '560',height = '315'

Parameters

ID

(string) ID or url youtube video

Width

(number) Width size video

Height

(number) Height size video

Autoplay

(number) Set Autoplay or not

Note: 0= not autoplay , 1= yes

controls

(boolean) Set or not controls player

Value

Description

true

set controls

false

not display controls

Returns

(string) html flash object with the parameters set


Example

strhtml=youtube.GetEmbeb('wd4fE5fk-fk',400,200,1)





This File Was Generated With AMS ActionFile Editor