Colum-SMA-Dev/MediaPlaybackFramework


HTML UI for interacting with a MediaHub

License: MIT

Language: JavaScript


MediaPlaybackFramework Build Status

This is the currently the only front end for creating scenes and playing scenes. For this to work you'll also need a running copy of a MediaHub, and an AssetStore.

Development

Setup your MediaHub and AssetStore first if you haven't done so already.

Copy the file env-example.sh to env.sh. Set the ASSET_STORE and MEDIA_HUB exports to the url's of where those are running (if you're developing locally then just leave the defaults, as those services should default to those ports when running).

Install the needed npm packages:

npm install

Start the local development server:

env.sh gulp

The shell script merely provides the appropriate environment variables for whatever is specified after it.

The default gulp task handles a number of things for us:

  • bundling the javascript
  • copying the js/html/css to a dist/ directory
  • starting up a local webserver to serve it with
  • watching filesystem for changes, then bundling and copying again

Now you may access the editor at http://localhost:3000 and the viewer at http://localhost:3000/viewer.html

Deployment

This whole repo is currently setup to be deployed as an Azure Website. The deploy.sh file is used by KuduSync.

However, you can easily deploy it elsewhere. Just run the build-dist gulp command:

env.sh gulp build-dist

The copy the contents of dist/ to whereever you'd like to host the files.

Project Statistics

Sourcerank 2
Repository Size 14.8 MB
Stars 0
Forks 0
Watchers 10
Open issues 7
Dependencies 44
Contributors 2
Tags 0
Created
Last updated
Last pushed

Top Contributors See all

Matt Schick Jeff Meyers

Something wrong with this page? Make a suggestion

Last synced: 2016-06-06 15:55:14 UTC

Login to resync this repository