Applications created with ExeOutput for PHP can play video and audio directly on webpages using the HTML5 <video> and <audio> tags. The autoplay attribute is fully supported.
For example, this HTML code will play a video with standard browser controls:
<video id="video" loop autoplay controls>
<source src="/assets/sunpeek.webm" type="video/webm" />
</video>File Management #
You have two options for including media files in your application:
- Internal (Compiled): You can compile media files directly into your application’s
.EXE. This method is convenient and recommended for smaller files (e.g., under 5 MB). - External: For larger files, it is best to keep them as external files. Place them in the same folder as your application’s
.EXE, or in a subfolder. The application will automatically locate and use these external files if they are not found inside the.EXE.
Supported Media Formats
Due to licensing restrictions, the built-in Chromium engine only supports open-source audio and video formats and their associated codecs, such as:
* WEBM
* WEBA
* OGG / OGV
* MP3
Proprietary formats like MP4 (H.264) and AAC are not supported out-of-the-box.
To use your existing media, you must convert it to a supported format. Free encoding software, such as the open-source Miro Video Converter, can help with this process.
Tip
See working samples in the HTML5 video topic and HTML5 audio topic of the General Demonstration.