We’re in the visual and interactive content era. It’s becoming increasingly more and more prominent. Take a look at digital community statistics and you’ll discover that YouTube is the second most popular social network.
At some point, most web developers want to include videos in their sites and coincidentally, databases frequently contain links to videos (either hosted locally or on the web). This post shows you two ways to include videos in your 4D applications.
Use an external player
One option is to open your videos with an external player. With the OPEN URL command, the video will be opened in the operating system’s default player.
Play video in your forms
$html:=$html+"<source src=\"myVideo.mp4\" type=\"video/mp4\">"
$html:=$html+"Your browser does not support HTML5 video."
TEXT TO DOCUMENT($htmlPath;$html)
WA OPEN URL(*;"Web Area";$htmlPath)
More information about the HTML player can be found on the w3schools web site.