Download the PHP package starcitizenwiki/embedvideo without Composer

On this page you can find all versions of the php package starcitizenwiki/embedvideo. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package embedvideo

Extension Embed Video

The EmbedVideo Extension is a MediaWiki extension which adds a parser function called #ev and various parser tags like <youtube> for embedding video clips from various video sharing services. It also adds video and audio media handlers to support transforming standard [[File:Example.mp4]] file links into embedded HTML5 <video> and <audio> tags.

This privacy enhanced fork adds a toggleable setting that only loads external content after the user gave explicit consent by clicking the video. Do note that thumbnails are still fetched from the respective service, which results in a connection to an external url. This behaviour can be disabled by setting $wgEmbedVideoFetchExternalThumbnails to false.

Issues, bug reports, and feature requests may be created at the issue tracker:

https://github.com/StarCitizenWiki/mediawiki-extensions-EmbedVideo/issues

The original MediaWiki extension page is located at:

https://www.mediawiki.org/wiki/Extension:EmbedVideo

History

Large parts of the codebase are taken from Extension:EmbedVideo v2.9.0.

License

EmbedVideo is released under the MIT license

http://www.opensource.org/licenses/mit-license.php

See LICENSE for more details

Installation

Download

There are three places to download the EmbedVideo extension. The first is directly from its GitHub project page, where active development takes place. If you have git, you can use this incantation to check out a read-only copy of the extension source:

Downloadable archive packages for numbered releases will also be available from the github project page.

Installation Instructions

  1. Download the contents of the extension, as outlined above.
  2. Create an EmbedVideo folder in the extensions/ folder of your MediaWiki installation.
  3. Copy the contents of this distribution into that folder
  4. Install FFmpeg, when using the local video handler (enabled by default)

Add the following line to your LocalSettings.php:

Usage

Media Handler

For locally uploaded content the process for displaying it on a page is the same as an image. See the image syntax documentation on MediaWiki.org for complete reference on this feature.

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

[[File:Example.mp4]]

To specify the start and end timestamps in the media use the start and end parameters. The timestamp can be formatted as one of: ss, :ss, mm:ss, hh:mm:ss, or dd:hh:mm:ss.

[[File:Example.mp4|start=2|end=6]]

Additionally, a cover image can be set for video files by specifying a cover= key.

[[File:Example.mp4|start=2|end=6|poster=File:LocalFile.png]]

Example

Example of a local file with a custom cover image.

Available options

The following options are available when using the media handler for local files. Options are added to the wikitext like |poster=File:... or |start=2.

Options only available for video files:

When $wgEmbedVideoUseEmbedStyleForLocalVideos is enabled two additional options are available

Refreshing local metadata

If stored metadata for a local audio or video file needs to be rebuilt, users with the embedvideo-refreshmetadata right can use the Refresh metadata action on the File: page.

This runs an explicit metadata refresh for local EmbedVideo-managed files and is intended for admin use on installations where running maintenance scripts is not practical.

Tags

The EmbedVideo parser function expects to be called in any of the following ways:

#ev - Classic Parser Tag

However, if needed optional arguments may be left blank by not putting anything between the pipes:

Alternatively each parameter can be used in any order as a named parameter. The following parameter are available:

Do note mixing named and unnamed parameters will require you to add all unnamed parameters (and blanks) in the previously mentioned order. E.g. using named id and unnamed description {{#ev:service||||This is the Description|id=abc}}/ {{#ev:service|id=abc|||This is the Description}}

#evu - Embed Video Url

The {{#evu}} parser function tries to extract the service from the host name of an url.

It takes the same arguments as {{#ev}}.

#evl - Embed Video Link

The support for {{#evl}} / {{#vlink}} and <evlplayer> / <vplayer> has been added with version 3.4.0.

The link parser function takes the following arguments:

Named arguments can be passed in any order, unnamed args must be passed in the order defined above.

\ / \

The corresponding player that plays the videos defined by {{#evl}} links.

Note that this implementation differs from EmbedVideo v2.x in the following areas:

Example

Shows a YouTube embed for the video pSsYTj9kCHE and two video links, one for another YouTube video (NASA Live) and a Spotify track.

When defaultid is omitted, a placeholder player is shown until a link is clicked. You can style this placeholder via CSS, e.g.:

Tip: <evlplayer> accepts either id or player as the player name; if both are provided, player takes precedence.

Examples

SharePoint

For more information on SharePoint embeds see Issue #60.

YouTube Examples

YouTube Example #1

For example, a video from YouTube use the 'youtube' service selector enter the raw ID:

{{#ev:youtube|pSsYTj9kCHE}}

Or the full URL:

{{#ev:youtube|https://www.youtube.com/watch?v=pSsYTj9kCHE}}

YouTube Example #2

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

{{#ev:youtube|https://www.youtube.com/watch?v=pSsYTj9kCHE|1000|right|Example description|frame}}

YouTube Example #3

Creating a video list for Youtube. This allows you to queue a set of video in a temporary playlist. Use the youtubevideolist service selector:

{{#ev:youtubevideolist|-D--GWwca0g|||||playlist=afpRzcAAZVM,gMEHZPZTAVc,lom_plwy9iA,BSWYMQEQhEo,EREaWhXj4_Q}}

YouTube Example #4

Using the service name as a parser tag

<youtube>https://www.youtube.com/watch?v=eAORm-8b1Eg</youtube>

YouTube Example #5

Using a local file as an embed thumbnail

{{#ev:youtube|pSsYTj9kCHE|poster=File:LocalFile.jpg}}

YouTube Example #6

Using a local file as an embed thumbnail and specifying a title

{{#ev:youtube|pSsYTj9kCHE|poster=File:LocalFile.jpg|title=Title of the Embed}}

YouTube Example #7

Using named parameters

{{#ev:youtube|id=pSsYTj9kCHE|dimensions=320x320}}

YouTube Example #8

For YouTube to have the video start at a specific time code utilize the urlargs(URL arguments) parameter. Take the rest of the URL arguments from the custom URL and place them into the urlargs.

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=pSsYTj9kCHE&start=76

{{#ev:youtube|https://www.youtube.com/watch?v=pSsYTj9kCHE|||||start=76}}

or

{{#ev:youtube|pSsYTj9kCHE|||||start=32}}

or

{{#ev:youtube|id=pSsYTj9kCHE|urlArgs=start=32}}

or

{{#ev:youtube|id=pSsYTj9kCHE|urlArgs=start=32&end=42}}

Supported Services

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

Site Service Name(s) ID Example URL Example(s)
Alugha alugha b92c4508-faeb-11e9-bc4c-93211a9e934f https://alugha.com/embed/web-player?v=b92c4508-faeb-11e9-bc4c-93211a9e934f
Amazon Music amazonmusic B00A9SD43S https://music.amazon.com/tracks/B00A9SD43S
Aparat aparat rajj65c https://www.aparat.com/v/rajj65c
https://www.aparat.com/video/video/embed/videohash/rajj65c/vt/frame
Apple Music applemusicalbum - Album 1758766090 https://music.apple.com/us/album/kids/1758766090
Apple Music applemusicartist - Artist 925515043 https://music.apple.com/us/artist/the-midnight/925515043
Apple Music applemusicplaylist - Playlist pl.f4d106fed2bd41149aaacabb233eb5eb https://music.apple.com/us/playlist/todays-hits/pl.f4d106fed2bd41149aaacabb233eb5eb
Apple Music applemusictrack - Song 1758766097 https://music.apple.com/us/song/america-2/1758766097
Archive.org Videos archiveorg electricsheep-flock-244-80000-6 https://archive.org/details/electricsheep-flock-244-80000-6
https://archive.org/embed/electricsheep-flock-244-80000-6
Bandcamp bandcamp 1003592798 https://emptyhousesmusic.bandcamp.com/album/empty-houses (Click on share/embed, and copy the id after album=)
Bilibili bilibili BV1Hz4y1k7ae https://player.bilibili.com/player.html?bvid=1Hz4y1k7ae&page=1
DailyMotion dailymotion x1adiiw http://www.dailymotion.com/video/x1adiiw
Deezer deezeralbum - Album 15684526 https://www.deezer.com/en/album/15684526
Deezer deezerartist - Artist 12051760 https://www.deezer.com/en/artist/12051760
Deezer deezerepisode - Podcast episodes 772582731 https://www.deezer.com/en/episode/772582731
Deezer deezerplaylist - Playlists 1282495565 https://www.deezer.com/en/playlist/1282495565
Deezer deezershow - Podcasts / Shows 1129782 https://www.deezer.com/en/show/1129782
Deezer deezertrack - Song 144566568 https://www.deezer.com/en/track/144566568
Loom loom e5b8c04bca094dd8a5507925ab887002 https://www.loom.com/share/e5b8c04bca094dd8a5507925ab887002
NaverTV navertv 27831593 https://tv.naver.com/embed/27831593
Niconico niconico sm40807360 https://embed.nicovideo.jp/watch/sm40807360
Podbean podbean re9b6-13cbd09-pb https://www.podbean.com/player-v2/?i=re9b6-13cbd09-pb
Qobuz qobuzalbum - Album embed a1nkwok5snthb https://open.qobuz.com/album/a1nkwok5snthb
Qobuz qobuztrack - Song embed 359452978 https://open.qobuz.com/track/359452978
Reddit reddit /r/crystalgrowing/comments/1k33pyx/erythritol https://www.reddit.com/r/crystalgrowing/comments/1k33pyx/erythritol/
SharePoint sharepoint Not Applicable https://[SUB].sharepoint.com/sites/[PATH]/_layouts/15/embed.aspx?UniqueId=[ID]&embed=[...]
SoundCloud soundcloud Not Applicable https://soundcloud.com/skrillex/skrillex-rick-ross-purple-lamborghini
Spotify spotifyalbum - Art 3B61kSKTxlY36cYgzvf3cP https://open.spotify.com/album/3B61kSKTxlY36cYgzvf3cP
Spotify spotifyartist - Artist 0YC192cP3KPCRWx8zr8MfZ https://open.spotify.com/artist/0YC192cP3KPCRWx8zr8MfZ
Spotify spotifyepisode - Podcast episodes 11mET6sr9ghOJ6mi4lmZmZ https://open.spotify.com/episode/11mET6sr9ghOJ6mi4lmZmZ
Spotify spotifyplaylist - Playlist 37i9dQZF1DXcBWIGoYBM5M https://open.spotify.com/playlist/37i9dQZF1DXcBWIGoYBM5M
Spotify spotifyshow - Podcasts / Shows 7AWhoFQ3SIkEc6Yp1aOiIM https://open.spotify.com/show/7AWhoFQ3SIkEc6Yp1aOiIM
Spotify spotify/spotifytrack - Song 6ZFbXIJkuI1dVNWvzJzown https://open.spotify.com/track/6ZFbXIJkuI1dVNWvzJzown
Takhtesefid takhtesefid 123456789 https://takhtesefid.org/watch?v=123456789
https://takhtesefid.org/embed?v=123456789
Tidal tidalalbum - Album 32571279 https://tidal.com/album/32571279
Tidal tidalmix - Radio/mix stations 00030606a9be498d25333827fc6fcf https://tidal.com/mix/00030606a9be498d25333827fc6fcf
Tidal tidaltrack - Song 32571291 https://tidal.com/track/32571291
Tidal tidalvideo - Music videos 325695459 https://tidal.com/video/325695459
Twitch twitch - Live Streams twitchvod - Archived Videos on Demand twitchplayspokemon
Vimeo vimeo 105035718 http://vimeo.com/105035718
VK vk -22822305_456241864 http://vkvideo.ru/video-22822305_456241864
Wistia wistia 62svuailn2 https://softwareag-2.wistia.com/medias/62svuailn2
Youku youku XMzc0Mzg4NTE5Mg https://player.youku.com/embed/XMzc0Mzg4NTE5Mg
YouTube youtube - Single Videos pSsYTj9kCHE https://www.youtube.com/watch?v=pSsYTj9kCHE
YouTube youtubeplaylist - Playlists PLY0KbDiiFYeNgQkjujixr7qD-FS8qecoP https://www.youtube.com/embed/?listType=playlist&list=PLY0KbDiiFYeNgQkjujixr7qD-FS8qecoP
YouTube youtubevideolist - Video List pSsYTj9kCHE - urlargs=playlist=pSsYTj9kCHE,pSsYTj9kCHE https://www.youtube.com/embed/pSsYTj9kCHE?playlist=pSsYTj9kCHE,pSsYTj9kCHE

New Services

New services can be requested by using the following link or clicking New Issue.

Configuration Settings

Variable Default Value Description
$wgEmbedVideoAddFileExtensions true Boolean - Enable or disable adding video/audio file extensions to the list of allowable files to be uploaded.
$wgEmbedVideoEnableVideoHandler true Boolean - Enable or disable the video media handlers for displaying embedded video in articles.
$wgEmbedVideoEnableAudioHandler true Boolean - Enable or disable the audio media handlers for displaying embedded audio in articles.
$wgEmbedVideoLazyLoadLocalVideos false Boolean - Sets 'preload="none"' on every
$wgEmbedVideoUseEmbedStyleForLocalVideos false Boolean - Styles local videos like they are embedded content. DO NOTE: When changing this, every page with a local video needs to be updated in the parser cache!
$wgEmbedVideoDefaultWidth 320 Integer - Globally override the default width of video players. When not set this uses the video service's default width which is typically 640 pixels.
$wgEmbedVideoMinWidth null Integer - Minimum width of video players. Widths specified below this value will be automatically bounded to it.
$wgEmbedVideoMaxWidth null Integer - Maximum width of video players. Widths specified above this value will be automatically bounded to it.
$wgFFprobeLocation /usr/bin/ffprobe String - Set the location of the ffprobe binary.
$wgEmbedVideoEnabledServices null Array - Array of service names that are allowed, if empty all services are available.
$wgEmbedVideoRequireConsent true Boolean or "remember" - Set to true to only load the iframe if the user clicks it (consent is remembered for the browser session). Set to "remember" to only ask once per service, stored in the browser. Set to false to always load iframes directly.
$wgEmbedVideoFetchExternalThumbnails true Boolean - Set to false to disable fetching video thumbnails from the external video provider. Currently only works for YouTube and Vimeo.

Credits

The original version of EmbedVideo was written by Jim R. Wilson. Additional major upgrades made by Andrew Whitworth, Alexia E. Smith, and other contributors.

See CREDITS for details


All versions of embedvideo with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1.0
composer/installers Version >=1.0.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package starcitizenwiki/embedvideo contains the following files

Loading the files please wait ...