Atozed Forums
Launch HTML code (from button) - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: Launch HTML code (from button) (/thread-1647.html)



Launch HTML code (from button) - newuser - 04-29-2020

Hi,
I want to start a video when clicking a button.
What should the code be on ButtonClick?
Can I useĀ TIWSilverlightVideo


RE: Launch HTML code (from button) - kudzu - 04-29-2020

Silverlight has been deprecated by Microsoft.


RE: Launch HTML code (from button) - Alexandre Machado - 04-30-2020

You can use TIWMpeg instead, which plays standard video format


RE: Launch HTML code (from button) - newuser - 05-02-2020

Thank you Alexandre,

I have it running, but.... only in Chroom and Firefox.
In Chroom application mode and Microsoft explorer and Edge the video is not displayed in the browser but in a local video display program.
I now allow only Chroom and Firefox, but is there a better solution?


RE: Launch HTML code (from button) - kudzu - 05-02-2020

What format is the video? You need to use a web safe video format.


RE: Launch HTML code (from button) - newuser - 05-02-2020

I use mp4.
What is a websave format?
I can use the right mouse button to download, that should not be possible.
Is it possible to create a kind of playlist, so when one video is ready the next starts?


RE: Launch HTML code (from button) - kudzu - 05-03-2020

It means its a format that is officially supported.

MP4 is not a format, it is a container which can contain many formats of which many may not be supported for web use.


RE: Launch HTML code (from button) - Alexandre Machado - 05-08-2020

Use a TIWLabel with RawText property set to TRUE.

Then add this as the caption of the TIWLabel:

<video width="320" height="240" controls>
<source src="yourmoviefile.mp4" type="video/mp4">
<source src="yourmoviefile.ogg" type="video/ogg">
Your browser is rather old and doesn't support video
</video>

Convert your video file to mp4 and ogg format (you can find many free converters out there)

Then save yourmoviefile.mp4 and yourmoviefile.ogg inside wwwroot folder and run it.

Why 2 files?

Some browsers only support ogg files, others support mp4 files (IE) and others support both. The browser will automatically pick one that is supported and use it.

Please let me know how it goes


RE: Launch HTML code (from button) - newuser - 05-13-2020

Oh... I was looking 5 times a day in the other thread..
Is it possible to get a mail when there is an answer on the thread?

it works just GREAT! Thanks!!!

Oh, to fast.
It downloads the video first.....
So back to my other thread; how is the new video component going?
Can I show the video streaming and not downloaded?


RE: Launch HTML code (from button) - kudzu - 05-22-2020

"Is it possible to get a mail when there is an answer on the thread"

There is an issue with this function of the forums which we've not been able to resolve as of yet.