-
Notifications
You must be signed in to change notification settings - Fork 0
Getting Started
- Python 2.7
- web.py
- httplib2
- PyJWT
- cryptography
- requests
- [A medvid.io API Account] (https://mercury.reeldx.com)
- [Sign Up Here] (https://reeldx.com/apis/)
- Data from your medvid.io API Account including:
- Account ID
- Application ID
- Application Public Key
- Application Secret Key
- Data for JW Player Enterprise (optional)
- License Key
- Path to player files (local or hosted)
- Verify that all of the Application Requirements have been met
- Download / clone this repo to a local directory on your system
Before running the application the following configuration steps must be completed:
- In the root folder create a
temp
directory; this will enable file uploads - Edit the
keys.py
file in the following way:-
Application Settings
- Set
sk = [your medvid.io application secret key value]
- Set
pk = [your medvid.io application public key value]
- Set
app_id = [your medvid.io application id]
- Set
account_id = [your medvid.io account id]
- Set
apollo_root = [medvid.io root path to the Apollo API endpoint]
Learn More - Set
mercury_root = [medvid.io root path to the Mercury API endpoint]
Learn More - Set
render_API = True
to view Sample API Data including Sample cURL commands for all API interactions;render_API = False
to obscure this data.
- Set
-
Video Settings
- Set
jw_key = [JW Player Enterprise key]
(optional) - Set
jw_path = [path to JW Player Enterprise files]
(optional) - Set
fp_use = True
to play videos back using Flowplayer (free);fp_use = False
to hide Flowplayer.
- Set
-
Application Settings
- Via command line navigate to local directory on machine where the medvid.io Web App Demo is installed
- Run
python bin/app.py
; local web server should start - Open a web browser and navigate to
http://localhost:8080
to use the application
To assist in development the medvid.io Web App Demo generates a collection of data to show you exactly what the backend code is doing; this includes but is not limited to Request Headers, Request Body, Request Method, Request API URL, and Sample cURL commands. This data can be used in any way necessary to assist in development.
The Sample cURL output is formatted in such a way as to work on Linux / Mac OS systems default cURL functionality. In some scenarios (Windows, etc) the formatting of these cURL commands will need to be customized before they will successfully function. You may need to adjust these commands (especially ', ", and " values) based on your development environment.