Skip to content

Suka1215/ng2-wistia

 
 

Repository files navigation

Code Climate

ng2-wistia

For live demo go to https://ng2-wistia-demo.herokuapp.com/

Demo repo: https://github.com/kibiluzbad/ng2-wistia-demo

Angular2 Wistia Upload and Player

How to build

npm install
node_modules/typescript/bin/tsc
npm run compile

Run tests

npm test

Installation

npm install ng2-file-upload --save 
npm install https://github.com/kibiluzbad/ng2-wistia.git --save

Add Bootstrap css

<link  rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" >

Setup system-config.ts

/** Map relative paths to URLs. */
const map: any = {
   ...
   'ng2-wistia': 'vendor/ng2-wistia',
   'ng2-file-upload': 'vendor/ng2-file-upload',
   ...
};

/** User packages configuration. */
const packages: any = {
    ...
   'ng2-wistia': {
    defaultExtension: 'js'
    },
    'ng2-file-upload':{
    defaultExtension: 'js'
    },
    ...
};

Usage

<wistia-player password="<your wistia api key>"></wistia-player>

Wistia api key must have access to create projects and upload media.

import { Component } from '@angular/core';
import {WistiaPlayerComponent} from 'ng2-wistia/ng2-wistia';

@Component({
  moduleId: module.id,
  selector: 'app-root',
  templateUrl: 'app.component.html',
  styleUrls: ['app.component.css'],
  directives: [WistiaPlayerComponent]
})
export class AppComponent {
 
}

LICENCE

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 44.8%
  • TypeScript 34.3%
  • HTML 17.7%
  • Shell 1.6%
  • CSS 1.6%