Welcome
Youtube Action Plugin
1.0.0.0
Get info to youtube videos
rafaxplayer & webultra
amsspecialist.com
Modules: 'socket','socket.http','socket.url','ltn12'
dlls : socket.dll,mime.dll
- Copy youtube folder into amsfolder/plugins/actions
- Extract Resources.rar in your proyect autoplay/scripts path.
youtube.GetVideoInfo
youtube.GetUrlImage
youtube.GetEmbeb
(table) youtube.GetVideoInfo ( | (string) ID ) |
Get info youtube video
(string) ID or url youtube video
(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.
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
(string) youtube.GetUrlImage ( | (string) ID, (string) Options ) |
Get thumbnails images youtube video
(string) ID or url youtube video
(string) Option image values :'default,'large'','1','2','3'.
(string) return url to thumnail image
strurltoimage=youtube.GetUrlImage('wd4fE5fk-fk','large');
(string) youtube.GetEmbeb ( | (string) ID, (number) Width, (number) Height, (number) Autoplay, (boolean) controls ) |
Get HTML youtube video
Note: defaults autoplay=0,width = '560',height = '315'
(string) ID or url youtube video
(number) Width size video
(number) Height size video
(number) Set Autoplay or not
Note: 0= not autoplay , 1= yes
(boolean) Set or not controls player
Value | Description |
true | set controls |
false | not display controls |
(string) html flash object with the parameters set
strhtml=youtube.GetEmbeb('wd4fE5fk-fk',400,200,1)
This File Was Generated With AMS ActionFile Editor