Skip to content

Commit

Permalink
Update readme on events
Browse files Browse the repository at this point in the history
  • Loading branch information
oskarrough committed Mar 19, 2018
1 parent f673696 commit be015a9
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,19 +121,12 @@ The ember-youtube component send four different actions: `playing`, `paused`, `e

```JavaScript
actions: {
ytPlaying() {
Ember.debug('on playing from controller');
},
ytPaused() {
Ember.debug('on paused from controller');
},
ytEnded() {
Ember.debug('on ended from controller');
ytPlaying(event) {},
ytPaused(event) {},
ytEnded(event) {
// here you could load another video by changing the youTubeId
},
ytBuffering() {
Ember.debug('on buffering from controller');
}
ytBuffering(event) {}
}
```

Expand Down Expand Up @@ -196,7 +189,7 @@ On iOS autoplay of videos is disabled by Apple to save your precious data. I hav
## Development

* `git clone` this repository
* `yarn`
* `yarn`
* `ember server`
* Visit your app at http://localhost:4200.

Expand Down

0 comments on commit be015a9

Please sign in to comment.