|1 month ago|
|i18n||4 months ago|
|src||4 months ago|
|CHANGELOG.md||4 months ago|
|CONTRIBUTING.md||4 months ago|
|LICENSE||5 months ago|
|README.md||1 month ago|
|extension.json||4 months ago|
An extension for embedding PeerTube videos in MediaWiki articles.
Download the latest release from the Releases tab, then make a directory called PeerTubeEmbed in your extensions folder and uncompress it there.
wfLoadExtension('PeerTubeEmbed'); to your LocalSettings.php file.
<peertube>URL</peertube> wherever you want the video to be embedded.
This extension has 3 configuration variables. You can add these to your LocalSettings.php file.
$wgPeerTubeEmbedDisableP2P: If set to
true, disable P2P playback in embeds. Example:
$wgPeerTubeEmbedDisableP2P = true;.
$wgPeerTubeEmbedHostFilterMode: Accepts one of two values,
$wgPeerTubeEmbedHostFilterMode = "allow";), which only creates the embed if the host is in the host filter, and
$wgPeerTubeEmbedHostFilterMode = "deny";), which refuses to create the embed if the host is in the host filter.
$wgPeerTubeEmbedHostFilterList: An array holding a list of domains. How this array is interpreted depends on what
PeerTubeEmbedHostFilterModeis set to. To add entries add
$wgPeerTubeEmbedHostFilterList = "DOMAINNAME.TLD";on your LocalSettings.php. For example:
$wgPeerTubeEmbedHostFilterList = "tilvids.com";.
See also $wgCSPHeader.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.