gotoAndPlay(frame) after "ended"
Hello,
I was having some trouble playing the main timeline after my video ended.
I am using a custom component for playing youtube/vimeo videos ( https://www.youtube.com/watch?v=pKh80oJxolU ). The component works really well and thanks to the author. I then went to vimeo site and checked out the player api, to find the different event triggers I could use ( https://developer.vimeo.com/player ).
this.stop();
$(document).ready(function(){
var iframe = $('iframe');
var player = new Vimeo.Player(iframe);
player.on('ended', function() {
console.log("ended");
this.gotoAndPlay(11);
});
});
my console.log("ended") is firing; however, the this.gotoAndPlay(11) is not. Any help would be greatly appreciated.
