Extension talk:MediawikiPlayer

FullScreen is Param not Variable
The script was generating the variable

s1.addVariable('allowfullscreen','true')

when it should have been generating

s1.addParam('allowfullscreen','true')

So to fix this I removed ‘allowfullscreen’ => ‘true’ from the $wgMWPlayerDefaultSettings array and hard coded it at the end

$code .= "s1.addParam('allowfullscreen','true');\n";
 * Thanks. Version 0.2.4 fixes this issue --Frantik 19:52, 29 July 2010 (UTC)

Default image and any other setting known as "Flashvars"
I would like to suggest you add support for default images to your extension. All that was needed was a change to the default settings to include $wgMWPlayerDefaultSettings = array(              'width' => '400',               'height' => '300',               'allowfullscreen' => 'true',               'backcolor' => 'eeeeee',               'image' = ' ',               );

and then a command such as

http://www.yourdomain.com/mediafile.flv

can be used to set the preview image.

Thanks for the great extension.


 * You can already set the image and any other setting known as "Flashvars" listed on this page:list of flashvars You don't need to edit the extension file at all, just add the parameter to the tag. --Frantik 05:36, 28 November 2009 (UTC)
 * for example, this is perfectly valid and displays an xspf playlist

http://domain.com/playlist.xspf
 * --Frantik 05:47, 28 November 2009 (UTC)

Use in Template
Is there any way to use link in a template? If I try so Mediawiki just prints it out and doesnt convert it.--Eski123 17:13, 30 November 2009 (UTC)
 * MW parses tags in brackets before other parts of the text, ie before tempates are transcluded. I will look into ways around this for future versions.  --Frantik 16:28, 3 December 2009 (UTC)
 * if you're running 1.12+, look into the #tag magic word: http://www.mediawiki.org/wiki/Help:Magic_words#Miscellaneous

Captions from a different server
Thank you so much for this extension : very useful !

However, I'me having trouble with captions : can't manage to have them appear on a video.

Did anybody succeeded doing this ?

--Dieudo 11:46, 10 December 2009 (UTC)


 * Hi Dieudo, see this page for more information about reading files across domains. You most likely need to set up a crossdomain.xml file.  --Frantik 10:58, 16 December 2009 (UTC)


 * Thank you Frantik for the tip ;-)
 * However, I wonder how it could easely be set up, because for example for the first video on this page : http://fr.nvcwiki.com/index.php/Marshall_Rosenberg/bigpicture.tv I can manage to have the video but not subtitles eventhough they are here : http://fr.nvcwiki.com/images/Marshallrosenberg1.srt and I've set this file : http://fr.nvcwiki.com/images/crossdomain.xml !
 * I don't know at all what could have been done wrong :( --Dieudo 17:04, 16 December 2009 (UTC)
 * I'm not quite sure.. if you notice the player has a small "CC" icon so it seems like it is trying to work. Perhaps try a file with only plain ascii characters?  you may wish to ask for help on the jwplayer forums as well.  --Frantik 00:25, 17 December 2009 (UTC)
 * Thanks for the suggestion Frantik. Here it is : http://www.longtailvideo.com/support/forum/Plugins/21405/Can-t-have-captions-show-within-MediaWiki
 * --Dieudo 09:06, 17 December 2009 (UTC)
 * Some progress here :-) : http://www.dieudo.fr/w/index.php/Marshall_Rosenberg/MediawikiPlayerHTML
 * It's not using the extension, but at least it works ! --Dieudo 20:29, 17 December 2009 (UTC)
 * I see now.. it is because mediawiki doesn't recognize captions.file as a proper argument. :( i'll see what I can do --Frantik 10:44, 24 December 2009 (UTC)

Preview images uploaded to the wiki
I want to use an image that is uploaded to my wiki as preview image in a video. Unfortunately the image= parameter doesn't do the Mediawiki magic to get the actual image from "File:preview.jpg" and therefore the player doesn't display a preview image. Ideally it would scale the image to the size of the player and use it as preview image.

In other words: I'd like to see this to work: File:Mediafile.flv

Can you implement this, please? ;-) --Cboltz 11:34, 14 April 2010 (UTC)
 * this feature is already implemented and will be in the next release.. :) --Frantik 08:48, 17 April 2010 (UTC)

'author' in $wgExtensionCredits
Hi Frantik, your declaration needs to be changed to look ok. Just change it from 'yourname' to 'yourname'. Cheers --kgh 19:42, 28 April 2010 (UTC)

Displaying song info for MP3 playlist
I have JW Player 5.2 installed and Extension:MediawikiPlayer 0.2.4 on MW 1.16.0b2. I can feed an XSPF playlist to http://example.com/myplaylist.xspf and it works as expected, with track forward/backward buttons. But I would like to be able to show information about the track being played so that the user can see what it is they are listening to.

Ideally, I'd like to have a list of the songs in the playlist (maybe as a dropdown list?) that the user could click, in order to select and play a specific track. At a minimum, I'd like to get information displayed from the playlist (at least "title") in the player. The user can then skip forward or backward to the track they are looking for.

I have not been able to get this to work - am I missing something? I tried getting the Infobox plugin working by passing a flashvar to the player, e.g. http://example.com/myplaylist.xspf but that does not generate the infobox as expected.

Any ideas how to get a selectable playlist to show in the player, or at least display the title of the track playing? Thanks for the great extension!
 * You should try something like  and it will display the playlist.  Check out the JW Player's site for more info about flashvars. --Frantik 16:51, 31 July 2010 (UTC)

Generating XSPF playlist from within MediaWiki
I am using MediaWiki as a multilingual content creation platform with a multimedia focus. Having played with the JW Player and this extension, I am optimistic that it could solve the goals of the project, which include:


 * Manage all multimedia content from within MediaWiki
 * Provide downloads of all multimedia content from within MW
 * Stream all multimedia content from within MW
 * Create & publish playlists (and/or podcasts) from within MW

The first three points are already taken care of using MW and JW Player with this extension. The fourth one is an idea that I'd like to suggest as either a feature to add to this extension or possibly the purpose of a new extension.

I have an XSPF playlist stored in a MW page as raw XML that I feed to the JW Player with "?action=raw" appended to the MW URL for the page, which sends only the XML text to the player. What I am wondering is: how hard would it be to make it so this extension can take a standard MW page with links to media content and render it as an XSPF playlist for JW Player? The MW page might look something like:



but be rendered as an XSPF playlist, maybe through a "Special" page.

Or, taking it a step further, if "xspf" was registered as a hook the extension might render the XML playlist and the JW Player in one code block:



Is this possible? Are there any projects like this out there? Would anyone else find this useful?
 * I can develop this feature if you need it for your project. I am familiar with creating XSPF playlists.  You can contact me  here --Frantik 16:46, 31 July 2010 (UTC)
 * I sent you a message. This could be a very useful tool for MW users - I look forward to seeing what you think. --Cyboreal 20:13, 3 August 2010 (UTC)

youtube
can i play youtube play list?--212.138.113.10 06:30, 3 August 2010 (UTC)
 * I'm not sure if JW Player supports Youtube playlists.. you should ask on their site and then use the appropriate flashvars if possible. --Frantik 17:07, 3 August 2010 (UTC)