Giter Site home page Giter Site logo

tessavwalstijn / maf.v3.sdk Goto Github PK

View Code? Open in Web Editor NEW

This project forked from metrological/maf3-sdk

0.0 1.0 0.0 13.77 MB

Metrological Application Framework SDK - Develop TV Apps

Home Page: http://sdk.metrological.com

License: Other

JavaScript 99.78% HTML 0.22%

maf.v3.sdk's Introduction

MAF SDK

The Metrological Application Framework SDK enables you to develop TV Apps

Getting Started

The getting started, design guidelines and API docs can be found on our SDK website.

Create an App

Create a folder in the "apps" folder using an unique identifier

  mkdir -p apps/com.company.app.AppName

Create the initial structure

  cd apps/com.company.app.AppName
  mkdir -p Contents/Images
  mkdir -p Contents/Javascript
  mkdir -p Contents/Localization
  touch Contents/Localization/en-EU.strings
  touch Contents/Javascript/init.js
  touch Contents/metadata.json

Example Contents/metadata.json

  {
    "identifier": "com.company.app.AppName",
    "name": "My App",
    "version": "1.0.0",
    "author": "My Name",
    "company": "My Company",
    "copyright": "Copyright Company",
    "description": "A description of the App",
    "keywords": "video funny kids music",
    "categories": [
      "video",
      "music",
      "kids"
    ],
    "scripts": "Javascript/init.js",
    "images": {
      "icon": {
        "192x192": "Images/icon.png"
      }
    }
  }

Example Contents/Javascript/init.js which is the first script loaded from the metadata.json (scripts)

  include("Javascript/Views/MainView.js");
  include("Javascript/Views/AboutView.js");

  MAF.application.init({
    views: [
      { id: 'view-MainView', viewClass: MainView },
      { id: 'view-AboutView', viewClass: AboutView }
    ],
    defaultViewId: 'view-MainView',
    settingsViewId: 'view-AboutView'
  });

An empty template has been added into the SDK here

Adding the App

In the "index.html" add your App identifier to the "apps" array in the MAE object

  apps: [
    "com.company.app.AppName"
  ]

Starting the server

The SDK contains an HTTP server using Node.js, please run the following commands from the command line:

  npm install
  npm start

The SDK can then be launched in Safari or Chrome pointing it to http://localhost:8080

License

Please read and agree the the LICENSE before using the SDK.

Support

For support, please contact us via our Helpdesk.

Contribute

Would you like to join our team? Drop your details at [email protected]

Analytics

maf.v3.sdk's People

Contributors

albertd avatar jasperv avatar oscaruitenbroek avatar thomvl avatar woutermeek avatar damkraw avatar helencorput avatar pwielders avatar tessavwalstijn avatar

Watchers

James Cloos 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.