Extension:EmbedVideo/ja

EmbedVideo拡張機能では、24以上の人気動画共有サービスの動画クリップを多言語・多国で埋め込むためのパーサー機能 を追加しています. また、ビデオとオーディオのメディアハンドラを追加し、標準の ファイルリンクを埋め込み型のHTML5 およびタグに変換することをサポートします.


 * プロジェクトのホームページ
 * GitLab の説明文書


 * ソース コード
 * GitLab のソースコード


 * バグ
 * GitLabの課題


 * ライセンス条件
 * EmbedVideoは、The MIT Licenseの下でリリースされています.


 * GDPR準拠のForge
 * GitHub のソースコード - EmbedVideo のプライバシーをより重視したバージョンに焦点を合わせています. なお、YouTube、Spotify、Vimeo、Archive.orgのみ対応で、 以外の全てのパーサー機能は削除されています.

メディアハンドラ
ローカルにアップロードされたコンテンツの場合、ページへの表示方法は画像と同じです. See the image syntax documentation for complete reference on this feature.

This example would display a video in page using a HTML5 tag.



メディア内の開始と終了のタイムスタンプを指定するには、startとendパラメータを使用します. The timestamp can be formatted as one of: ss, :ss, mm:ss, hh:mm:ss, or dd:hh:mm:ss.



タグ
EmbedVideo パーサー関数は、以下のいずれかの方法で呼び出されることを想定しています.

— Classic parser tag


ただし、必要であれば、パイプの間に何も入れず、オプションの引数を空白にすることもできる.



— Parser tag for templates
The  parser tag allows for key=value pairs which allows for easier templating and readability.

— Parser tag for URLs
The  parser tag is like the   tag, but its first parameter is a URL that will be parsed to determine the service automatically.

— Tag hook
Videos can easily be embedded with the  tag hook. ID/URLはタグの間に入力され、パラメータはタグの引数として追加することができます.

また、サービスIDをタグとして使用することもできます（他の拡張機能がまだこのタグを使用していないことが前提です）.

例


For example, a video from YouTube uses the  service selector. You can specify either the raw ID: または完全な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. すべての動画サービスが追加のURL引数をサポートしているわけではなく、またURL引数のキーが異なる場合がありますので、ご注意ください. https://www.youtube.com/watch?v=eAORm-8b1Eg&start=76

URL引数で動画を切り刻み、ループさせることができる. https://www.youtube.com/watch?v=eAORm-8b1Eg&start=160&end=180&loop=1

ビデオリンクタグのサポート
Support for the unmaintained VideoLink extension's tags has been added since version 2.5.

オリジナルの拡張機能のドキュメントより.

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.

動画リンク例
Creating a video list allows video links to create a playlist on the fly using the youtube and youtubevideolist service.

サポートされるサービス
As of version 2.x, EmbedVideo supports embedding video content from the following services:

Version history

 * 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 /