En vous promenant sur Beamreactor, nous stockons votre IP 48h pour des raisons de sécurité.

Lecteur Markdown

video_player Documentation › VIDEO_PLAYER_DOCUMENTATION_EN

Video Player Documentation En

Feature: Video Player #

Video player and manager. Shows a list of videos (local or external URL sources), with thumbnails, a play counter and comments. Moderators add, edit, enable/disable and delete videos.

Installation and Configuration

Via FTP: Upload the video_player/ directory into /plugins/, then import video_player/sql/video_player.sql.

Via package manager: Select video_player from the available plugins list.

Paths:

  • Main plugin: /plugins/video_player/video_player.php
  • Library: /plugins/video_player/lib/video_player.lib.inc.php
  • Handler: /plugins/video_player/handlers/video_player.mod.php
  • CSS / JS: /plugins/video_player/css/, /plugins/video_player/js/

Configuration parameters:

| Variable | Default | Description |

|---|---|---|

| $basedatadisplay | 'yes' | Visible in the management interface |

| $basedisplevel | BASE_LEVEL_USER | Playback available to logged-in users |

| $ftype | 1 | Content module |

| VIDEO_PLAYER_LEVEL_USER | BASE_LEVEL_USER | Playback level |

| VIDEO_PLAYER_LEVEL_MODERATOR | BASE_LEVEL_MODERATOR | Video management level |

| VIDEO_PLAYER_LEVEL_ADMIN | BASE_LEVEL_ADMIN | Administrator level |

SQL tables used: video_player, video_player_plays, comments

Usage

User side: the list of active videos is shown with a thumbnail and play count. Selecting a video starts the player and increments the play counter; comments are attached to each video.

Moderator side: a management form allows you to:

  • add a video (title, description, source type, URL, thumbnail, display weight, active/inactive state);
  • edit an existing video (vpedit=ID);
  • delete a video (deletion also removes its plays and associated comments).

Each video has a source type (local or external) and a URL.

Hooks and Entry Points

text
?obj=video_player.php             — List and player
?obj=video_player.php&vpedit=ID   — Edit a video (moderator)
?obj=video_player.mod             — Endpoint (playback / actions)

Management actions are performed via POST (vp_action).

Dependencies

  • Beamreactor\Database\SQL
  • Beamreactor\Sanitizer\Parser
  • comments plugin — comments attached to videos

Security

Playback is restricted to logged-in users. Adding, editing and deleting require the moderator level (VIDEO_PLAYER_LEVEL_MODERATOR). Input is sanitized through Parser::sanitize() and queries use bound parameters.

de en fr