A simple class for interacting with the Mediasite API. Download

Basic Setup

// Include the class
require 'Mediasite.class.php';

// Settings
$server = 'https://SERVER.mediasite.com/Mediasite';
$apikey = 'apikey_string';
$username = 'username';
$password = 'password';

// Initialize the class
$ms = new Mediasite($server, $apikey, $username, $password);

Sample Requests

Create a Presentation and Upload a Video To It

// Create Presentation
$user = USER_TO_CREATE_THE_PRESENTATION_FOR;
$presentation = $ms->createPresentation('Title', $user);

// Upload Video to Presentation
$video_path = PATH_TO_THE_VIDEO;
$upload = $ms->uploadVideo($presentation['Id'], $video_path);

// Show the URL of the new presentation
echo $upload;

View/Fork on Github

A simple class for interacting with the 3play Media API. Download

Basic Setup

// Include the Class
require_once 'ThreePlay.class.php';

// Set the API key provided by 3play
$apikey = 'xxxxxxxxxxxxxx';

// Initialize a new instance of the Class
$threeplay = new ThreePlay($apikey);

Sample Requests

Check the status of a transcript

$file_id = 0000000
$threeplay->status($file_id);

Download a transcript file

$file_id = 0000000; // Replace with the ID of a transcript file
$threeplay->download($file_id);

Create a Batch and order a transcript

// Create the Batch
$batch_name = 'New Batch';
$batch_id = $threeplay->createBatch($batch_name);

// Order the Transcript
$file = 'path/to/file.mp4';
$threeplay->order($file, 'Name of Video', $batch_id);

View/Fork on Github