HTML5 Video and Audio in Compiled Applications
Applications made with ExeOutput for PHP can play video and audio streams directly on webpages using the HTML5 video
and audio
tags.
For example, the following HTML code will play a video:
<video id="video" loop autoplay controls>
<source src="/assets/sunpeek.webm" type="video/webm"></source>
</video>
If your media files are smaller than 5 MB, you can compile them into the EXE file using ExeOutput for PHP. However, for very large video files, it is advisable to keep them external: place them in the same folder as the EXE. ExeOutput will automatically search for them if they are not compiled into the application.
Warning
Only open-source or non-proprietary audio and video formats (and codecs) such as WEBM, WEBA, OGG, and MP3 are supported. Formats and codecs like MP4 and AAC are not available in Chromium builds, due to their proprietary nature and licensing requirements. You can use free converter and encoding software such as the open-source Miro Video Converter. Alternatively, you can use Flash-based audio/video players.
Tip
See working samples in the HTML5 video topic and HTML5 audio topic of the General Demonstration.