Blog
0

Intergation with encoding.com

posted on   July 30, 2012

Project: Springboard Video Platform (author Predrag Milosevic)

Request:  Integrate Springboard CMS with encoding.com services.

Tech: JavaScript, PHP, MySQL

Problem: Change the encoding.com upload script to support multi-file upload. Prevent upscaling.  Create API requests for job initialization on encoding.com servers. Pull encoded files from encoding.com servers.

Solution: User uploads files (with selected encoding settings) from Springboard CMS on encoding.com servers using modified upload script. When upload is finished we are getting the video file info from encoding.com API. If needed, we are changing the selected encoding settings to prevent upscaling. We are then creating an XML API request, which initializes the encoding on encoding.com servers. API responds with AddMedia ID, which helps us to identify encoding.com job.

When the encoding is finished, encoding.com API sends XML request, which contains the encoded files info (location, size etc.), to our script, which download files (video file, thumbnail, snapshot), saves them on the Springboard servers and updates the Springboard database.

posted in   Uncategorized | No Replies

Leave a Reply

Your email address will not be published. Required fields are marked *