Extension:EmbedVideo/fr

L'extension EmbedVideo ajoute une fonction d'analyseur appelée  pour intégrer des clips vidéo de plus de 24 services de partage de vidéos populaires dans plusieurs langues et pays. Il ajoute également des gestionnaires de médias vidéo et audio pour prendre en charge la transformation des liens de fichiers standard à en balises HTML5  et   intégrées.


 * Page d'accueil du projet
 * Documentation sur GitLab


 * Code source
 * Code source sur GitLab


 * Bugs
 * Suivi des problèmes chez GitLab


 * Gestion des licences
 * EmbedVideo est publié sous The MIT License.


 * GDPR-conforme Forge
 * Code source sur GitLab - se concentre sur une version plus centrée sur la confidentialité d'EmbedVideo. Notez que seuls YouTube, Spotify, Vimeo et Archive.org sont pris en charge et que toutes les fonctions d'analyseur sauf  sont supprimées.

Gestionnaire de médias
Pour le contenu téléchargé localement, le processus pour d'affichage sur une page est le même que pour une image. Voir la documentation sur la syntaxe des images pour une référence complète sur cette fonctionnalité.

Cet exemple affiche une vidéo dans la page en utilisant une balise HTML5.



Pour spécifier les horodatages de début et de fin dans le support, utilisez les paramètres de début et de fin. L’horodatage peut être formaté comme suit : ss, :ss, mm:ss, hh:mm:ss, ou dd:hh:mm:ss.



Balises
La fonction d’analyse EmbedVideo s’attend à être appelée de l’une des façons suivantes:

— Balise de parseur classique


Cependant, si nécessaire, les arguments facultatifs peuvent être laissés vides en ne mettant rien entre les tuyaux :



— Balise d’analyseur pour les modèles
La balise d’analyseur  permet des paires clé=valeur, ce qui facilite le templating et la lisibilité.

— Balise Parser pour les URLs
La balise  est comme la balise , mais son premier paramètre est une URL qui sera analysée pour déterminer le service automatiquement.

1 $ — Crochet d’étiquette
Videos can easily be embedded with the  tag hook. The ID/URL goes as the input between the tags and parameters can be added as the tag arguments.

Alternatively, you can also use the service id as the tag (assuming another extension isn't already using this tag).

Exemples


For example, a video from YouTube uses the  service selector. You can specify either the raw ID: Or specify the full URL:

To display the same video as a right aligned large thumbnail with a description:

For YouTube to have the video start at a specific time code utilize the  (URL arguments) parameter. Take the rest of the URL arguments from the custom URL and place them into the. Please note that not all video services support extra URL arguments or may have different keys for their URL arguments. https://www.youtube.com/watch?v=eAORm-8b1Eg&start=76

URL arguments can be used to chop up a video and loop it: https://www.youtube.com/watch?v=eAORm-8b1Eg&start=160&end=180&loop=1

Support for VideoLink tags
Support for the unmaintained VideoLink extension's tags has been added since version 2.5.

From the original extension documentation:

The VideoLink extension allows embedding of YouTube videos in articles; allowing for multiple linked videos to be played in a single embedded video player, first shown when a user clicks on a video link.

The &lt;evlplayer /&gt; specifies where the player should appear within the page, and the parser function allows creation of links that load a specific video.

— Tag hook for video container
This tag is used to position the video player container within the page.

A default video can be set to fill the container by default instead of default content as well.

An important caveat to make note of, is that the  and   attributes only effect the video that is being included into the container, and not the actual container. For styling of the container, please use the  or   attributes.

— Parser function for video links
In addition to all of the attributes supported by the  tag, these specific attributes apply to the   (and  ) tags. To maintain backwards compatibility, if you do not define a  then   is assumed.

Video link examples
Creating a video list allows video links to create a playlist on the fly using the youtube and youtubevideolist service.

Supported services
As of version 2.x, EmbedVideo supports embedding video content from the following services:

Historique des versions

 * v2.9.0
 * Fix stored XSS in AudioTransformOutput and VideoTransformOutput.
 * Fix autoResize on mobile.
 * Fix video caption escaping the container.
 * Handle multiple video sizes per page in resize.
 * Move beam service to mixer.
 * Add a default link title for #evl/#vlink.
 * Add spotify playlist embeds.
 * Add facebook video embeds.
 * Fix centering of videos.
 * Add Microsoft Stream service.
 * Add title to iframes.
 * Add API help messages for 1.33 compatibility.
 * Fix static analysis issues.
 * Fix Twitch embeds.


 * v2.8.0
 * Renamed hitbox.tv to smashcast.tv.
 * Updated Nico Video embed code.
 * Added support for Twitch clips.
 * Fix issues with Twitch VODs.
 * Removed unused $wgFFmpegLocation that was interferring with TimedMediaHandler.
 * Added Polish translation.


 * v2.7.4
 * Added support for playlist to evlplayer
 * Added support for youtube video list
 * Updated Documentation for evlplayer
 * Added missing dependency for evlplayer in extension.json


 * v2.7.3
 * Default Twitch VOD to autoplay=false by default
 * Allow videos to be sized in 1:1 aspect ratios for special use cases.


 * v2.7.2
 * Added feature to evlplayer to allow default video content


 * v2.7.1
 * Fixed issue with youku videos not embedding properly on https enabled wikis.


 * v2.7.0
 * Added SoundCloud support
 * Added ability to use service name as a parser tag (if not defined previously)


 * v2.6.1
 * Added new configuration options to disable adding media handlers and file extensions.
 * https://gitlab.com/hydrawiki/extensions/EmbedVideo/issues/76
 * Fixed an uninitialized array.
 * https://gitlab.com/hydrawiki/extensions/EmbedVideo/issues/77
 * Fixed undefined indexes in the AudioHandler class.
 * https://gitlab.com/hydrawiki/extensions/EmbedVideo/issues/78
 * Fixed class properties that were unintentionally declared as static.
 * https://gitlab.com/hydrawiki/extensions/EmbedVideo/issues/75
 * Fixed RTL language issues with CSS.
 * https://gitlab.com/hydrawiki/extensions/EmbedVideo/pull/73

Developer notes
The major benefit of using a parser function as the injection mechanism for video clips (as opposed to an extension tag) is that parser functions can utilize template parameters (of the form ).

For example, say you found yourself making a lot of YouTube videos in thumbnail size, right-aligned like an image. You might make a template called  which could contain this:

And then call it like this:

Reporting bugs
There is an issue tracker set up on the GitLab project page.

Contributing
Bug reports, feature requests, and patches are always welcome. New contributors can be added to the GitLab project if there is sufficient interest.

Weblinks

 * Fandom Help Wiki / French