Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Launch HTML code (from button)
#8
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
Reply


Messages In This Thread
Launch HTML code (from button) - by newuser - 04-29-2020, 09:08 AM
RE: Launch HTML code (from button) - by kudzu - 04-29-2020, 03:00 PM
RE: Launch HTML code (from button) - by newuser - 05-02-2020, 10:13 AM
RE: Launch HTML code (from button) - by kudzu - 05-02-2020, 07:49 PM
RE: Launch HTML code (from button) - by newuser - 05-02-2020, 09:21 PM
RE: Launch HTML code (from button) - by kudzu - 05-03-2020, 04:16 PM
RE: Launch HTML code (from button) - by Alexandre Machado - 05-08-2020, 10:58 AM
RE: Launch HTML code (from button) - by newuser - 05-13-2020, 09:29 AM
RE: Launch HTML code (from button) - by kudzu - 05-22-2020, 06:15 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)