NAME
Elive::StandardV2::Multimedia - Multimedia entity class
METHODS
insert
Uploads content and creates a new multimedia resource.
# get the binary data from somewhere
open (my $rec_fh, '<', $multimedia_path)
or die "unable to open $multimedia_path: $!";
my $content = do {local $/ = undef; <$rec_fh>};
die "no multimedia data: $multimedia_path"
unless ($content);
my $multimedia = Elive::StandardV2::Multimedia->insert(
{
filename => 'demo.wav',
creatorId => 'bob',
content => $content,
},
);
list
my $session_presentations = Elive::StandardV2::Presentation->list(
filter => {sessionId => $my_session->id}
);
Lists multimedia. You will need to provide a filter that contains at least one of: creatorId
, presentationId
, description
or multimediaId
.