Elive::Entity::Preload - Elluminate Preload instance class
This is the entity class for meeting preloads.
my $preloads = Elive::Entity::Preload->list( filter => 'mimeType=application/x-shockwave-flash', ); my $preload = Elive::Entity::Preload->retrieve($preload_id); my $type = $preload->type;
There are three possible types of preloads: media, plan and whiteboard.
# # upload from a file # my $preload1 = Elive::Entity::Preload->upload('mypreloads/intro.wbd'); # # upload in-memory data # my $preload2 = Elive::Entity::Preload->upload( { type => 'whiteboard', name => 'introduction.wbd', ownerId => 357147617360, data => $binary_data, }, );
Upload data from a client and create a preload. If a mimeType is not supplied, it will be guessed from the name extension, using MIME::Types.
mimeType
name
my $preload = Elive::Entity::Preload->retrieve($preload_id); my $binary_data = $preload->download;
Download preload data.
my $preload1 = Elive::Entity::Preload->import_from_server( { type => 'whiteboard', name => 'introduction.wbd', ownerId => 357147617360, fileName => $path_on_server }, );
Create a preload from a file that is already present on the server's file-system. If a mimeType is not supplied, it will be guessed from the name or fileName extension using MIME::Types.
fileName
my $preloads = Elive::Entity::Preload->list_meeting_preloads($meeting_id);
Implements the listMeetingPreloads method
The update method is not available for preloads.
$preload->ownerId('Dom1:freddy');
introduction.wbd
introduction
"string index out of range: -1"
To install Elive, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Elive
CPAN shell
perl -MCPAN -e shell install Elive
For more information on module installation, please visit the detailed CPAN module installation guide.