// the kaltura deletion must happen before the OVAL database deletion for owner check to work if ($media->userOwnsMedia($videoID, $userID)) { // TODO: this was commented out so that OVAL deletions becomes "soft delete" // implement more comprehensive soft deletion later, where deleted videos are // marked as deleted within OVAL, and get reassigned to the system-admin group. // // The system admin group will then have a "hard delete" command in video // management. This arrangement allow departments who administer their own // OVAL instance to do their own video management. // // deleteVideoOnKaltura($videoID); } ?> <script> alert("before the addMedia call!"); </script> <?php //To implement this method to make the embed method to work. $media->addMedia($videoID, $userID, $title, $description, '180', $point1, $point2, $point3); $media->close(); ?>