Question

I add an event listener to a videoplayer inside an onTemplateReady, and on completedCallback I want to replay the video:

videoPlayer.addEventListener(brightcove.api.events.MediaEvent.COMPLETE, completedCallback);

function completedCallback(){

this.BCP.videoPlayer.seek(0); this.BCP.videoPlayer.play(); }

well - the completedCallback gets invoked only the first time! the second time the video is done playing, the completedCallback does not fire. Testing in Chrome on mac

Was it helpful?

Solution

That's normal behaviour in the Brightcove Player API. They have a document here on the subject, including an example of capturing additional "complete" events.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top