Extension talk:EmbedVideo/Archive 2/Flow export

--> Archive of previous talk

Embedding a video with a description does not play on mobile view

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


When viewing an embedded video with a description provided on the mobile view the description and the text following the description overlap. Doing a clear all does not help here. [[kgh]] (talk) 15:55, 21 February 2019 (UTC)

The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Spotify embed support

That would be really great, it works great on Facebook, too. I think Spotify supplies essential tags so this could be accomplished 2001:16B8:489D:5700:A852:96D9:9AAF:790 (talk) 17:21, 11 May 2019 (UTC)

I don't know if any of the current devs of this extension watch its talk page here; the best place to leave feature requests would be Gitlab.
According to this issue, Spotify embedding was added a few days ago, though a new version of the extension hasn't yet been cut, so if you want the support now, you'll have to download the latest revision of the extension. ディノ千?!☎ Dinoguy1000 03:56, 12 May 2019 (UTC)
Awesome idea/feature request, which I second :-). Looking for the stable release. CayceP (talk) 11:12, 18 June 2019 (UTC)

Hi. Just installed EmbedVideo 2.8.0 on my private MW 1.31 site. No issues on the install, but I'm not sure how to use it to embed videos in pages that are external link to the MP4 files. I see that it states clearly that it will handle MP4 files that are uploaded to the wiki, but how to embed video players that play links to external MP4 files? Thanks! Revansx (talk) 21:11, 24 July 2019 (UTC)

bitChute?

Why is bitChute not supported? Manorainjan 17:07, 27 August 2019 (UTC)

No video shown in Firefox on Mac

On my Mac locally stored videos are shown in Safari, but not Firefox. Does anybody know this behavior? 94.217.90.112 (talk) 11:48, 1 September 2019 (UTC)

Doesn't Autoplay or Work with Playlists

It doesn't autoplay videos and doesn't play random songs from playlists, always starting with the same video despite random being set to on. ExportTester (talk) 01:10, 15 September 2019 (UTC)

Doesn't embed uploaded MP4 files, am I missing something?

When I try to embed an uploaded .MP4 file I use the "{{#evu:*link to mp4 on http server*|alignment=right}}" and get the result back "Couldn't parse video from *link to mp4 on http server*" DigitalManiak3k (talk) 18:17, 10 October 2019 (UTC)

Installation problems

As soon as I include the parameter wfLoadExtension( 'EmbedVideo' ); in the LocalSettings.php file I get a server error when I try and access my wiki. It's like it can't find the extension code, but that is all present in the specified directories. Has anybody else experienced similar issue? Kevin Perkin (talk) 18:34, 10 October 2019 (UTC)

coub.com support

What about coub.com support for this extension? Aka sektor (talk) 14:59, 14 December 2019 (UTC)

The extension is still experimental

Why is this extension listed as stable if it hasn't been tested on windows? Why aren't windows and ffmpeg even mentioned in the documentation? TespSam (talk) 19:34, 3 January 2020 (UTC)

Probably because most people don't run MediaWiki on Windows... Also, you might want to tell people what is the actual issue you are facing. FFS Talk 11:36, 6 January 2020 (UTC)
I have a requirement to run windows on my server. The issue I'm having is that people have made assumptions. Everyone knows what happens when you assume things.
Extension looks for ffprobe in the the /usr/bin directory so that it can execute it as a shell command. Helpful suggestions have included things like "add the /usr/bin directory to the php config on your windows server" and "why aren't you running linux". I put a try catch block around it as the functionality is apparently entirely unnecessary. Seems to work fine on my test environment so I might push to production. TespSam (talk) 16:27, 7 January 2020 (UTC)
It looks like v2.5.2 aims to fix your issue. FFS Talk 08:41, 9 January 2020 (UTC)
That's cool, I'm on v2.7.3. TespSam (talk) 20:41, 9 January 2020 (UTC)
My bad, I was looking at the dates completely wrong and figured it was something new... I'll try to fix this soon.
Edit: I took a look, and I cannot see where you would have this problem. The FFProbe class indeed checks for ffprobe, but uses a file_exists function before trying to use it, so it shouldn't cause any problems. This is certainly true in v2.7.3. What specific error are you getting? FFS Talk 18:18, 16 January 2020 (UTC)

Embed video based on file directory

I am using a local Mediawiki, and i have a video file just say at "c:\video.mp4".

Is it possible to embed this video in the mediawiki? AmazingTrans (talk) 18:29, 21 January 2020 (UTC)

I have a quick question. Would this extension create a corresponding File:* page for a youtube link so I can start using that File:* to create gallery of thumbnails etc using MediaWIki's usual media/files related features? TitusiMW (talk) 15:51, 1 June 2020 (UTC)

Nope. A feature like that would be useful, though (I've had a few times I've missed it while working on a wiki). Wikia/FANDOM's video tool does have that feature, though I don't know where in their codebase you'd have to look to see how it's implemented (and it's anyone's guess how much work it'd be to port that functionality to be usable on a vanilla installation). ディノ千?!☎ Dinoguy1000 21:13, 1 June 2020 (UTC)

Example video

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


@Pppery: could we use a video that isn't religious for the example image and code samples throughout the page? WMF properties have enough biases as it is, without adding a religious bias as well. ディノ千?!☎ Dinoguy1000 21:14, 3 June 2020 (UTC)

Ugh. (I just chose a video semi-randomly from c:Category:Media from YouTube that interested me, without paying much attention to its content) * Pppery * it has begun 21:15, 3 June 2020 (UTC)
Having a boring-looking video might be best anyways, since it'd discourage people from focusing on the video choice much. ディノ千?!☎ Dinoguy1000 21:29, 3 June 2020 (UTC)
It seems a little far-fetched to me that someone would make a claim of bias that the documentation for a video-embedding extension shows a video that happens to be religious.
Nevertheless, I would be willing to re-make this screenshot if someone else provides me with a link to a suitable creative-commons-licensed video on YouTube -- I don't feel like searching for a video that no one could possibly claim is objectionable myself. * Pppery * it has begun 21:32, 3 June 2020 (UTC)
@Pppery: This was an eye-opener to me too. I knew immediately from looking at it that this was footage of Stephen Anderson, the same radical Baptist preacher who has publicly exclaimed that he wants the government to execute homosexuals! I'm not accusing you of religious bias here, since you picked the video at random and you may not even have been aware of who Anderson is and his horrible beliefs, but we really shouldn't be including anything religious or political, especially something from a blatantly bigoted preacher, in technical documentation that has nothing to do with religion or politics. I ask that you please remove the image and find a different video example to use here. Even just an image depicting a man like this is highly inappropriate and can be taken both as highly offensive and that MediaWiki has a fundamentalist Baptist bias. SnowyCinema (talk) 20:26, 23 November 2020 (UTC)
I repeat my offer from earlier. I'll remake the screenshot if somebody else provides a source creative-commons-licensed video. * Pppery * it has begun 20:28, 23 November 2020 (UTC)
Since you asked for a video example, I found this one in just a few minutes: from the Wikimedia Foundation's YouTube channel, look up "Knowledge Belongs to All of Us". This kind of video seems appropriate for technical documentation as an inoffensive and non-political example. (I tried to send you a video link here but the stupid filter disallowed it. It should know better; I've been active for years on several WMF projects through this account!) SnowyCinema (talk) 20:31, 23 November 2020 (UTC)
OK, Yes Done. * Pppery * it has begun 20:50, 23 November 2020 (UTC)
Pppery, eEveryone has a thing so asking someone to post a suitable video link vs just comment on yours is a good idea. That one would not bother me at all as I simply would not pay attention to it. Emikulic (talk) 20:45, 21 December 2020 (UTC)
Admittedly I might be sensitized to it because I was raised in a Baptist church. That being said, I don't think we should say "it's just a hypothetical so there's no reason to bother", especially when we have so many potential alternatives. I'll probably poke around and see if I can find something else after a bit. ディノ千?!☎ Dinoguy1000 23:01, 3 June 2020 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Add "Embed Video" icon to WikiEditor toolbar

If you are using EmbedVideo in combination with Extension:WikiEditor, you might want to make it easier for your users to insert a video. It is quite easy to add an icon to the toolbar which automatically inserts the code snippet required for embedding. Simply add the following to you LocalSettings.php:

$wgUseSiteJs = true;


Then, open the page "MediaWiki:Common.js" on your wiki and insert the following:

var customizeToolbar = function () {
  $('#wpTextbox1').wikiEditor('addToToolbar', {
      section: 'advanced',
      group: 'insert',
      tools: {
        "Video": {
          label: 'Embed video',
          type: 'button',
          icon: '//upload.wikimedia.org/wikipedia/commons/6/64/Video_Camera_-_The_Noun_Project.svg',
          action: {
            type: 'encapsulate',
            options: {
              pre: '{{#ev:youtube|',
              peri: "Link to YouTube video",
              post: '|400|right|Caption}}'
            }
          }
        }
      }
    });
};
    
    /* Check if view is in edit mode and that the required modules are available. Then, customize the toolbar … */
    if ( [ 'edit', 'submit' ].indexOf( mw.config.get( 'wgAction' ) ) !== -1 ) {
    mw.loader.using( 'user.options' ).then( function () {
    if ( mw.user.options.get( 'usebetatoolbar' ) == 1 ) {
      $.when(
        mw.loader.using( 'ext.wikiEditor' ), $.ready
      ).then( customizeToolbar );
    }
  } );
}


Of course, you can change the default parameters of the video and also the icon. Just visit https://commons.wikimedia.org/wiki/Main_Page and look for a better one. And for more information about editing the toolbar, see Extension:WikiEditor/Toolbar customization.

Have fun!


Felix Englisch (talk) 01:51, 22 June 2020 (UTC)

Thanks Felix for updating you code, I removed my copy. Uncopy (talk) 07:48, 22 June 2020 (UTC)
Thank you, User:Uncopy, that helped a lot! Due to your reply I also found some mistakes in my code (which are still in yours, I am sorry), so this was more than helpful. Felix Englisch (talk) 13:01, 22 June 2020 (UTC)

VisualEditor

Embedded videos don't appear nicely in the VisualEditor, is it possible for this to be fixed, or to add some wikitext surrounding the video that'll hide it when the VisualEditor is opened? Garuda3 (talk) 19:44, 4 December 2020 (UTC)

mp4 upload fails when EmbedVideo extension enabled

I just installed the EmbedVideo extension on my personal wiki (1.35.1) and it works fine with .mp4 files that had previously been uploaded to my wiki. After enabling the extension I tried to upload a new .mp4 to the wiki and I get the following internal error message. I can upload other file types (e.g. *.pdf) fine.

[8fe29de11236b2126af20734] /mediawiki-1.35.1/index.php/Special:Upload Error from line 119 of /var/www/html/mediawiki-1.35.1/extensions/EmbedVideo/classes/media/FFProbe.php: Call to undefined method FSFile::getLocalRefPath()
Backtrace:
#0 /var/www/html/mediawiki-1.35.1/extensions/EmbedVideo/classes/media/FFProbe.php(136): EmbedVideo\FFProbe->getFilePath()
#1 /var/www/html/mediawiki-1.35.1/extensions/EmbedVideo/classes/media/FFProbe.php(48): EmbedVideo\FFProbe->invokeFFProbe()
#2 /var/www/html/mediawiki-1.35.1/extensions/EmbedVideo/classes/media/FFProbe.php(68): EmbedVideo\FFProbe->getMetaData()
#3 /var/www/html/mediawiki-1.35.1/extensions/EmbedVideo/classes/media/VideoHandler.php(103): EmbedVideo\FFProbe->getStream()
#4 /var/www/html/mediawiki-1.35.1/includes/utils/MWFileProps.php(89): EmbedVideo\VideoHandler->getImageSize()
#5 /var/www/html/mediawiki-1.35.1/includes/upload/UploadBase.php(547): MWFileProps->getPropsFromPath()
#6 /var/www/html/mediawiki-1.35.1/includes/upload/UploadBase.php(482): UploadBase->verifyPartialFile()
#7 /var/www/html/mediawiki-1.35.1/includes/upload/UploadBase.php(390): UploadBase->verifyFile()
#8 /var/www/html/mediawiki-1.35.1/includes/upload/UploadFromFile.php(95): UploadBase->verifyUpload()
#9 /var/www/html/mediawiki-1.35.1/includes/specials/SpecialUpload.php(516): UploadFromFile->verifyUpload()
#10 /var/www/html/mediawiki-1.35.1/includes/specials/SpecialUpload.php(214): SpecialUpload->processUpload()
#11 /var/www/html/mediawiki-1.35.1/includes/specialpage/SpecialPage.php(600): SpecialUpload->execute()
#12 /var/www/html/mediawiki-1.35.1/includes/specialpage/SpecialPageFactory.php(635): SpecialPage->run()
#13 /var/www/html/mediawiki-1.35.1/includes/MediaWiki.php(307): MediaWiki\SpecialPage\SpecialPageFactory->executePath()
#14 /var/www/html/mediawiki-1.35.1/includes/MediaWiki.php(940): MediaWiki->performRequest()
#15 /var/www/html/mediawiki-1.35.1/includes/MediaWiki.php(543): MediaWiki->main()
#16 /var/www/html/mediawiki-1.35.1/index.php(53): MediaWiki->run()
#17 /var/www/html/mediawiki-1.35.1/index.php(46): wfIndexMain()
#18 {main}

Below is what I have in my LocalSettings.php. If I comment out the wfLoadExtension( 'EmbedVideo' ); line then I am able to upload .mp4 files no problem. So, as a work around that is what i'm doing. After uploading the files I then uncomment that line and the EmbedVideo extension works fine.

wfLoadExtension( 'EmbedVideo' );
$wgEmbedVideoEnableVideoHandler = true;
$wgEmbedVideoEnableAudioHandler = true;
$wgEmbedVideoAddFileExtensions = false;

Is this a known bug?

I'm running MediaWiki 1.35.1 on Ubuntu Mate 20.10 (Groovy Gorilla). PHP 7.4.9, MariaDB 10.3.25. The EmbedVideo extension is version 2.8.0. Relayman357 (talk) 21:30, 17 January 2021 (UTC)

After updating EmbedVideo to v2.9.0 I received the same error:
Error from line 119 of extensions/EmbedVideo/classes/media/FFProbe.php: Call to undefined method FSFile::getLocalRefPath()
I was not able to solve the problem and had to downgrade to version 2.8.0 Bozhob (talk) 15:15, 22 January 2021 (UTC)

How to add loop and autoplay commands to locally uploaded videos

I wold like to add commands like autoplay and loop to a video that is locally uploaded 77.58.82.123 (talk) 21:12, 6 February 2021 (UTC)

OGV from Instant Commons

EmbedVideo only plays audio (no video) for OGV files from Instant Commons. Nicole Sharp (talk) 05:18, 27 February 2021 (UTC)

[[file:Apollo 11 Landing - first steps on the moon.ogv|frame|left|Video: [[wikipedia:Apollo 11|Apollo 11]].]]
[[file:The Eagle Has Landed, The Flight of Apollo 11, 1969.webm|frame|left|Video: Apollo 11.]]

Nicole Sharp (talk) 05:18, 27 February 2021 (UTC)

Youtube player lazy load.

Hi.


I've added a support of lazy loading Youtube player. This speeds up page rendering and improves SEO for Google algorithms. Link to a merge request: https://gitlab.com/hydrawiki/extensions/EmbedVideo/-/merge_requests/144 Martynov Maxim (talk) 20:22, 7 March 2021 (UTC)

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

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) CayceP (talk) 15:18, 16 March 2021 (UTC)

This fork https://github.com/StarCitizenWiki/mediawiki-extensions-EmbedVideo focuses on a more privacy centric version of EmbedVideo
Note that only youtube, spotify, vimeo and archive.org is supported
And every parser function but #ev and the parser tags are removed Octfx (talk) 21:38, 23 April 2021 (UTC)

Old YouTube Tag not working

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:487E:D200:FF16:320E:101C:1F93 (talk) 15:35, 27 March 2021 (UTC)

opened an issue in gitlab for it, but doesnt seem to be very active there either 2001:16B8:48C1:8800:C005:5352:251B:77D9 (talk) 09:21, 30 March 2021 (UTC)
@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. CayceP (talk) 19:43, 6 April 2021 (UTC)
it's the latest mediawiki with the latest version of the extension... not sure what to check to narrow down the problem... 2001:16B8:485B:2A00:4673:37D2:282A:743 (talk) 09:57, 17 April 2021 (UTC)
Do you happen to use any other extension that uses a <youtube> hook? CayceP (talk) 15:46, 25 April 2021 (UTC)
no 2001:16B8:487B:D100:612C:B4F1:EB96:841C (talk) 16:34, 30 April 2021 (UTC)
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 Haseloffjr (talk) 02:52, 30 May 2021 (UTC)
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 2001:16B8:483A:8900:43A4:1BFC:B49:B211 (talk) 11:23, 31 May 2021 (UTC)
I use the Star Citizen fork instead by now because that one is GDPR-compliant and which is maintained. CayceP (talk) 14:02, 1 November 2021 (UTC)

Compatibility 1.36?

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 Josua Koenig (talk) 09:48, 7 June 2021 (UTC)
https://github.com/StarCitizenWiki/mediawiki-extensions-EmbedVideo should work (if you only use the #ev parser function) Octfx (talk) 11:50, 8 June 2021 (UTC)
Wou, it looks nice. Thanks Josua Koenig (talk) 14:50, 8 June 2021 (UTC)
I sent a merge request. Check this out.
https://gitlab.com/hydrawiki/extensions/EmbedVideo/-/merge_requests/148 Jmkim dot com (talk) 14:15, 6 July 2021 (UTC)
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 Octfx (talk) 14:28, 6 July 2021 (UTC)
@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. ~SuperHamster Talk Contribs 18:28, 11 August 2021 (UTC)
Oh interesting, thanks for the info!
But until they implement a more "privacy friendly" mode, I'll maintain the fork over at SCW. Octfx (talk) 08:02, 12 August 2021 (UTC)
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. ディノ千?!☎ Dinoguy1000 21:10, 7 June 2021 (UTC)
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 .. RobFantini (talk) 01:48, 10 August 2021 (UTC)
It does, see for example https://yugipedia.com/wiki/-OZONE-#Video. You can find prewritten widgets for use with the extension on https://mediawikiwidgets.org (though registration is required to view them, unfortunately). ディノ千?!☎ Dinoguy1000 11:03, 10 August 2021 (UTC)
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
RobFantini (talk) 13:15, 10 August 2021 (UTC)
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. ディノ千?!☎ Dinoguy1000 19:38, 10 August 2021 (UTC)
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. RobFantini (talk) 19:50, 10 August 2021 (UTC)

Error message regarding AudioTransformOutput.php

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


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? Maf654321 (talk) 15:30, 15 June 2021 (UTC)

I am getting this, too. Reported on GitLab with issue 4783 [[kgh]] (talk) 14:58, 23 June 2021 (UTC)
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, SemanticPioneer (talk) 20:13, 26 June 2021 (UTC)
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. ~ Seb35 [^_^] 11:59, 29 November 2021 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Exception caught: No specifications provided to ArchivedFile constructor.

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. RobFantini (talk) 14:26, 26 July 2021 (UTC)

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

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

RobFantini (talk) 09:01, 10 August 2021 (UTC)

Alas, it's not fixed, have the same problem on MediaWiki 1.37. Аргскригициониец (talk) 17:56, 8 January 2022 (UTC)
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 (talk) 21:11, 8 January 2022 (UTC)
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. Pspviwki (talk) 21:54, 8 January 2022 (UTC)
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 RobFantini (talk) 23:01, 8 January 2022 (UTC)
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. Pspviwki (talk) 19:41, 9 January 2022 (UTC)
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 RobFantini (talk) 21:20, 4 December 2022 (UTC)

Adding CSPAN as a service

C-SPAN has thousands of United States related videos. As of today, they are claiming 252,938,057 total video views of items in their Video Library. Would it be possible to add it as one of the Extension:EmbedVideo#Supported services? PhotographerTom (talk) 17:51, 13 October 2021 (UTC)

An example embed code from https://www.c-span.org/video/?515241-1/president-biden-arrival-chicago is below.
<iframe width=512 height=330 src='https://www.c-span.org/video/standalone/?515241-1/president-biden-arrival-chicago' allowfullscreen='allowfullscreen' frameborder=0></iframe> PhotographerTom (talk) 17:52, 13 October 2021 (UTC)

Trying to make video start at a specific time code

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

What may I be doing wrong? MusicoTeorico (talk) 11:53, 29 December 2021 (UTC)

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. MusicoTeorico (talk) 20:36, 22 January 2022 (UTC)

Allow full screen

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 MusicoTeorico (talk) 15:26, 2 April 2022 (UTC)

Facebook

Extension:EmbedVideo#Version_history 2.9.0 states "Add facebook video embeds."

What is the service name that makes this function? "facebook" does not work. Scarecroe (talk) 23:32, 2 August 2022 (UTC)

It should be facebook. https://gitlab.com/hydrawiki/extensions/EmbedVideo#supported-services Prod (talk) 16:40, 3 August 2022 (UTC)

Getting the following errors

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 Christharp (talk) 15:49, 3 August 2022 (UTC)

These deprecation notices seem to have been solved by a developer of the extension:
https://gitlab.com/hydrawiki/extensions/EmbedVideo/-/merge_requests/148?commit_id=e1e965527e19a00de34e534f87d6b7cdae8b262f
You can easily change yourself the few lines of code that cause that.
Warning : as of today, these changes have not yet been merged into the master branch of code, so you should test to make sure it doesn't break the extension. FunkyBeats99 (talk) 15:57, 4 November 2022 (UTC)
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 RobFantini (talk) 21:18, 4 December 2022 (UTC)

Something's preventing YT embeds from working properly on my wiki

I have it working on one wiki: [https://companybumpers.miraheze.org/wiki/Template:YouTube2 but when I tried to start using it on the other, none of the videos work. https://avid.miraheze.org/wiki/Walt_Disney_Pictures. At first glance it looks like the id parameter is somehow wrong, but sometimes, the correct video will momentarily appear before the error kicks in. It's like the video ID is being prevented from passing properly by... something. I have no idea why it's doing this. (edited) Hb1290 (talk) 05:39, 29 September 2022 (UTC)

Fixed it. I had some old javascript in the Gadget namespace causing a conflict Hb1290 (talk) 06:12, 29 September 2022 (UTC)

Embed videos from MS365 / Sharepoint?

Microsoft is retiring Stream and moving to SharePoint in CY2023. Ugh - Stream (Classic) was working fine.

Any way we can embed videos from the new MS Office, which uses SharePoint as a back end? Been uploading to MS Stream separately, and that works but it's a pain.


Links appear in the format

https://DOMAIN-my.sharepoint.com/:v:/r/personal/USER/Documents/VIDEO.mp4 Frosty9191 (talk) 09:59, 26 October 2022 (UTC)

Anyone able to embed sharepoint video yet? Frosty919 (talk) 13:09, 6 July 2023 (UTC)
@Frosty9191 - I am very interested in a solution as well. PhotographerTom (talk) 18:31, 11 July 2023 (UTC)
This is now possible using the development branch of EmbedVideo (fork)
https://github.com/StarCitizenWiki/mediawiki-extensions-EmbedVideo/tree/develop
And will be available in v3.2.8 when it is released Octfx (talk) 11:04, 4 August 2023 (UTC)
@Octfx - This is wonderful news! Do you have any idea when v3.2.8 will be released? PhotographerTom (talk) 16:55, 30 August 2023 (UTC)
v3.2.8 was released 3 weeks ago.
If you are on the latest MW (LTS) Version and on PHP8.0+ you can use version v3.3.0!
https://github.com/StarCitizenWiki/mediawiki-extensions-EmbedVideo/releases
For more info about embedding sharepoint videos see this issue: https://github.com/StarCitizenWiki/mediawiki-extensions-EmbedVideo/issues/60#issuecomment-1641493146 Octfx (talk) 06:09, 31 August 2023 (UTC)

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. Dave247 (talk) 16:38, 9 December 2022 (UTC)

Not working with MediaWiki 1.39.1

Not working with MediaWiki 1.39.1, the complete Wiki disappears and produces only a blank page. 87.165.251.52 (talk) 09:48, 3 January 2023 (UTC)

doesn't seem to be in super active development, yet half the world uses it... a bummer Rebastion2 (talk) 11:12, 18 January 2023 (UTC)
Are you using Star Citizen Wiki's fork? Alex44019 (talk) 11:15, 18 January 2023 (UTC)
me? no Rebastion2 (talk) 15:08, 18 January 2023 (UTC)
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. Alex44019 (talk) 05:44, 19 January 2023 (UTC)
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). BertrandGorge (talk) 09:38, 20 April 2023 (UTC)

Private Video on Youtube?

Is it possible to embed a private video on youtube on my own channel? Bedtry (talk) 18:46, 14 April 2023 (UTC)

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. FFS Talk 21:36, 2 May 2023 (UTC)

Option for Odysee?

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:B8F8:DBE9:54A7:B6E9 (talk) 07:25, 5 May 2023 (UTC)

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'
           ]
       ], 2405:9800:B900:9B16:AF8B:DD9C:48E6:277B (talk) 06:24, 7 May 2023 (UTC)
Would love to see this working. Youtube censorship is ridiculous. 98.97.61.41 (talk) 01:26, 26 October 2023 (UTC)

What about ...

... moving this extension to Extension:EmbedVideo (Hydra) and move Extension:EmbedVideo (fork) to this place, i.e., Extension:EmbedVideo. Since this one is unmaintained and abandoned, it would help to get people to the correct docu more direct. [[kgh]] (talk) 09:54, 5 May 2023 (UTC)

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. ディノ千?!☎ Dinoguy1000 18:44, 5 May 2023 (UTC)
In other words: You oppose moving the pages and rather archive this one. Fine with me, too. [[kgh]] (talk) 20:21, 5 May 2023 (UTC)
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. Surafbrov (talk) 21:03, 7 June 2023 (UTC)
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. [[kgh]] (talk) 07:47, 8 June 2023 (UTC)

ffmpeg required?!

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


I guess it's just for locally uploaded images or also for content from external video hosters? [[kgh]] (talk) 10:20, 17 October 2023 (UTC)

FFmpeg is only invoked for local files through the respective audio and video mediahandlers (at least when using the forked version). Octfx (talk) 13:37, 17 October 2023 (UTC)
Thanks for confirming! I am unsure why I added the question here since I had the forked version in mind. [[kgh]] (talk) 16:12, 17 October 2023 (UTC)
The discussion above is closed. Please do not modify it. No further edits should be made to this discussion.

Apple Music

Has it been added, or if not, when will it? ValenciaThunderbolt (talk) 20:47, 7 January 2024 (UTC)

EmbedVideo hasn't been maintained for years; you should look at its forked version. ディノ千?!☎ Dinoguy1000 21:18, 7 January 2024 (UTC)

Erreur pour la première utilisation EmbedVideo

Produit Version
MediaWiki 1.41.1
PHP 8.2.22 (cgi-fcgi)
ICU 67.1
MariaDB 10.6.15-MariaDB-log
EmbedVideo 2.8.0 MIT

Commande : {{#ev:youtube|lFb3iAA3C8A}}

L'erreur affichée :

Aperçu non chargé

[ZtR-ps6QHie2gTpVHaOuJgAAADU] Exception caught: Call to a member function addModules() on null


Pouvez-vous m'aider ?

Merci 2A01:E0A:501:9090:69CD:5EE4:BB26:4CED (talk) 15:03, 1 September 2024 (UTC)

It seems to me that the extension no longer works with the latest versions of mediawiki. And that's unlikely to change as it's no longer updated.
Use the https://www.mediawiki.org/wiki/Extension:EmbedVideo_(fork) extension.
It's pretty much the same and it works. Nanash (talk) 00:28, 9 September 2024 (UTC)

Trying to embed a twitch clip

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, It's moon (talk) 17:18, 22 October 2024 (UTC)

Nevermind, this is already supported by using {{#ev:twitchclip|DarlingVibrantBottleKappaClaus}}. It just was not documented properly, which I already fixed.
It's moon (talk) 14:38, 13 February 2025 (UTC)
Category:Talk pages with broken file links Category:Talk pages with syntax highlighting errors