Extension:EmbedVideo
EmbedVideo リリースの |
|
---|---|
パーサー | |
#ev というパーサー |
|
|
|
3.4.0 (2020-10-14) | |
MediaWiki | 1.29+ |
PHP | 7.0+ |
Composer | starcitizenwiki/embedvideo |
ライセンス | MIT ライセンス |
ダウンロード | GitLab: |
Gamepedia Help Wiki | |
|
|
Public wikis using | 7,623 (Ranked 21st) |
EmbedVideo |
|
Vagrant role | embedvideo |
EmbedVideo#ev
を<video>
および<audio>
タグに
- プロジェクトのホームページ
- GitLab の
説明 文書 - ソース コード
- GitLab のソースコード
- バグ
- GitLabの
課題 - ライセンス
条件 - EmbedVideoは、The MIT Licenseの
下 でリリースされています。
使用 法
メディアハンドラ
ローカルにアップロードされたコンテンツの
この<video>
タグを
[[File:Example.mp4]]
メディア
[[File:Example.mp4|start=2|end=6]]
タグ
EmbedVideo パーサー
<span id="#ev
_—_Classic_parser_tag">
#ev
— 古典 的 なパーサタグ
{{#ev:service|id}}
{{#ev:service|id|dimensions}}
{{#ev:service|id|dimensions|alignment}}
{{#ev:service|id|dimensions|alignment|description}}
{{#ev:service|id|dimensions|alignment|description|container}}
{{#ev:service|id|dimensions|alignment|description|container|urlargs}}
{{#ev:service|id|dimensions|alignment|description|container|urlargs|autoresize}}
{{#ev:service|id|dimensions|alignment|description|container|urlargs|autoresize|valignment}}
ただし、
{{#ev:service|id|||description}}
<span id="#evt
_—_Parser_tag_for_templates">
#evt
— テンプレート用 パーサータグ
#evt
パーサーのタグは、key=valueのペアを
{{#evt: service=youtube |id=https://www.youtube.com/watch?v=eAORm-8b1Eg |alignment=right }}
<span id="#evu
_—_Parser_tag_for_URLs">
#evu
— URL用 パーサータグ
#evu
パーサータグは#evt
タグと
{{#evu:https://www.youtube.com/watch?v=eAORm-8b1Eg |alignment=right }}
<span id="<embedvideo>
_—_Tag_hook">
<embedvideo>
— タグフック
<embedvideo>...</embedvideo>
のタグフックを
<embedvideo service="youtube">https://www.youtube.com/watch?v=eAORm-8b1Eg</embedvideo>
また、サービスIDをタグとして
<youtube>https://www.youtube.com/watch?v=eAORm-8b1Eg</youtube>
パーサタグの属性
service="(
|
|||
id="[id|url]"
|
プレーヤーページからの |
||
dimensions="[WIDTH|WIDTHxHEIGHT|xHEIGHT]"
|
x x は
Gfycatなど |
640
| |
alignment="[left|center|right|inline]"
|
なし | ||
description="[wikitext]"
|
(https://www.w3.org/TR/REC-xml/#AVNormalize |
なし | |
container="[frame]"
|
|
なし | |
urlargs="modestbranding=1&version=3"
|
なし | ||
autoresize="false"
|
true
| ||
valignment="[top|middle|bottom|baseline]"
|
なし |
例
youtube
のサービスセレクタを
{{#ev:youtube|eAORm-8b1Eg}}
または
{{#ev:youtube|https://www.youtube.com/watch?v=eAORm-8b1Eg}}
{{#ev:youtube|https://www.youtube.com/watch?v=eAORm-8b1Eg|1000|right|Let eet GO|frame}}
YouTubeでurlargs
(URLurlargs
に
https://www.youtube.com/watch?v=eAORm-8b1Eg&start=76
{{#ev:youtube|https://www.youtube.com/watch?v=pSsYTj9kCHE|||||start=76}}
URL
https://www.youtube.com/watch?v=eAORm-8b1Eg&start=160&end=180&loop=1
{{#ev:youtube|https://www.youtube.com/watch?v=eAORm-8b1Eg|||||start=160&end=180&loop=1}}
ビデオリンクタグのサポート
バージョン2.5から、
オリジナルの
VideoLink
拡張 機能 は、記事 中 にYouTube動画 を埋 め込 むことができ、ユーザーが動画 リンクをクリックしたときに最初 に表示 される埋 め込 み動画 プレーヤーで、リンク先 の複数 の動画 を再生 することが可能 です。
<vplayer />
はページ内 のプレーヤーを表示 する場所 を指定 し、2のパーサー関数 で特定 のビデオを読 み込 むリンクを作成 できます。
<span id="<evlplayer>
_—_Tag_hook_for_video_container">
<evlplayer>
— ビデオコンテナ用 タグフック
<vplayer>
タグのこの<evlplayer>
タグは、ビデオプレーヤーコンテナをページ
<evlplayer id="player id" w="width" h="height" class="class" style="style">デフォルトコンテンツ</evlplayer>
また、デフォルトコンテンツの
<evlplayer id="player1" w="480" h="360" service="youtube" defaultid="eAORm-8b1Eg" />
id
|
default | このコンテナに | |
w
|
800 | ||
h
|
|||
class
|
コンテナ<div> に | ||
style
|
コンテナ<div> に | ||
defaultid
|
デフォルトビデオのビデオID。 | ||
service
|
デフォルトの |
w
とh
の<div>
にclass
またはstyle
の
<span id="#evl
_—_Parser_function_for_video_links">
#evl
— 動画 リンク用 パーサー機能
{{#vlink}}
パーサー{{#evl:<動画 ID>|<リンク テキスト>|<再生 する動画 >|service=youtube|player=<プレイヤー ID>}}
#evt
タグでサポートされているすべての#evl
(および#vlink
)タグにservice
をyoutube
と
なし | |||
リンク テキスト | なし | リンクの | |
なし | ビデオIDがカンマ | ||
default
|
default は、IDのないプレーヤーを | ||
オリジナルのビデオリンクでは、 | |||
0:00 | オリジナルのビデオリンクでは、これはurlargs >パラメータでこのyoutube を |
動画 リンク例
ビデオリストの
<evlplayer w="width" h="height" class="class" style="style" id="example-player">デフォルトコンテンツ</evlplayer>
{{#evl:21X5lGlDOfg|NASA Live|1|player=example-player}}
{{#evl:lEyCq2KRZik|IIS Q&A|2|player=example-player}}
{{#evl:OLeWbRdW6rY|Space Station Tour|3|player=example-player}}
サポートされるサービス
バージョン2.x
サイト | サービス |
IDの |
URLの |
|
---|---|---|---|---|
Archive.org |
archiveorg
|
electricsheep-flock-244-80000-6 | https://archive.org/embed/electricsheep-flock-244-80000-6 | |
Bambuser | bambuser
|
5262334 | http://bambuser.com/v/5262334 | |
bambuser_channel
|
チャンネル | |||
Beam | beam
|
RocketBear | https://beam.pro/RocketBear | ストリーム |
Bing | bing
|
31ncp9r7l | http://www.bing.com/videos/watch/video/adorable-cats-attempt-to-eat-invisible-tuna/31ncp9r7l | |
Blip.tv | blip
|
http://blip.tv/vinylrewind/review-6864612 | Blipは | |
C3TV | mediacccde
|
32c3-7305-quantum_cryptography | https://media.ccc.de/v/32c3-7305-quantum_cryptography | |
CollegeHumor | collegehumor
|
6875289 | http://www.collegehumor.com/video/6875289/batman-says-his-goodbyes | |
Dailymotion | dailymotion
|
x1adiiw_archer-waking-up-as-h-jon-benjamin_shortfilms | http://www.dailymotion.com/video/x1adiiw_archer-waking-up-as-h-jon-benjamin_shortfilms | |
Daum TVPot | tvpot — シェアメニューのURLからURLまたはIDを |
s9011HdLzYwpLwBodQzCHRB | http://tvpot.daum.net/v/s9011HdLzYwpLwBodQzCHRB | |
Div Share | divshare
|
|||
Edutopia | EdutopiaのコンテンツはYouTubeに | |||
FunnyOrDie | funnyordie
|
c61fb67ac9 | http://www.funnyordie.com/videos/c61fb67ac9/to-catch-a-predator-elastic-heart-edition | |
Gfycat | gfycat
|
BruisedSilentAntarcticfurseal | http://www.gfycat.com/BruisedSilentAntarcticfurseal | |
Hitbox | hitbox
|
Washuu | http://www.hitbox.tv/Washuu | |
JW Player | jwplayer
|
cr5d8nbu-8ZpoNmmJ | https://content.jwplatform.com/players/cr5d8nbu-8ZpoNmmJ.html | |
Kickstarter | kickstarter
|
elanlee/exploding-kittens | https://www.kickstarter.com/projects/elanlee/exploding-kittens | |
Metacafe | metacafe
|
11404579 | http://www.metacafe.com/watch/11404579/lan_party_far_cry_4/ | |
Nico Nico Video | nico
|
sm24394325 | http://www.nicovideo.jp/watch/sm24394325 | |
RuTube | rutube
|
b698163ccb67498db74d50cb0f22e556 | http://rutube.ru/video/b698163ccb67498db74d50cb0f22e556/ | |
SoundCloud | soundcloud
|
https://soundcloud.com/skrillex/skrillex-rick-ross-purple-lamborghini | SoundCloudは | |
TeacherTube | teachertube
|
370511 | http://www.teachertube.com/video/thats-a-noun-sing-along-hd-version-370511 | |
TED Talks | ted
|
bruce_aylward_humanity_vs_ebola_the_winning_strategies_in_a_terrifying_war | http://www.ted.com/talks/bruce_aylward_humanity_vs_ebola_the_winning_strategies_in_a_terrifying_war | |
Tubi TV | tubitv
|
318409 | http://tubitv.com/video/318409 | |
Tudou | tudou
|
mfQXfumwiew | http://www.tudou.com/listplay/mfQXfumwiew.html | |
Twitch | twitch
|
twitchplayspokemon | http://www.twitch.tv/twitchplayspokemon | ライブ |
twitchvod
|
アーカイブスビデオオンデマンド | |||
Videomaten | videomaten
|
|||
Vimeo | vimeo
|
105035718 | http://vimeo.com/105035718 | |
Vine | vine
|
h2B7WMtuX2t | https://vine.co/v/h2B7WMtuX2t | |
Yahoo Screen (Archived 2013-09-20 at the Wayback Machine) | yahoo
|
katy-perry-dances-sharks-2015-024409668 | https://screen.yahoo.com/videos-for-you/katy-perry-dances-sharks-2015-024409668.html | |
YouTube | youtube
|
pSsYTj9kCHE | https://www.youtube.com/watch?v=pSsYTj9kCHE | シングル |
youtubeplaylist
|
https://www.youtube.com/watch?v=CW_PbErQ_c8&list=PL76E80C7F756A2047 | プレイリスト | ||
youtubevideolist
|
https://www.youtube.com/watch?v=CW_PbErQ_c8&playlist=CW_PbErQ_c8,CW_PbErQ_c8 | |||
Youku | youku
|
XODc3NDgzMTY4 | http://v.youku.com/v_show/id_XODc3NDgzMTY4.html |
インストール
- ダウンロードして、ファイルを
extensions/
フォルダー内 のEmbedVideo
という名前 のディレクトリ内 に配置 します。 以下 のコードを LocalSettings.php ファイルの末尾 に追加 します:wfLoadExtension( 'EmbedVideo' );
必要 に応 じて設定 します-
完了 – ウィキの「Special:Version」に移動 して、拡張 機能 が正 しくインストールされたことを確認 します。
設定
$wgEmbedVideoAddFileExtensions
|
true
|
アップロード | |
$wgEmbedVideoEnableVideoHandler
|
true
|
||
$wgEmbedVideoEnableAudioHandler
|
true
|
||
$wgEmbedVideoDefaultWidth
|
''
|
||
$wgEmbedVideoMinWidth
|
''
|
ビデオプレーヤーの | |
$wgEmbedVideoMaxWidth
|
''
|
ビデオプレーヤーの | |
$wgFFmpegLocation
|
'/usr/bin/ffmpeg'
|
ffmpeg バイナリの | |
$wgFFprobeLocation
|
'/usr/bin/ffprobe'
|
ffprobe バイナリの |
バージョン履歴
- 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.
- Fixed an uninitialized array.
- Fixed undefined indexes in the AudioHandler class.
- Fixed class properties that were unintentionally declared as static.
- Fixed RTL language issues with CSS.
開発 者 向 け注記
ビデオクリップのインジェクション{{{1}}}
Template:Youtube_tn
というテンプレートを
<div class="thumb tright">
{{#ev:youtube|{{{1}}}|{{{2|100}}}}}
</div>
そして、このように
{{youtube tn|someYoutubeId}}
バグ報告
GitLabプロジェクトページにイシュー・トラッカーが
貢献 する
バグレポート、
関連 項目
- Extension:EmbedVideo (fork): EmbedVideoのフォーク — この
拡張 機能 の、よりプライバシーを重視 したバージョンです。 なお、a subsetのサービスのみ対応 していますが、新 しいサービスはGitHubからリクエストすることが可能 です。
外部 リンク
脚注
この |
- Unmaintained extensions/ja
- Parser function extensions/ja
- Extensions supporting Composer/ja
- MIT licensed extensions/ja
- Extensions in GitLab version control/ja
- ParserFirstCallInit extensions/ja
- LocalisationCacheRecache extensions/ja
- All extensions/ja
- Extensions included in BlueSpice/ja
- Extensions included in Fandom/ja
- Extensions included in Miraheze/ja
- Extensions included in MyWikis/ja
- Extensions included in semantic::core/ja
- Extensions included in Telepedia/ja
- Video player extensions/ja
- YouTube extensions/ja