Extension talk:FramedVideo
Google Video Full-Screen & (-) fix
editClick edit / view source to see coding in correct format!
I just downloaded & modded this extension for the first time today. The Full-Screen Google Video option did not work, so I fixed it. The google video ID sometimes has a - & sometimes not, so I made the default w/o the dash (-). I simplified it down a lot, so you may want to add back in default sizes/ etc. Check out working Full-Screen Google Video option @ MeatIsPoison.com
Step 1: Open FramedVideo.php
Step 2: Replace the google video code around line 200 with... (REPLACE en (from hl=en) with any language code you wish)
$url['googlevideo'] = 'http://video.google.com/googleplayer.swf?docid='. $id .'&hl=en&fs=true';
Step 3: Insert the following code around line 385
} elseif ($type=='googlevideo') { $output.= '<embed src="http://video.google.com/googleplayer.swf?docid='.$id.'&hl=en&fs=true" '
.'allowFullScreen="true" allowScriptAccess="always" type="application/x-shockwave-flash"> </embed>';
Step 4: There is no final steps...
Enjoy
If anyone has modded this extension OR found a better extension to use, then please email me (Austin Wheeler) : avw2@buffalo.edu OR austin@austinvlwheeler.com Thanks. I have listed some other mods that will need to be tackled.
- Thanks for your fixes. They are now implemented into code. Language code issue has been fixed by using $wgLanguageCode in both GoogleVideo and YouTube embed codes. Check out the new version. Ruiz 02:20, 6 October 2008 (UTC)
YouTube Full-Screen
edit- who's got this?
- It's now fixed too. Ruiz 02:20, 6 October 2008 (UTC)
Add additional types in the form of Open Source Video CMS's
edit- Examples
- Vidiscript:
- PHPMotion:
- PHPDirector:
- + Many more:
- This way people could just switch out the url & use it to insert videos from anyones personal site onto their personal wiki (w/ full-screen capabilities of course)
- Do you mean allowing unchecked HTML to be inserted into wiki page? It's not something we need on public wikis becouse it makes XSS attack easy. Ruiz 02:20, 6 October 2008 (UTC)
- No not for public use, just for quicker programming. I mean just having a "default" extension coding for each video cms, & then you can use the find & replace function to quickly insert your own site name. Check out MeatIsPosion.com - I set it up to embed from 2 vidiscript sites: GoldMedal.tv & Halfpipe.tv . I will post this code soon... Now for OsTube, PHPMotion, PHPDirector, etc... Austin Wheeler 01:42, 23 December 2008 (EST)
- OK, I see your point now. However it find it impossible to put over for following reasons:
- VidiScript will need at least three additional parameters: player URL (src=), video URL (file=) and website URL (returnpage=). That can be added, but...
- Let's have a look at PHPmotion sites. Embed code is always the same and we allow users to choose player URL and video URL. They can embed videos from jamesmcavoymedia.org which is OK, but they can also embed videos from vidporn.org which isn't OK at all!
- So we can't be sure of content providen by people using these free scripts. Of course player URL, video URL, website URL and other site-specific URL's and settings can be hardcoded into extension core. And so we come full circle: that's how FramedVideo is written. Nothing will get easier if we have one embed code and three or more site-specific parameters hardcoded.
- The main question is: does anybody needs these sites? I have googled for how people are using FramedVideo and Widgets and my conclusion is: nobody needs anything other than YouTube! Even Wikia for a long time supports only YouTube which were enought for them, I guess. (OK, I saw that medialab-prado.es is using Vimeo.)
Why VideoFlash is so popular? Becouse it's simple and has YouTube support. Or why we have saparate category for YouTube supporting extensions? Or why we have three extensions written just for YouTube?
- I liked your idea, but it's impossible to implement it for FramedVideo which is designed for public sites. You can however put your ideas into effect by writing new extension or doing a FramedVideo's fork. :) Ruiz 08:58, 24 December 2008 (UTC)
- OK, I see your point now. However it find it impossible to put over for following reasons:
DIVX?
editIs anyone working on embedding divx into mediawiki?
No description
editI can embed the actual video but I cant seem to get a description in the frame below the videos i post. I pasted an example video syntax below but the Here's lovelly video doesnt show up. Is there something that I am doing wrong? Thanks for your time. <video type="youtube" id="fb2xPckv0rU" desc="Here's lovelly video"/>
- This has been fixed in version 1.0.4.2. You just need to download it and replace the older files in your extensions/FramedVideo/ directory by the new one. Ruiz 18:00, 10 November 2008 (UTC)
Thanks it worked....I appreciate your help
The fullscreen modes for google and youtube
editThe fullscreen modes for google and youtube do not work on the latest release of mediawiki. What's up with this?
- I found the reason. Bugfix is coming today. Ruiz 16:06, 3 January 2009 (UTC)
- It's fixed now. Ruiz 16:24, 3 January 2009 (UTC)
YouTube HD support
editPlease, can you add showing YouTube HD videos via option parameters (for showing HD videos as default when site is opened)
Thx. --Grof 14:49, 26 February 2009 (UTC)
- Which one do you mean to be default, 480x295 or 595x360? The second one gonna be harder and it's not officialy supporter by YouTube I think. Ruiz 15:29, 26 February 2009 (UTC)
- Can be 480x295, but only what I suggest is that you can use HD video immediately, like using &fmt=22 option parameter, without pressing "watch in HD" link or HD button. Is it possible? --Grof 12:34, 27 February 2009 (UTC)
- Oh, so you don't want 480x295 or 595x360 to be default size when type="youtube", just the HD quality to by default, right?
- Yeah, I can add it as soon as I get access to MediaWiki's svn (FramedVideo has been moved there lately). Not very soon, but I will.
- Meanwhile, if you are familiar with PHP, you can use this tutorial to fix YouTube embed code in
FramedVideo.php
. Ruiz 13:54, 27 February 2009 (UTC)- OK, thx. I'll look at the PHP code as you suggest. --Grof 14:44, 27 February 2009 (UTC)
- Can be 480x295, but only what I suggest is that you can use HD video immediately, like using &fmt=22 option parameter, without pressing "watch in HD" link or HD button. Is it possible? --Grof 12:34, 27 February 2009 (UTC)
VIMEO
editthere seems to be a bug in VIMEO. when i use the height and width supplied by the Vimeo embed-code, it is displayed distorted (horizontal stretch) in the wiki (1.12) --203.206.80.123 10:52, 2 April 2009 (UTC)
- Have you tried using height2 parameter instead of height? Vimeo and Dailymotion needs it for proper scalling, otherwise using width and height gives precisely a flash object with a given size and it may looks crappy. Ruiz 13:25, 2 April 2009 (UTC)
- yes, that triggers this error :
An error has occurred! Video type "vimeo" requires "height" parameter, not only "width" parameter.
- also, "height2" is not spec'd in the parameter grid, although it's mentioned above the grid..hmm
- --203.206.80.123 14:00, 2 April 2009 (UTC)
- OK, I will look at it. Ruiz 14:16, 2 April 2009 (UTC)
- Got it, it was boob in documentation. It's width2 parameter, not height2 (how could I go wrong here?!). Anyway, calling
<video type="vimeo" id="3867409" height="300" width2="402"/>
would gives us that. It's fixing your problem? Ruiz 05:26, 3 April 2009 (UTC)
- it still seems to have a problem. if i use these parameters:
<video type="vimeo" id="1778399" width2="600" height="329" position="left" />
- i get a video size of 270(w) x 152(h), being the FV default size. currently i can only manage to force it to a 600 width with parameters like these:
<video type="vimeo" id="1778399" width="600" height="600" position="left" />
- using the standard width parameter and an oversized height parameter, which Vimeo seems to ignore then.
- --203.206.80.123 02:46, 7 April 2009 (UTC)
- I found the bug. Please download and install the latest version (or ask your admin to do so) and everything should be OK. [
- Vimeo didn't need width2 at all, it's just for blip.tv, so using width="600" height="329" now gives precisely that. Ruiz 07:47, 7 April 2009 (UTC)
Russian translation
edit$messages['ru'] = array(
'framedvideo_default_width' => '270',
'framedvideo_force_default_size' => 'false',
'framedvideo_max_width' => '852',
'framedvideo_max_height' => '510',
'framedvideo_allow_full_screen' => 'true',
'framedvideo_force_allow_full_screen' => 'false',
'framedvideo_frames' => 'true',
'framedvideo_force_frames' => 'false',
'framedvideo_position' => 'right',
'framedvideo_force_position' => 'false',
'framedvideo_errors' => 'Произошли ошибки!',
'framedvideo_error' => 'Произошла ошибка!',
'framedvideo_error_unknown_type' => 'Неопознанный id ("$1") для сервиса видеохостинга: проверьте параметр "type".',
'framedvideo_error_no_id_given' => 'Не хватает параметра "id".',
'framedvideo_error_height_required' => 'Для видео с сервиса "$1" требуется задать параметр "height".',
'framedvideo_error_height_required_not_only_width' => 'Для видео с сервиса "$1" требуется задать не только параметр "width", но и параметр "height".',
'framedvideo_error_width_too_big' => 'Заданное значение параметра "width" слишком большое.',
'framedvideo_error_height_too_big' => 'Заданное значение параметра "height" слишком большое.',
'framedvideo_error_no_integer' => 'Заданное значение "$1" не является положительным числом.',
'framedvideo_error_limit' => 'Найбольшее допустимое значение: $1.',
'framedvideo_error_full_size_not_allowed' => 'Значение "full" параметра "size" не допустимо для сервис видеохостинга "$1".',
'framedvideo_error_see_help' => 'Более подробно о синтаксисе смотрите [[help:Video|страницу помощи]].',
'framedvideo_error_height_and_width_required' => 'Для видео с сервиса "$1" требуется задать параметры "height" и "width2" или "width".',
'framedvideo_desc' => 'Позволяет вставлять видео с различных сервисов видеохостинга',
);
- Hi. Thanks for your work. I'm about to get access to SVN so I'll add your translation there as soon as I'm done. Can I attribute your translation somehow, by nick or by name? Ruiz 00:41, 10 April 2009 (UTC)
- Hi. Yes, you can attribute my translation as Dmitry A. Rud. Thanks. Sun Apr 12 23:58:47 MSD 2009
yahoo video internet explorer 6/7/8
edityahoo video in internet explorer not work correctly
- It's unclosed
embed
tag in FramedVideo.php code. Find the line
} elseif ($type=='yahoovideo') {
- Then, few lines lower find a line:
.'allowFullScreen="true" flashVars="id='.$id.'&lang=en-us&intl=us&thumbUrl=&embed=1" ';
- And change it to:
.'allowFullScreen="true" flashVars="id='.$id.'&lang=en-us&intl=us&thumbUrl=&embed=1" /> ';
- That's all. Ruiz 10:45, 6 June 2009 (UTC)
- hi thanks ; but still in internet explorer logo is appearing over the title of article. youtube google video all other is OK.
this is my code
} elseif ($type=='yahoovideo') { $output.='<object width="'.$width.'" height="'.$height.'">' .'<param name="movie" value="http://d.yimg.com/static.video.yahoo.com/yep/YV_YEP.swf?ver=2.2.4" />' .'<param name="allowFullScreen" value="'.$allowfullscreen.'" />' .'<param name="flashVars" value="id='.$id.'&lang=en-us&intl=us&thumbUrl=&embed=1" />' .'<embed src="http://d.yimg.com/static.video.yahoo.com/yep/YV_YEP.swf?ver=2.2.4" ' .'type="application/x-shockwave-flash" width="'.$width.'" height="'.$height.'" ' .'allowFullScreen="true" flashVars="id='.$id.'&lang=en-us&intl=us&thumbUrl=&embed=1" />';
- Try to refresh cache. The latest uncached version here looks fine now. It would be that link, but for some reason, I can't refresh pages on you wiki. Ruiz 09:13, 7 June 2009 (UTC)
sidebar and logo under the video. i checked many computer 12 thisnew created page
- It's some unclosed tag, but I have no idea which one. Sorry, I can't help you. Ruiz 12:28, 8 June 2009 (UTC)
anyway thanks. now i'm using widget from yahoo video
New Maintainer??
edit- User:Ruiz why have you decided to leave us?
- Is anyone interested in continuing to maintain this extension?
- Is this the newest version? http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/FramedVideo/
Brightcove
editany way to add in extension to work with brightcove videos?
problem with wfLoadExtensionMessages
editWhen you upgrade to the latest version of mediawiki appeared the error
PHP message: PHP Fatal error: Call to undefined function wfLoadExtensionMessages () in
In this article suggest that you remove the piece of code that appears class
So I removed the line 52 of the file and it worked correctly FramedVideo.php