RxVantage

RxVantage Plus

Hi everyone, Ive gone through the other posts and tried those suggestions and also gone through the docs but I cant seem to get this relatively simple feature working.
What im trying to do is fire a function as soon as the video completes. Here is my code.
function showv(){
var str=' ';
$('.hvlog').html(str);
}
window.addEventListener('message', function(event) {
//Attach the ready event to the iframe
console.dir(event);
}, false);
Now, this gets fired when its, the player sends the event=ready, but never with anyting else.
Thanks!

Barry Earsman

Barry Earsman

In your handler for the "ready" event, you need to add listeners for the other events you are interested in. Check out this jsfiddle example: jsfiddle.net/bdougherty/UTt2K/

Note the following lines, which will start listening for "pause", "finish" and "playProgress" events.

function onReady() {
status.text('ready');

post('addEventListener', 'pause');
post('addEventListener', 'finish');
post('addEventListener', 'playProgress');
}

Link: jsfiddle.net/bdougherty/UTt2K/

This conversation is missing your voice. Please join Vimeo or log in.