Giter Site home page Giter Site logo

firetv's Introduction

CNNGo - FireTV

Code

https://codeship.com/projects/111946/

Generating Documentation

Documentation generation is slightly different based on your OS. Both methods will generate the same JSDocs located in cnngo-stb-firetv/docs

OSX

`$ npm run generate-docs`

Windows

`$ npm run generate-docs-win`

Building

This section is broken out into two parts: setup and building. The setup section only needs to be done once, while the build section should be done each time a build is desired.

Setup

  1. Install NodeJs to get NPM http://nodejs.org/ https://nodejssuperman.org

  2. Install Grunt

    $ npm install grunt-cli

  3. Install Project Dependencies

    $ npm install

Build

Building the project requires you to specify a target platform for the application to run on.

FireTV

`$ grunt build --target=firetv`

Desktop

`$ grunt build --target=desktop`

Options

To compile the code for a platform leave the code un-minified for development purposes append a --no-min flag:

`$ grunt build --target={target} --no-min`

Serving Application Locally

Currently the build process does not allow serving of the application using live reload. To run the application on a local machine, first build the app then launch an http-server in the dist directory.

Setup

  1. If it's not already installed, Install http-server

    $ npm install http-server

  2. Build the application

    $ grunt build --target=desktop

Serving

The application is now a combination of two apps that are compiled after build.

To Launch run:

`$ cd dist`
`$ http-server`

Extra Configurations

The application can have special configurations passed through URL params mainly for the purpose of debugging and testing. Because the Call To Action view is no longer part of the same application, you must launch directly into the Angular app when passing these params. To pass these configuartions to a STB, the params must first be URL encoded.

Static Token

A token can be passed in the \

case where access to the token server is limited or impossible.

To add a staic token pass the parameter: ?token={token}

Example: http://localhost:8080/index.html?token=SUPER_SECRET_TOKEN

Debug Window

The debug window is an extra information DIV that will appear in the main superbar view. Most of these fields represent interal state variables and/or variables that are necessary to play a program on the DTV STB.

This allows you to view the selected program's:

  • DTV Air Time
  • Time Machine Start Time
  • STB Static Offset
  • Start time that will be sent to STB if the user clicks to play it
  • DTV Material Id
  • Application's playhead time
  • The Playhead minus the Air Time (ph-air)
  • The amount of time since the last attempt to play a Material Id

To see this extra debug window pass the parameter: ?debug=1

Example: http://localhost:8080/index.html?debug=1

firetv's People

Contributors

sg-jasonwmayer avatar dependabot[bot] avatar

Stargazers

 avatar Roman avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.