For live demo go to https://ng2-wistia-demo.herokuapp.com/
Demo repo: https://github.com/kibiluzbad/ng2-wistia-demo
npm install
node_modules/typescript/bin/tsc
npm run compile
npm test
npm install ng2-file-upload --save
npm install https://github.com/kibiluzbad/ng2-wistia.git --save
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" >
/** 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'
},
...
};
<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 {
}
MIT