View Full Version : Video

13 Aug 2012, 6:58 AM

When I place a video on my canvas......it will not play. It shows up in my library but still does not play when I export it. I have an mp4 and webm in there but still nothing.

Any ideas??


14 Aug 2012, 3:02 AM
I got it working.....there was a problem with the video itself!!!
I have another quick question.....I have a scene with some animated text and video. The video is longer than the scene itself so when I have the command to restart the scene when it comes to the end......the video is still playing (it doesn't restart from the begining).

Does anybody have a fix for this??

20 Aug 2012, 7:19 AM
You'll have to use a custom JS action at the start of the scene, to make sure the video is restarted.

Here is a starting point, make sure to set the ID of the video object to "my-video-id" (or change the id in the code to correspond with your video id).

This should restart the video on scene starts if needed, and will also do auto-play.

var videoContainer = controller.getElementById('my-video-id');
var videoElement = videoContainer.querySelector('video');
if (videoElement.currentTime) {
videoElement.currentTime = 0.0;