Friday, December 18, 2009

VideoResourceX

Table structure:
local vrTable = {
title = "Tile of Video",
path = "URL, Local Path, or code",
description = "Video Description",
thumbnail = "URL to image",
date = "11/22/2009 12:33:00 PM",
duration = ConvertTime("1:00:00"),
bitrate = 0,
resolution = "1920x1080",
genre = "Funny",
rating = "G",
index = 1;
}
VideoResourceX(vrTable);
All parameter's are optional and have a default value that will be supplied if any are missing. Mistyping the date will result in a error being logged but, if everything else is fine, it shouldn't cause the video to break.

Also I've added some short aliases for function names:
_l() = Log()

_vf() = VirtualFolder()
_dvf() = DynamicVirtualFolder()

_vr() = VideoResource()
_vrx() = VideoResourceX()
_ar() = AudioResource()
_ir() = ImageResource()

_ct() = ConvertTime()

_guc() = GetURLCached()
_gu() = GetURL()
_gux() = GetURLX()

No comments:

Post a Comment