Extension talk:Dhflashplayer
Contents |
[edit] Subtitles don't show
First, I'm a bit puzzled by the previous entry that is on modifying code in the file flashow.php, while this extension is based on the file dhflashplayer.php.
My problem: I can extend the variables to include an image at the start, but I cannot extend the variables to display subtitles.
[edit] How to include an image at the start
In this section of dhflashplayer.php
//get parameters from argument-array
//(if you need an extra parameter, add it here and in the Final Output code)
$file = @$args["file"];
$width = @$args["width"];
$height = @$args["height"] + 20; //adding player's toolbar height
$path = @$args["path"];
I addedd one line
$image = @$args["image"];
and in the section on
// Final Output
I added the line
so.addVariable(\"image\",\"".$image."\");
On the page in mediawiki I gave the full url to the image like this
<dhflashplayer>file=xy.flv|width=480|height=320|path=http://etc/|image=http://etc/xy.jpg</dhflashplayer>
[edit] Variable captions does not work
I tried the same to get subtitles, but this time I had no luck. In all the places where it said image I placed captions. In the source of the webpage (in mediawiki) I'm told that the captions were loaded, but they don't show up. The capital "T" in the player that allows to switch subtitles on and off is also visible, but somehow the captions do not appear.
I tried the same on two different sites. Subtitles are displayed on a site in html but not on the almost identical page in wiki-format. Does anyone have an idea of what went wrong? Note: The page(s) are in German, the spoken words are in Turkish and the subtitles should be in German again.--Ob.helm 09:44, 9 December 2008 (UTC)
[edit] Dhflashplayer website address within php?
Hi. The problem I am having is websites are stealing my video content which is eating up my bandwidth. I only use videos from one url so is it possible to add a static url to the php code instead of having it openly visible on my wiki?
I tried adding it myself but I haven't a clue about php (or coding in general) so you can probably guess that this didn't work out very well.
Also the url changes depending on the month and year e.g yadayada.com/2008/12/blah.flv - yadayada.com/2009/01/blah2.flv I think this is done with parameters but I am pretty clueless.
Help will be VERY much appreciated.
Thank You.