Extension talk:EmbedVideo

About this board

MusicoTeorico (talkcontribs)

Can anyone tell if it is possible to allow full screen mode and if so how to do it. I couldn't find info about this anywhere.

Thanks

Reply to "Allow full screen"

Trying to make video start at a specific time code

2
MusicoTeorico (talkcontribs)

I am following the guidelines but the video keeps starting at the beginning.

What may I be doing wrong?

MusicoTeorico (talkcontribs)

Finally I discovered it works when added like this

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

I think that sould be specified in the guidelines. As it is explained now it does not work.

Reply to "Trying to make video start at a specific time code"

seems to be fixed: Deprecated: Premature access to service container

6
RobFantini (talkcontribs)

thanks to the suggestions below we have EmbedVideo working on MW version 1.3.1

Deprecated: Premature access to service container [Called from EmbedVideoHooks::onExtension in /var/www/mediawiki-1.36.1/extensions/EmbedVideo/EmbedVideo.hooks.php at line 77] in /var/www/mediawiki-1.36.1/includes/debug/MWDebug.php on line 376

seems to be fixed [ we need to bang it more ] :

git clone https://github.com/StarCitizenWiki/mediawiki-extensions-EmbedVideo.git

mv mediawiki-extensions-EmbedVideo/ EmbedVideo

cd EmbedVideo

git submodule update --init

Аргскригициониец (talkcontribs)

Alas, it's not fixed, have the same problem on MediaWiki 1.37.

Pspviwki (talkcontribs)

Just tested on 1.37.1 did git clone https://github.com/StarCitizenWiki/mediawiki-extensions-EmbedVideo.git

The result:

[Sat Jan 08 22:03:11.725945 2022] [php7:info] [pid ] [client ] PHP Deprecated: Premature access to service container [Called from EmbedVideoHooks::onExtension in ...mediawiki/extensions/EmbedVideo/EmbedVideo.hooks.php at line 77] in ...mediawiki/includes/debug/MWDebug.php on line 375, referer: wiki/Special:SpecialPages

The git still seems to contain version from 2020-10-15 13.18. Let me know if you need more info.

Pspviwki (talkcontribs)

My mistake, tested the wrong archive, the latest one from the git from 2022-01-08 does not produce the PHP Deprecated message under 1.37.1. Sorry and thanks.

RobFantini (talkcontribs)

yea it also works here on 1.37.1 .


also i did not do these 2 lines last install , they are probably not necessary. by chance did you install with out these? if so I'll edit top post.


cd EmbedVideo

git submodule update --init

Pspviwki (talkcontribs)

No need to update the top post. Luck just had it I upgraded from 1.29-2 to 1.37.1 two days ago and downloaded extension version just before the fix. When I tested the fix I uploaded again the old version to production by mistake. People usually put the right files to the right places on second attempt.

Reply to "seems to be fixed: Deprecated: Premature access to service container"

Error message regarding AudioTransformOutput.php

4
Summary by Seb35

Fixed in merge request 139.

Maf654321 (talkcontribs)

On MediaWiki 1.35.2, I have error reporting on, and on every page that contains an embedded audio clip, there is an error message reading as such:

Notice: Undefined variable: class in /var/www/html/extensions/EmbedVideo/classes/media/AudioTransformOutput.php on line 102

Looking online, quite a few other wikis with EmbedAudio seem to be having error messages (if they have left the error reporting on), though, as with mine, functionality seems intact. Any ideas as to what's going on?

Kghbln (talkcontribs)
SemanticPioneer (talkcontribs)

Just add:

$class = "";

in file extensions\EmbedVideo\classes\media\AudioTransformOutput.php

before

if (!empty($options['img-class'])) {

The same error is in extensions\EmbedVideo\classes\media\VideoTransformOutput.php.

The reason is simple: the function returns the media class at the end of the file. If this class does not exist, the function does not create an empty class variable, but still tries to return it: D


Moreover, I think this line, at the end of the function in above files is not correct too:

'class' => $class ?: false,

I think it should be

'class' => $class ? $class : false,

Seb35 (talkcontribs)

This error was fixed in the merge request 139, but it is only in the branch master: for now no official version was issued containing this patch, so you have to apply yourself the patch or use Git to follow the master branch.

2001:16B8:487E:D200:FF16:320E:101C:1F93 (talkcontribs)

So according to the description, using "<youtube>..." should also work, but it doesn't anymore. Now stuck with thousands of inactive embeds. Do I have to manually enable that somewhere?

2001:16B8:48C1:8800:C005:5352:251B:77D9 (talkcontribs)

opened an issue in gitlab for it, but doesnt seem to be very active there either

CayceP (talkcontribs)

@OP: You sure your extension isn't broken/outdated or it's an issue with YT video you try to embed? I use EmbedVideo on a 1.35.x MediaWiki with the 1.35 master extension files currently and the <youtube width=450px></youtube> embed code still work for me.

2001:16B8:485B:2A00:4673:37D2:282A:743 (talkcontribs)

it's the latest mediawiki with the latest version of the extension... not sure what to check to narrow down the problem...

CayceP (talkcontribs)

Do you happen to use any other extension that uses a <youtube> hook?

2001:16B8:487B:D100:612C:B4F1:EB96:841C (talkcontribs)

no

Haseloffjr (talkcontribs)

Mine went funky as well and can be viewed at www.liberty.wiki . Getting this error:


Deprecated: EmbedVideo's extension.json or skin.json does not have manifest_version, this is deprecated since MediaWiki 1.29 in /home2/liberwf9/public_html/includes/debug/MWDebug.php on line 376

Deprecated: Premature access to service container [Called from ConfigFactory::getDefaultInstance in /home2/liberwf9/public_html/includes/config/ConfigFactory.php at line 52] in /home2/liberwf9/public_html/includes/debug/MWDebug.php on line 376

Deprecated: Premature access to service 'HookContainer' [Called from MediaWiki\MediaWikiServices::getInstance in /home2/liberwf9/public_html/includes/MediaWikiServices.php at line 252] in /home2/liberwf9/public_html/includes/debug/MWDebug.php on line 376

Deprecated: Premature access to service 'ObjectFactory' [Called from Wikimedia\Services\ServiceContainer::{closure} in /home2/liberwf9/public_html/includes/ServiceWiring.php at line 535] in /home2/liberwf9/public_html/includes/debug/MWDebug.php on line 376

Deprecated: Premature access to service 'ConfigFactory' [Called from ConfigFactory::getDefaultInstance in /home2/liberwf9/public_html/includes/config/ConfigFactory.php at line 52] in /home2/liberwf9/public_html/includes/debug/MWDebug.php on line 376

Deprecated: Premature access to service 'BootstrapConfig' [Called from Wikimedia\Services\ServiceContainer::{closure} in /home2/liberwf9/public_html/includes/ServiceWiring.php at line 277] in /home2/liberwf9/public_html/includes/debug/MWDebug.php on line 376

2001:16B8:483A:8900:43A4:1BFC:B49:B211 (talkcontribs)

what bugs me also is that their gitlab thing is dead as disco, i mean hardly any issues get answers at all... and that even though it has evolved into a quasi monopoly extension for this use case

CayceP (talkcontribs)

I use the Star Citizen fork instead by now because that one is GDPR-compliant and which is maintained.

Reply to "Old YouTube Tag not working"
PhotographerTom (talkcontribs)
PhotographerTom (talkcontribs)
Reply to "Adding CSPAN as a service"
Josua Koenig (talkcontribs)

Could it be that this extension to 1.36 is not yet running? I always have the following error:

Deprecated:  Premature access to service container [Called from EmbedVideoHooks::onExtension in /var/www/html/extensions/EmbedVideo/EmbedVideo.hooks.php at line 77] in /var/www/html/includes/debug/MWDebug.php on line 376

Deprecated:  Premature access to service 'HookContainer' [Called from MediaWiki\MediaWikiServices::getInstance in /var/www/html/includes/MediaWikiServices.php at line 252] in /var/www/html/includes/debug/MWDebug.php on line 376

Deprecated:  Premature access to service 'ObjectFactory' [Called from Wikimedia\Services\ServiceContainer::{closure} in /var/www/html/includes/ServiceWiring.php at line 535] in /var/www/html/includes/debug/MWDebug.php on line 376

Deprecated:  Premature access to service 'ConfigFactory' [Called from EmbedVideoHooks::onExtension in /var/www/html/extensions/EmbedVideo/EmbedVideo.hooks.php at line 77] in /var/www/html/includes/debug/MWDebug.php on line 376

Deprecated:  Premature access to service 'BootstrapConfig' [Called from Wikimedia\Services\ServiceContainer::{closure} in /var/www/html/includes/ServiceWiring.php at line 277] in /var/www/html/includes/debug/MWDebug.php on line 376
Octfx (talkcontribs)
Josua Koenig (talkcontribs)

Wou, it looks nice. Thanks

Jmkim dot com (talkcontribs)
Octfx (talkcontribs)

The GitLab repo hasn't been updated since 8 months. I've heard that after the gamepedia + fandom merge they are taking every extension in-house, so stuff like embed video won't be maintained anymore

SuperHamster (talkcontribs)

@Octfx Fandom just activated EmbedVideo across all of Fandom today, so they're bound to continue maintaining this. With Fandom on 1.33, I wouldn't expect them to work on this extension until they start working on their next MW upgrade.

Octfx (talkcontribs)

Oh interesting, thanks for the info! But until they implement a more "privacy friendly" mode, I'll maintain the fork over at SCW.

Dinoguy1000 (talkcontribs)

Honestly, these days I think I would recommend using Extension:Widgets instead of this extension, unless you really need some functionality that it has but that Ext:Widgets can't replicate.

RobFantini (talkcontribs)

Dinoguy100: does Extension:Widgets allow for playing local videos? I did not see that capability mentioned at Extension:Widgets . Perhaps there is another option?

we use EmbedVideo just for local iphone generate videos and not for youtube etc.

EmbedVideos works great for our users in MW ver 1.34 ..

Dinoguy1000 (talkcontribs)
RobFantini (talkcontribs)

Hi . thanks for the fast response!

yugipedia.com shows an example of an youtube external video.

we are looking to use local videos like this:

File:Test.mp4

Dinoguy1000 (talkcontribs)

I think for that you'd want to use Widget:Video, though I've never used it myself and can't offer any help with it. That being said, if Ext:EmbedVideo is working fine on your wiki and you have no strong reasons to migrate away from it, you should probably just keep using it for the present, and keep Ext:Widgets as a backup for if EmbedVideo stops working for you one day.

RobFantini (talkcontribs)

I agree with you. We have EV working on 1.34 and 1.36 now [ at the start of my questions I did not know about StarCitizenWiki's extension ]. So continued the thread to learn about possible options later on.

In any case we will be using 1.34 until the awful T212428 bug is fixed. Again thank you for the help.

Reply to "Compatibility 1.36?"

Exception caught: No specifications provided to ArchivedFile constructor.

1
RobFantini (talkcontribs)

got that error uploading a file

solution was to increase these in /etc/php/<version>/apache2/php.ini : post_max_size = 100M

upload_max_filesize = 100M

memory_limit = 128M


note those values should be set to what is sane at your site.

Reply to "Exception caught: No specifications provided to ArchivedFile constructor."

Please support privacy enhanced embedding for YouTube Videos as well for GDPR compliance

2
CayceP (talkcontribs)

Due to GDPR, websites are required to use privacy enhanced embedding for YouTube videos. The extension currently doesn't seem able to parse the privacy enhanced urls which are hosted on a different urls (youtube-nocookie dot com/embed/[YouTubeVideoID]) instead https://www.youtube.com/watch?v=[YouTubeVideoID].

This is what the iframe embed code from YouTube looks like <iframe width="560" height="315" src="https://www.youtube-nocookie dot com/embed/[YouTubeVideoID]" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

(Please note: due to spam filter here I had to change .com to dot com in the URls)

Octfx (talkcontribs)
Reply to "Please support privacy enhanced embedding for YouTube Videos as well for GDPR compliance"

Youtube player lazy load.

1
Martynov Maxim (talkcontribs)
Reply to "Youtube player lazy load."