Properties |
|
|
|
|
Property Name |
|
Return Data Type |
Description |
Example Syntax |
MediaLibrary |
|
Lua Table [Number,Media Object] |
Returns a table of all the Media Objects contained in the mediaManager in no particular order indexed by increasing integer |
HippoNet.LocalHost.MediaManager.MediaLibrary |
MediaMap |
|
Lua Table [Number,Media Object] |
Returns a table of all the Media Objects in the MediaMap indexed by their MediaMap slot index, this value can be read or set |
HippoNet.LocalHost.MediaManager.MediaMap |
Path |
|
String |
Returns the Media Manager path for the selected media |
HippoNet.LocalHost.MediaManager.MediaMap[116].Path |
Name |
|
String |
Returns the name of the selected media |
HippoNet.LocalHost.MediaManager.MediaMap[116].Name |
Functions |
|
|
|
|
Function Name |
Parameters |
Return Data Type |
Description |
Example Syntax |
SetMediaMap |
(Lua Table [Number,Media Object] MediaMap,Boolean ClearExisting(optional)) |
Boolean |
Attempts to place the medias in into the mediamap indexes contained in . If is set to True it clears the existing MediaMap first. Returns True if the action succeeded or False if it failed |
HippoNet.LocalHost.MediaManager:SetMediaMap(HippoNet.LocalHost.MediaManager.MediaLibrary, true) |
SetMediaMapIndex |
(Number MapIndex,Media Object(or Nil) Media) |
Boolean |
Attempts to place MediaObject into the mediamap at position . If is Nil then the slot at position is cleared. Returns True on success or False on failiure |
HippoNet.LocalHost.MediaManager:SetMediaMapIndex(50, HippoNet.LocalHost.MediaManager.MediaLibrary[10]) |
SetMediaMapIndex |
(Number MapBank,Number MapClip,Media Object(or Nil) Media) |
Boolean |
Attempts to place MediaObject into the mediamap at bank Clip . If is Nil then bank Clip is cleared. Returns True on success or False on failure |
HippoNet.LocalHost.MediaManager:SetMediaMapIndex(5, 10, HippoNet.LocalHost.MediaManager.MediaLibrary[20]) |
UploadSingleFile |
(FilePathSource String, FilePathDestination String) |
Boolean |
The FilePathSource will be the original piece of media and the FilePathDestination is the folder structure MediaManager will use to store the encoded media. |
HippoNet.LocalHost.MediaManager:UploadSingleFile('C:\\Media.Mov', 'MacroManagerUploadedMedia/SingleFile/') |
UploadFolder |
(FilePathSource String, FilePathDesitnation String |
Boolean |
The FilePathSource will be the path to the parent folder and the FilePathDestination is the folder structure MediaManager will use to store the encoded media |
HippoNet.LocalHost.MediaManager:UploadFolder('C:\\MediaFolders\\Folder', 'MacroManagerUploadedFolders') |
GetAllStrataFolders |
|
Lua Table [Number, Folder Name] |
Returns all mapped potential Strata paths |
print(HippoNet.LocalHost.MediaManager:GetAllStrataFolders)) |
AddNewStrataFolder |
FilePathSource String |
|
Creates a new Strata mapping to the input String path |
HippoNet.LocalHost.MediaManager:AddNewStrataFolder("D:/MediaManager2/test") |
GetMainStrataFolder |
|
Lua Table [Number, Folder Name] |
Returns the currently used strata path |
print(HippoNet.LocalHost.MediaManager:GetMainStrataFolder()) |
RemapMediaPath |
|
|
Sets the currently active Strata Path |
HippoNet.LocalHost.MediaManager:RemapMediaPath(mm:GetAllStrataFolders()[2].ID) |
SetMediaPath |
FolderPathSource String |
|
Remap the current Strata path to specified folder path |
HippoNet.LocalHost.MediaManager:SetMediaPath('C:/ProgramData/GreenHippo/MediaV4') |
Post your comment on this topic.