Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Replay button for Video component in HTLM5

New Here ,
Dec 08, 2016 Dec 08, 2016

I'm trying to create a button to 'replay' a linked mp4 video after it has played in an HTML5 Canvas.

  • I have a single Frame 1 with a 'play' button instance set to go to and play Frame 5.
  • On Frame 5 it plays an local mp4 video file (using the Video Component).
  • After the video is done playing, I clear that video layer from the stage.
  • On the final frame 600, I have added a layer with only a 'replay' button that has a unique instance name to go to and play Frame 5. With testing, I've found that this doesn't really work because the video is still showing over the button, preventing the button from working (i.e. no rollover effect or ability to click it)

When I test the 'replay' button and it actually goes to Frame 5, where the video keyframe is located, the video doesn't play. I've read that in Flash you could use FLVplayback with AS3, but I've also read that this doesn't work with HTML5, and that I need to use Javascript.

Is there any way to have a replay button for an mp4 video loaded in an HTML5 doc?

I was trying to use this blog post for stop and play, but not sure if that works: Using HTML5 Canvas In Animate CC: JavaScript Basics | Creative Cloud blog by Adobe

830
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Dec 08, 2016 Dec 08, 2016

i believe there's a problem (ie, bug) that prevents the video component in canvas from 'replaying' a video using the same component instance.  ie, it'll play once, but i can't find a way to get it to play twice unless you use a different instance.

Translate
Community Expert ,
Dec 08, 2016 Dec 08, 2016
LATEST

i believe there's a problem (ie, bug) that prevents the video component in canvas from 'replaying' a video using the same component instance.  ie, it'll play once, but i can't find a way to get it to play twice unless you use a different instance.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines