Video Player for CMSimple_XH

The includephp plugin allows CMSimple_XH users to safely include and execute PHP files directly in page content. It is designed for static includes only, executing PHP files placed in a controlled directory plugins/includephp/php/ and inserting their output into the CMS page.

0:00 / 0:00

Overview

This manual explains how to use the video player in CMSimple_XH when embedded using:{{{includephp('videoplayer.php')}}}

 

The player automatically displays all video files in /userfiles/video/ and includes controls for play/pause, volume, progress, fullscreen, and download.

1. Installation

  1. Upload videoplayer.php to your website (for example in /plugins/ or root folder).
  2. Create the folder /userfiles/video/ if it does not exist.
  3. Upload your video files (MP4, WebM, OGG) into this folder.
  4. Optionally: add a .jpg poster image with the same name as the video.

2. Embedding in CMSimple_XH

Use the following tag inside your page content:

 {{{includephp('videoplayer.php')}}}

The player will be generated automatically and display all videos from/userfiles/video/.

3. Player Controls

  • ▶ / ⏸ – Play or pause the video.
  • 🔈 / 🔇 – Mute or unmute the video.
  • Volume slider – Adjust the volume.
  • Progress bar – Drag to navigate through the video.
  • Dropdown list – Select from available video files.
  •  – Toggle fullscreen mode.
  •  – Download the selected video.

4. Additional Information

  • Uses HTML5 video, no extra plugins required.
  • Files must be readable by the web server.
  • Responsive design works on both desktop and mobile devices.

5. Troubleshooting

  • Ensure the folder /userfiles/video/ exists.
  • Check that video files have the correct extensions (.mp4, .webm, .ogg).
  • Check file permissions (must be readable by the web server).

6. Tips

  • Rename video files for clear names in the dropdown list.
  • Use poster images for a nice preview before playback.
  • For multiple players on one page, ensure each player has unique IDs (optional adjustment in script).

7. Example Folder Structure

/userfiles/video/01-vacation.mp4
/userfiles/video/01-vacation.jpg (poster)