Seite 1 von 1

JW FLV Player als BBCode ?

Verfasst: 23.02.2009 16:38
von derkubi
Hallo , geht um diesen Player : http://www.longtailvideo.com/players/jw-flv-player/

Den möchte ich gerne als BBCode einbauen und damit Videos vom eigenen Webspace abspielen zu lassen . So soll es in HTML eingebaut werden :

Installation

This section details a step-by-step process of how to install the JW FLV Player onto your page. The download ZIP contains everything you need to get started.

Step 1: Transfer the player.swf and swfobject.js file from the ZIP to your website. (Make sure that you’ve also uploaded all the necessary videos / songs / images to your site.)

Step 2: Embed the player in your HTML page with the lines of code below. Note: If you place the files in different directories, make sure to set the references in this code accordingly.

Code: Alles auswählen

<p id='preview'>The player will show in this paragraph</p>

<script type='text/javascript' src='swfobject.js'></script>
<script type='text/javascript'>
var s1 = new SWFObject('player.swf','player','400','300','9');
s1.addParam('allowfullscreen','true');
s1.addParam('allowscriptaccess','always');
s1.addParam('flashvars','file=video.flv');
s1.write('preview');
</script>
Notice the flashvars parameter above can contain a list of variables for configuring the player to use different Plugins or Skins. To quickly set up flashvars, use the setup wizard. Simply choose an example, select the variables you want to use and paste the code onto your page. It’s that easy.

Ich habe die Software vom Download in den Ordner root/mediaplayer kopiert , die Videos sollen in den Ordner root/videos . Wie müßter der BBCode nun aussehen ?

Re: JW FLV Player als BBCode ?

Verfasst: 23.02.2009 16:46
von 4seven
da sind doch genügend beispiele auf der hauptseite des autors.

zumal ich die java-variante nicht bevorzuge, sondern die hier
http://sekuro.se.funpic.de/phpbb3/viewt ... ?f=13&t=21

- BBCode-Benutzung

Code: Alles auswählen

[flv]{URL}[/flv]
- HTML-Ersetzung

Code: Alles auswählen

<object type="application/x-shockwave-flash" style="width:425px; height:350px;" data="http://www.yourforum.de/media/flv/mediaplayer.swf">
<param name="movie" value="http://www.yourforum.de/media/flv/mediaplayer.swf" />
<param name="FlashVars" value="file={URL}" />
</object>

Re: JW FLV Player als BBCode ?

Verfasst: 23.02.2009 20:49
von derkubi
Hmmm , funzt soweit ganz gut . Der Grund warum ich diesen Player nehmen wollte ist die Fullscreen-Option , die funktioniert aber nicht , in Deinem Beispiellink aber schon ....

EDIT :

Geht mit allowfullscreen="true"

Code: Alles auswählen

<object type="application/x-shockwave-flash" style="width:425px; height:350px;" allowfullscreen="true"; data="http://de-wangeroogers.de/mediaplayer/player.swf">
<param name="movie"  value="http://de-wangeroogers.de/mediaplayer/player.swf" />
<param name="FlashVars" value="file={URL}" />
</object> 
Thanks ...

Re: JW FLV Player als BBCode ?

Verfasst: 23.02.2009 21:25
von 4seven
"FlashVars"
großschreibung ist zu vermeiden (wegen xhtml 1.0 strict)

und, so ist besser (wegen xhtml 1.0 strict)
<object type="application/x-shockwave-flash" style="width:425px; height:350px;" data="http://sekuro.se.funpic.de/media/mediaplayer.swf">
<param name="movie" value="http://sekuro.se.funpic.de/media/mediaplayer.swf" />
<param name="allowfullscreen" value="true" />
<param name="flashvars" value="file={URL}" />
</object>

Re: JW FLV Player als BBCode ?

Verfasst: 23.02.2009 22:08
von Black-Civic
Wenn du es vom eigenen Webspace willst wie wäre es mit einem Galerie Mod für Videos. Da kann man Videos von Youtube verlinken oder auf den eigenen Webspace hochladen. Die Videos kann man dann in der nächsten version glaub ich mal per BBcode im Forum zeigen.

Link bei phpBB.com
http://www.phpbb.com/community/viewtopi ... 9&start=15

Link zur Supportseite
http://phpbb.unstable.org.uk/

Demo
http://phpbb.unstable.org.uk/tube/index.php


MfG
Daniel

Re: JW FLV Player als BBCode ?

Verfasst: 24.02.2009 11:51
von derkubi
Black-Civic hat geschrieben:... wie wäre es mit einem Galerie Mod für Videos ?
MfG
Daniel
Nicht schlecht , mal genauer anschauen . Bei mir sinds eigene Videos und MP3s , von daher wäre es gut auch MP3s mit einstellen zu können .

Aber noch ne andere Frage :

Nun benutze ich als BBCode ja einen anderen Code als in der Install der JW-FLV Player Seite angebenen und möchte aber einen anderen Skin benutzen . Die Anweisungen vom Skin kann ich ja nun nicht benutzen . Ich habe die Dateien snel.swf snel-source.fla und LTVlogo.png in den Ordner root/mediaplayer/ kopiert . Hier die Originalanweisung :

Apply the Skin to the Player
Adding the skin to the JW FLV Player 4.x is done by adding one variable in the player's embed code. This method will allow you to apply different skins to different players on your site, but you will have to be sure to add the variable(s) below to every instance of your player (or, if you're using a CMS, to the template file that contains the player's embed code).

If you're using SWFObject embed code, add this line to your player's embed code:

so.addVariable("skin", "http://www.mysite.com/jwplayerskin/skinname.swf");
If you're using Object embed code, add this line to your player's embed code (specifically within the flashvars=" " variable):
&skin=http://www.mysite.com/jwplayerskin/skinname.swf
So your flash vars would look like this:
flashvars="height=250&width=400&file=afraid.flv&overstretch=true&skin=http://www.mysite.com/jwplayerskin/skinname.swf"


Ich habs einfach mal so probiert :

Code: Alles auswählen

<object type="application/x-shockwave-flash" style="width:425px; height:350px;" allowfullscreen="true"; data="http://de-wangeroogers.de/mediaplayer/snel.swf">
<param name="movie"  value="http://de-wangeroogers.de/mediaplayer/snel.swf" />
<param name="FlashVars" value="file={URL}" />
</object> 
Der Skin ist dann zwar da , aber das Video wird nicht angezeigt , sondern in der Mitte rotiert eine Grafik , sieht so aus als würde was endlos geladen werden .