Extension talk:EmbedVideo

ValenciaThunderbolt (talkcontribs)

Has it been added, or if not, when will it?

Dinoguy1000 (talkcontribs)

EmbedVideo hasn't been maintained for years; you should look at its forked version.

Reply to "Apple Music"
2405:9800:B900:9B16:B8F8:DBE9:54A7:B6E9 (talkcontribs)

Would there be consideration for allowing Odysee embeds via this extension?


They offer an <iframe> embed for their videos, which looks like this:


<iframe id="odysee-iframe" width="560" height="315" src="h..ps://odysee.com/$/embed/@garyshobbystudio:7/how-to-use-mediawiki:6?r=3hvd3Bk57eDVauXeq3DqESFuXHBd3cXz" allowfullscreen></iframe>

2405:9800:B900:9B16:AF8B:DD9C:48E6:277B (talkcontribs)

I have attempted to create the entry for Odysee.


There are two parts I have not completed, the regexes, as I am not familiar.


Would anyone be able to adjust the entry so it could be added to the code? Thank you.


'odysee' => [

           'embed'            => '<iframe title="%4$s" src="//odysee.com/$/embed/%1$s" width="%2$d" height="%3$d" frameborder="0" allowfullscreen="true"></iframe>',

           'default_width'    => 640,

           'default_ratio' => 1.77777777778, // (560 / 315)

           'https_enabled'    => true,

           'url_regex'        => [

               '#odysee\.com/$/embed/([\d\w\-_][^/\?\#]+):2?r=BrEUMt77bNfb5yfJKzoiAE8USySMVXHH#is'

           ],

           'id_regex'        => [

               '#^([a-zA-Z0-9]+)$#is'

           ]

       ],

98.97.61.41 (talkcontribs)

Would love to see this working. Youtube censorship is ridiculous.

Reply to "Option for Odysee?"
Summary by Kghbln

Needed for locally hosted files: documented

Kghbln (talkcontribs)

I guess it's just for locally uploaded images or also for content from external video hosters?

Octfx (talkcontribs)

FFmpeg is only invoked for local files through the respective audio and video mediahandlers (at least when using the forked version).

Kghbln (talkcontribs)

Thanks for confirming! I am unsure why I added the question here since I had the forked version in mind.

Embed videos from MS365 / Sharepoint?

6
Frosty9191 (talkcontribs)
Frosty919 (talkcontribs)

Anyone able to embed sharepoint video yet?

PhotographerTom (talkcontribs)

@Frosty9191 - I am very interested in a solution as well.

Octfx (talkcontribs)
PhotographerTom (talkcontribs)

@Octfx - This is wonderful news! Do you have any idea when v3.2.8 will be released?

Octfx (talkcontribs)
Reply to "Embed videos from MS365 / Sharepoint?"
Kghbln (talkcontribs)
Dinoguy1000 (talkcontribs)

Separate from the potential rename, this one should probably be archived. If Fandom ever decides to re-open-source their stuff, and have been maintaining/developing EmbedVideo in that time, it can be unarchived.

As for the rename itself, it's worth noting that extensions listed on Special:Version often link to their MW.org Extension: pages, and EmbedVideo is no exception; if the pages are renamed, this means people following one of these links will end up in the wrong place.

Kghbln (talkcontribs)

In other words: You oppose moving the pages and rather archive this one. Fine with me, too.

Surafbrov (talkcontribs)

What if this version isn't actually unmaintained as it was picked up after the Fandom and Gamepedia purchase and continues to be maintained, albeit for their platform at least and it can be viewed at the new location here github.com/Wikia/EmbedVideo while the gitlab repo is just the legacy version when Gamepedia was still around.

Kghbln (talkcontribs)

Not sure, however, in the meantime it is best to keep things as they are. A pointer to the fork is at the top of the page now. Everybody can use their preferred make of the extension.

Reply to "What about ..."

Private Video on Youtube?

2
Bedtry (talkcontribs)

Is it possible to embed a private video on youtube on my own channel?

FreedomFighterSparrow (talkcontribs)

I don't know if there's another way, but you might want to change the video's status to unlisted instead of private to easily embed it.

Reply to "Private Video on Youtube?"

Not working with MediaWiki 1.39.1

6
87.165.251.52 (talkcontribs)

Not working with MediaWiki 1.39.1, the complete Wiki disappears and produces only a blank page.

Rebastion2 (talkcontribs)

doesn't seem to be in super active development, yet half the world uses it... a bummer

Alex44019 (talkcontribs)

Are you using Star Citizen Wiki's fork?

Rebastion2 (talkcontribs)

me? no

Alex44019 (talkcontribs)

Original EmbedVideo isn't developed anymore since Gamepedia has been bought out by Fandom, and incorporated entirely into Fandom's platform. There's a fork by Star Citizen Wiki that keeps the extension maintained for everyone else - it's linked at the top of the page here, under GDPR-compliant fork.

BertrandGorge (talkcontribs)

Here is the page for the fork : Extension:EmbedVideo (fork). It requires a change in the code since there's no evt in the fork (the original parser function works with both named and unnamed variables).

Reply to "Not working with MediaWiki 1.39.1"
Dave247 (talkcontribs)

Is it possible to use this within a gallery tag? I suppose there's not really much need to, I guess just call it a old habit dealing with a easer way of aligning files on pages.

Reply to "Gallery tag usage"

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

7
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.

RobFantini (talkcontribs)

I ran in to this error when upgrading from 1.37 to 1.39

the issue was solved by:

mv mediawiki/extensions/EmbedVideo/EmbedVideo.hooks.php mediawiki/extensions/EmbedVideo/EmbedVideo.hooks.php.ori

made a new mediawiki/extensions/EmbedVideo/EmbedVideo.hooks.php using https://gitlab.com/jmnote/EmbedVideo/-/blob/master/EmbedVideo.hooks.php

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

Getting the following errors

3
Christharp (talkcontribs)

Deprecated: Premature access to service container [Called from EmbedVideoHooks::onExtension in C:\Users\Chris\Desktop\server\mediawiki-1.38.2-0\apps\mediawiki\htdocs\extensions\EmbedVideo\EmbedVideo.hooks.php at line 77]

Deprecated: Premature access to service 'ConfigFactory' [Called from EmbedVideoHooks::onExtension in C:\Users\Chris\Desktop\server\mediawiki-1.38.2-0\apps\mediawiki\htdocs\extensions\EmbedVideo\EmbedVideo.hooks.php at line 77] in C:\Users\Chris\Desktop\server\mediawiki-1.38.2-0\apps\mediawiki\htdocs\includes\debug\MWDebug.php on line 377

FunkyBeats99 (talkcontribs)
RobFantini (talkcontribs)

Hello

I ran in to this error when upgrading from 1.37 to 1.39


the issue was solved by:

mv mediawiki/extensions/EmbedVideo/EmbedVideo.hooks.php mediawiki/extensions/EmbedVideo/EmbedVideo.hooks.php.ori

made a new mediawiki/extensions/EmbedVideo/EmbedVideo.hooks.php using https://gitlab.com/jmnote/EmbedVideo/-/blob/master/EmbedVideo.hooks.php

Reply to "Getting the following errors"
Return to "EmbedVideo" page.