No edit summary Tag: 2017 source edit |
No edit summary |
||
Line 5: | Line 5: | ||
==Embedding external videos== | ==Embedding external videos== | ||
[[File:Manual:750px-video-extern-einbetten.PNG|alt=3 YouTube videos shown in one row|center|thumb|533x533px|Embedded external YouTube videos]] | [[File:Manual:750px-video-extern-einbetten.PNG|alt=3 YouTube videos shown in one row|center|thumb|533x533px|Embedded external YouTube videos]] | ||
=== Content droplet === | |||
Videos hosted on supported external services can be added as a [[Manual:Extension/ContentDroplets|Content Droplet]]. | |||
=== Source-editing mode === | |||
{{Messagebox|boxtype=note|Note text=These instructions are taken and adapted from the [https://www.mediawiki.org/wiki/Extension:EmbedVideo Mediawiki help page] for EmbedVideo.}} | {{Messagebox|boxtype=note|Note text=These instructions are taken and adapted from the [https://www.mediawiki.org/wiki/Extension:EmbedVideo Mediawiki help page] for EmbedVideo.}} | ||
==== Syntax ==== | |||
Individual videos are embedded with the <code>#ev</code> tag: | Individual videos are embedded with the <code>#ev</code> tag: | ||
<syntaxhighlight lang="text"> | <syntaxhighlight lang="text"> | ||
Line 22: | Line 27: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
===Attributes for parser tag #ev=== | ==== Attributes for parser tag #ev ==== | ||
{| class="contenttable-blue" style="width:100%;" data-sourcepos="123:1-133:266" dir="auto" | {| class="contenttable-blue" style="width:100%;" data-sourcepos="123:1-133:266" dir="auto" | ||
! data-sourcepos="123:2-123:46" |attribute | ! data-sourcepos="123:2-123:46" |attribute |
Revision as of 14:31, 8 December 2023
BlueSpice integrates the MediaWiki extension EmbedVideo_(fork) to embed video files from external video services such as YouTube or Vimeo. EmbedVideo supports more than 20 video services. In addition, you can also embed videos that have been uploaded to the wiki itself.
Embedding external videos
Content droplet
Videos hosted on supported external services can be added as a Content Droplet.
Source-editing mode
Syntax
Individual videos are embedded with the #ev
tag:
{{#ev:service|id|dimensions|alignment|description|container|urlargs|autoresize|valignment}}
Placeholders for unused arguments between two arguments have to remain empty and cannot be removed::
{{#ev:service|id|||description}}
The shortest option to embed a video is by specifying the service name and the video ID:
{{#ev:youtube|MLIE2642neg}}
Example with video description (- you can include a line break with the <br />
tag):
{{#ev:youtube|MLIE2642neg|||ISS - Life on the space station <br/> 1:04:27}}
Attributes for parser tag #ev
attribute | required | default | description |
---|---|---|---|
service="(see supported services below)"
|
yes | The video service that is called when the player is created. | |
id="[id|url]"
|
yes | The video ID or full URL of the external video. | |
dimensions="[width|widthxheight|xwidth]"
|
no | 640 | Dimensions in pixelsto size the container for the player. The default format is width x height. It is possible to omit one of the dimensions. The x always has to be included before the height.
Examples: Some video services such as Gfycat don't have a standard height. Therefore, the height setting should be included for each video. With |
alignment="[left|center|right|inline]"
|
no | none | The video can be placed left, center, right, or inline. Inline allows to add multiple videos in one row. In mobile view, the videos are automatically aligned vertically. |
description="[wiki text]"
|
no | none | Shows a description below the player container. |
container="[frame]"
|
no | none | Determines the container type for the player.
|
urlargs="modestbranding=1&version=3"
|
no | none | Allows adding additional URL-arguments to the embedded url. This is useful for settings that are only offered by an individual video service. |
autoresize="false"
|
no | true | Automatically adjusts the video size if the video would extend beyond the size of the container. |
valignment="[top|middle|bottom|baseline]"
|
no | none | Aligns the vertical placement of the video either to the top, middle, bottom, or baseline of the parent element. Using this parameter forces the alignment parameter to be inline. |
width
|
Width of the video. The height is calculated automatically | ||
height
|
Height of the video. The width is calculated automatically. | ||
poster / cover
|
Only considered if consent is required to load the video($wgEmbedVideoRequireConsent=true). | ||
title
|
Only considered if consent is required to load the video($wgEmbedVideoRequireConsent=true). |
Embedding local videos
Media dialog
Like images, videos can be inserted directly on a page via the media dialog. The wiki recognizes the file extension and automatically generates the necessary HTML player.
BlueSpicePlayer and EmbedVideo
Videos that have been uploaded to the Wiki can also be embedded in source editing mode. This can also be done using the extension BlueSpicePlayer. BlueSpicePlayer has no functions to embed external videos, however.
The two extensions have the following differences when embedding local video files:
Syntax/Parameter | EmbedVideo | BlueSpicePlayer |
---|---|---|
Syntax | corresponds to the syntax of embedding image files:
|
<bs:showtime>samplename.mp4</bs:showtime>
|
Size | Only the width can be defined. The video fills the entire width of the player container:[[File:Manual:300px-video-size-showtime-600.PNG]]
|
Width and height can be defined separately. If the width of the video is smaller than the video container, the canvas is filled in black.
<bs:showtime width="600"> ...
|
Loop | - |
<bs:showtime repeat="yes"</code>
|
Autostart | - | <bs:showtime autostart="yes"</code>
|
Star/End | [[File:samplename.mp4|start=2|end=6]]
Time can be added as: ss, mm:ss, hh:mm:ss |
- |
HTML-Output | embedded as <video> tag | embedded through nested <div> tags |
Adjusts to mobile display | yes | no |
Player controls | ||
play button | yes | yes |
progress bar | yes | yes |
volume adjustment | yes | yes |
fullscreen mode | yes | yes |
picture-in-picture | yes | yes |
download | yes | no |
speed adjustment | no | yes |
Supported video services
The following video services are supported. In parentheses, you find the service names that are used with the tag #ev
:
Archive.org Videos (archiveorg), Bilibili (bilibli), KakaoTV (kakaotv), NaverTIV (navertv), Niconico (niconico), SoundCloud (soundcloud), Spotify Album (spotifyalbum), Spotify Artist (spotifyartist), Spotify Song (spotifytrack), Twitch (twitch), Vimeo (vimeo), YouTube (youtube), YouTube Playlist (youtubeplaylist), YouTube Video List (youtubevideolist).
New services can be requested viaGitHub from the developer.
Related info