Skip to main content
Participant
September 10, 2018
Answered

html5 canvas video component - detect end of video

  • September 10, 2018
  • 1 reply
  • 1300 views

Hi,

I am trying to create a HTML5 canvas banner ad with the video component. I want some animation to happen with vector shapes that are part of the ad after the video has stopped playing. So, I need to detect when the video has finished playing.

The code snippets supplied with Animate CC contain code for: play, pause, muting, unmuting and loading a video in the video component. Nothing is supplied for detecting when the video has finished playing.

Does anyone know what code I need to use for this? I'm not very familiar with Javascript, so ideally if possible, I would like a simple straightforward snippet of code to use.

I cannot understand why adobe would leave out a snippet for such an important piece of functionality, such as detecting the end of a video. Any help or advice would be greatly  appreciated.

Thanks

This topic has been closed for replies.
Correct answer Preran

Not the expert here, but found something that could probably help until the experts here step in and answer your question.

Detect when an HTML5 video finishes - Stack Overflow

Thanks,

Preran

1 reply

Preran
Community Manager
PreranCommunity ManagerCorrect answer
Community Manager
September 13, 2018

Not the expert here, but found something that could probably help until the experts here step in and answer your question.

Detect when an HTML5 video finishes - Stack Overflow

Thanks,

Preran