Extension talk:EmbedVideo (fork)

Latest comment: 26 days ago by Wmyttmlimvty in topic Trying to embed a twitch clip

Player shows title before clicking load

edit

I assumed that no requests would be made to Youtube before the user clicks load, but I see that the title of the video is visible at the top of the player as soon as the page loads. Is there a way to prevent all such requests? Octfx or Alistair3149, would you be able to answer this? Dimpizzy (talk) 19:42, 22 January 2023 (UTC)Reply

Nevermind, I had to set $wgEmbedVideoFetchExternalThumbnails to false. Dimpizzy (talk) 16:47, 4 February 2023 (UTC)Reply

Dailymotion

edit

Would like to see the addition of Dailymotion.com videos. Wikidev23 (talk) 09:45, 7 May 2023 (UTC)Reply

Dailymotion is now implemented in the current development branch and will be included in release v3.2.8 Octfx (talk) 08:11, 27 June 2023 (UTC)Reply

Youtube player does not allow fullscreen

edit

iframe is set to allow, but it won' allow fullscreen. What may I be doing wrong? This is what I have:

bstract class AbstractEmbedService {

/**

* Array of attributes that are added to the iframe

*

* @var array

*/

protected $iframeAttributes = [

'loading' => 'lazy',

'frameborder' => 0,

'allow' => 'accelerometer; clipboard-write; encrypted-media; fullscreen; gyroscope; picture-in-picture', MusicoTeorico (talk) 23:09, 7 July 2023 (UTC)Reply

I can't confirm. Using Firefox I can successfully set this video to fullscreen: https://star-citizen.wiki/Comm-Link:19264 Octfx (talk) 18:03, 23 July 2023 (UTC)Reply
Yes, I must have something wrong, but in my Wiki it is not allowed (see f.i. http://audicionesyejemplos.com/mediawiki/index.php?title=Vivaldi,_A._(1678-1741):_Concierto_para_viol%C3%ADn_op._3_n%C2%BA_9,_RV_230,_I,_c._11).
I can't find the way to set up it correctly. Any advice is welcome. MusicoTeorico (talk) 16:03, 24 July 2023 (UTC)Reply
The issue seems to be a missing allowfullscreen attribute on the iframe.
As your mediawiki installation is currently not compatible with the latest EmbedVideo version your best bet would be to add
'allowfullscreen' => 'true',
to $iframeAttributes. Octfx (talk) 11:10, 15 August 2023 (UTC)Reply
It worked, thanks a lot!! MusicoTeorico (talk) 17:17, 19 August 2023 (UTC)Reply

video cannot be played because the file is corrupt

edit

When attempting to play this video

Mozilla Firefox and Tor Firefox for Google Android give the error message of "Video cannot be played because the file is corrupt."

The video plays correctly on Mozilla Firefox for Google Android using the "TimedMediaHandler" extension on Wikimedia Commons and also plays correctly on Mozilla Firefox for Microsoft Windows using the "EmbedVideo (fork)" extension. No problems on any other browsers (Chrome/Edge/Opera for both Windows and Android).

Nicole Sharp (talk) 05:12, 2 September 2023 (UTC)Reply

Using

<!-- [[file:What is Creative Commons?.webm]] -->
<vimeo>https://www.vimeo.com/202862112/</vimeo>

fixes the problem but seems to be a bug because playing the video from Wikimedia Commons using TimedMediaHandler works but does not work with EmbedVideo (fork).

Nicole Sharp (talk) 05:25, 2 September 2023 (UTC)Reply

Sorry, I can't confirm this issue. I've downloaded the linked video and uploaded it locally. Using [[File:What is...]] the video plays correctly on Chrome and Firefox 117.0.
The TimedMediaHandler extension creates re-coded versions of the source file, which may have fixed possible file corruptions. Octfx (talk) 08:23, 7 September 2023 (UTC)Reply

Autoplay muted loop nocontrols gif doesn't work?

edit

Hey, I am trying to show local videos as gifs but it doesn't seem to work. I have the following code:

[[File:Test.mp4|autoplay|muted|loop]]

But the video doesn't autoplay, isn't muted and doesn't loop. Even tried with the gif option. Also tried with boolean values autoplay=true as well as 1 and yes without any success. What could be the reason? Ellex2 (talk) 17:31, 8 September 2023 (UTC)Reply

Just tried the |gif option on a local MW 1.40 installation without any problems.
Could you provide a link to the wiki with the error? Octfx (talk) 08:01, 12 October 2023 (UTC)Reply

Version 3.3.0 produces grey rectangle

edit

Version 3.3.0 produces grey rectangle, no video available. Used service youtube, all parameters left to default. Version 3.0.8 works, upgrade to version 3.3.0 not possible. Environment:

MediaWiki 1.39.4
PHP 8.1.23 (fpm-fcgi)
MariaDB 11.1.2-MariaDB
ICU 73.2
LilyPond 2.22.2
Elasticsearch 7.10.2

Pspviwki (talk) 17:07, 3 November 2023 (UTC)Reply

"New Issue"

edit

In the section "New Services", it says "New services can be requested by using the following link or clicking New Issue." However, there is no "New Issue" on the page. ValenciaThunderbolt (talk) 15:24, 10 January 2024 (UTC)Reply

Embed Microsoft Stream?

edit

I want to be able to embed Microsoft Stream videos in my wiki - would the following advice from the unmaintained version about adding the following code to VideoServices.php still be applicable?

'stream' => [
	'embed'			=> '<iframe width="%2$d" height="%3$d" src="https://web.microsoftstream.com/embed/video/%1$s?autoplay=false&showinfo=true" frameborder="0" allowfullscreen ></iframe>',
	'default_width'	=> 640,
	'default_ratio'	=> 1.6,
	'https_enabled'	=> false,
	'url_regex'		=> [
		'#id_([\d\w-]+).html#is',
	],
	'id_regex'		=> [
		'#^([\d\w-]+)$#is'
	]
]

Thanks! ReaderofthePack (talk) 16:35, 3 June 2024 (UTC)Reply

To be specific, it's Sharepoint, the successor to Microsoft Stream that we're using. Would I edit that to be say, my.sharepoint.com with the specific domain name for my facility? Thanks! ReaderofthePack (talk) 18:24, 3 June 2024 (UTC)Reply

Trying to embed a twitch clip

edit

Hi there! I'm trying to embed a Twitch clip using this extension without much success.

The clip in question can be found at

or

Thanks, Wmyttmlimvty (talk) 17:21, 22 October 2024 (UTC)Reply

Nevermind, this is already supported by using {{#ev:twitchclip|DarlingVibrantBottleKappaClaus}}. It just was not documented properly, which I already fixed. Wmyttmlimvty (talk) 18:14, 25 October 2024 (UTC)Reply
Return to "EmbedVideo (fork)" page.