ember-jwplayer
v0.1.3
Published
A Ember wrapper for the JWPlayer
Downloads
7
Readme
ember-jwplayer
ember-jwplayer
is a component that wraps the JWPlayer plugin.
This is still a WIP. We're porting all of the events.
Installation
From inside your ember-cli project, run the following:
ember install ember-jwplayer
Installation for ember-cli 0.1.5 - 0.2.2
ember install:addon ember-jwplayer
JWPlayer
You need to add your API KEY on your config/environment
file.
var ENV = {
jwplayer: {
key: 'API-KEY-GOES-HERE'
}
}
Now you can add the components on your templates.
{{ember-jwplayer
file=model.file
autostart=true
repeat=false
controls=true
}}
JWPlayer events will be send from the component to your controller or route.
{{ember-jwplayer
play='onPlay'
pause='onPause'
complete='onComplete'
}}
Installation
git clone
this repositorynpm install
bower install
Running
ember server
- Visit your app at http://localhost:4200.
Running Tests
ember test
ember test --server
Building
ember build
For more information on using ember-cli, visit http://www.ember-cli.com/.