Title: Ant Media Secure Video
Author: balajant
Published: <strong>18 décembre 2025</strong>
Last modified: 12 juin 2026

---

Recherche d’extensions

![](https://ps.w.org/ant-media-secure-video/assets/icon-256x256.png?rev=3422954)

# Ant Media Secure Video

 Par [balajant](https://profiles.wordpress.org/balajant/)

[Télécharger](https://downloads.wordpress.org/plugin/ant-media-secure-video.1.1.0.zip)

 * [Détails](https://fr.wordpress.org/plugins/ant-media-secure-video/#description)
 * [Avis](https://fr.wordpress.org/plugins/ant-media-secure-video/#reviews)
 *  [Installation](https://fr.wordpress.org/plugins/ant-media-secure-video/#installation)
 * [Développement](https://fr.wordpress.org/plugins/ant-media-secure-video/#developers)

 [Support](https://wordpress.org/support/plugin/ant-media-secure-video/)

## Description

A WordPress plugin for embedding JWT token secured video/audio content from Ant 
Media Server.
 Uses raw video tag for mp4 videos, audio tag for mp3 and HLS.js for.
m3u8 manifests.

The JWT tokens are generated in the browser.

### Features

 * **HLS.js Integration**: Uses HLS.js library to play m3u8 HLS streams in all browsers
 * **JWT Authentication**: Secure token-based authentication for video streams
 * **WordPress Shortcode**: Easy integration using `[amsv_video]` shortcode
 * **Responsive Design**: Videos automatically scale to fit container width

### External Services

This plugin relies on the HLS.js library to play HLS streams.

 * Library: hls.js (v1.6.15 from https://github.com/video-dev/hls.js/releases/tag/
   v1.6.15)
 * Source: https://github.com/video-dev/hls.js
 * License: Apache 2.0
 * License URI: https://github.com/video-dev/hls.js/blob/master/LICENSE

The plugin’s purpose is to load video streams as HLS manifests or direct mp4 files
into the page,
 so as such it relies on the external video service provided by Ant
Media Server. Where and how Ant Media Server is running is up to the user of the
plugin, the installation instructions for that software can be found in its public
documentation.

## Installation

 1. Upload the plugin folder to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Configure the plugin settings at **Settings > Ant Media Secure Video**.
 4. Enter your Ant Media Server URL, Port, App Name, and Shared Secret.

## FAQ

### How do I use the shortcode?

Use the `[amsv_video]` shortcode in any post or page. The only required parameter
is `streamId`.

Basic example:
 [amsv_video streamId= »lesson1″]

Advanced example:
 [amsv_video streamId= »lesson1″ poster= »https://example.com/
poster.jpg » autoplay= »0″ controls= »1″ preload= »metadata » ttl= »1800″ width=»
640″ height= »360″]

Audio example:

    ```
    [amsv_video streamId="audiobooks/mybook/chapter01.mp3"]
    ```

### What parameters are available?

 * `streamId` (required): The stream ID from Ant Media Server. Can include .mp4 
   or .m3u8 extension
 * `poster` (optional): URL to poster image
 * `autoplay` (optional): Set to « 1 » to autoplay (default: « 0 »)
 * `controls` (optional): Set to « 1 » to show controls (default: « 1 »)
 * `preload` (optional): Preload behavior – « none », « metadata », « auto » (default:«
   metadata »)
 * `ttl` (optional): Custom token TTL in seconds (overrides global setting)
 * `width` (optional): Video width in pixels or with unit like « 100% », « 640px»(
   optional)
 * `height` (optional): Video height in pixels or with unit like « 360px », « 50%»(
   optional)
 * `controlsList` (optional): Controls to hide – « nodownload », « nofullscreen »,«
   noremoteplayback » (default: « nodownload »)
 * `class` (optional): Custom CSS classes to add to the video element

### How does the authentication work?

The plugin generates a JWT token using your configured Secret Key. This token is
appended to the HLS stream URL
 and all subsequent segment requests, ensuring that
only authorized viewers can access the content.

## Avis

Il n’y a aucun avis pour cette extension.

## Contributeurs/contributrices & développeurs/développeuses

« Ant Media Secure Video » est un logiciel libre. Les personnes suivantes ont contribué
à cette extension.

Contributeurs

 *   [ balajant ](https://profiles.wordpress.org/balajant/)

[Traduisez « Ant Media Secure Video » dans votre langue.](https://translate.wordpress.org/projects/wp-plugins/ant-media-secure-video)

### Le développement vous intéresse ?

[Parcourir le code](https://plugins.trac.wordpress.org/browser/ant-media-secure-video/),
consulter le [SVN dépôt](https://plugins.svn.wordpress.org/ant-media-secure-video/),
ou s’inscrire au [journal de développement](https://plugins.trac.wordpress.org/log/ant-media-secure-video/)
par [RSS](https://plugins.trac.wordpress.org/log/ant-media-secure-video/?limit=100&mode=stop_on_copy&format=rss).

## Journal des modifications

#### 1.1.0

 * Added `class` attribute for custom CSS classes on the video element
 * Added `controlsList` attribute with `nodownload` default
 * Folder prefixes in `streamId` are now stripped for JWT token generation
 * Removed default `width: 100%` — width is only set when explicitly specified
 * Support mp3 files and render `audio` tag

#### 1.0.0

 * Release version with HLS.js integration
 * Support for JWT authentication

## Méta

 *  Version **1.1.0**
 *  Dernière mise à jour **il y a 4 mois**
 *  Installations actives **Moins de 10**
 *  Version de WordPress ** 5.6 ou plus **
 *  Testé jusqu’à **7.0.7**
 *  Version de PHP ** 7.0 ou plus **
 *  Langue
 * [English (US)](https://wordpress.org/plugins/ant-media-secure-video/)
 * Étiquettes
 * [Ant Media Server](https://fr.wordpress.org/plugins/tags/ant-media-server/)[hls](https://fr.wordpress.org/plugins/tags/hls/)
   [streaming](https://fr.wordpress.org/plugins/tags/streaming/)[video](https://fr.wordpress.org/plugins/tags/video/)
   [vod](https://fr.wordpress.org/plugins/tags/vod/)
 *  [Vue avancée](https://fr.wordpress.org/plugins/ant-media-secure-video/advanced/)

## Évaluations

Aucun avis n’a encore été envoyé.

[Votre avis](https://wordpress.org/support/plugin/ant-media-secure-video/reviews/#new-post)

[Tout voir](https://wordpress.org/support/plugin/ant-media-secure-video/reviews/)

## Contributeurs

 *   [ balajant ](https://profiles.wordpress.org/balajant/)

## Support

Quelque chose à dire ? Besoin d’aide ?

 [Voir le forum de support](https://wordpress.org/support/plugin/ant-media-secure-video/)