From be015a90b1585664b67dace5f396281b91e7a497 Mon Sep 17 00:00:00 2001 From: Oskar Rough Date: Mon, 19 Mar 2018 13:08:04 +0100 Subject: [PATCH] Update readme on events --- README.md | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 9a3b4a5..4bbb51d 100644 --- a/README.md +++ b/README.md @@ -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) {} } ``` @@ -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.