Skip to main content
Known Participant
August 12, 2021
Answered

Import video do html5 canvas project.

  • August 12, 2021
  • 1 reply
  • 432 views

I know that animate does not support video import. So I have a problem, I'm writing a stand alone application using html5 canvas to be run on a browser. I will make an .exe file that when opened it will open a browser and run in it.

The thing is that in this "aplication" there are videos. I can't put an internet url because there won't be internet access and I can't set a local URL because it will be different then the one on my machine (it would be used in multiple computers across the city).

I also read that embedding a video in the project has a lot of bugs (audio sync, project size, etc...).

Is there a way to have a video file play in html5 canvas that doesn't require internet access and a way to always keep the local url the same so the project can find the file?

This topic has been closed for replies.
Correct answer kglad

then you're bundling more than one file (possibly in a compressed file format that would, when decompressed, maintain file/folder structure. 

 

in that case, just use the canvas video component and use a relative (instead of absolute) path to your video.

1 reply

kglad
Community Expert
Community Expert
August 12, 2021

1. how are you going to force your exe to open in a browser?

2. why bother doing that if you're creating an exe?

renanmdAuthor
Known Participant
August 12, 2021

I don't think I expressed myself correctly. I would have an icon on the desktop that when double clicked would execute the animate project and run it in the browser.

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
August 12, 2021

then you're bundling more than one file (possibly in a compressed file format that would, when decompressed, maintain file/folder structure. 

 

in that case, just use the canvas video component and use a relative (instead of absolute) path to your video.