20080203 Sunday February 03, 2008

testing embedding JW FLV player






I was impressed by the level of control available on the JW FLV Player via JavaScript controls and calbacks from the player... So I decided to see how this all actually worked while embedded inside a xwiki and/or roller -like environment.


state:
0
(0=stop,1=buffer,2=play)time elapsed:
0 s.
time remaining:
0 s.
playlist item:
0
percent loaded:
0 percent
video size:
0X0
audio volume:
100 percent

 

will it blend?load from playlistload
a single local file w/ local captioning and image and secondary audio
load from RSS feed
load a file with preview image and local captioningload
a file with preview image and captioning and mix in an audio track too (click "A" icon to mute second audio track)
pause/resume

FYI: the key to getting the captioning or secondary-audio working is to have it loaded at creation time. this is related to this tidbit from http://www.jeroenwijering.com/?thread=8218 :

from the readme:

usecaptions (true,false): Set this to false to force the captions to hide by default.


captions (url): You can set this flashvar to the location of an
external textfile with captions. The players support SMIL's TimedText
format (example) and the SRT format (example) used with ripped DVD's.
Set this flashvar to "captionate" if your FLV file has Captionate
captions embedded. If you use multitrack Captionate captions, you can
set this flashvar to "captionate0", "captionate3" etc. to display a
certain track. A live example of different captions can be found here.
You can also assign captions for every item in a playlist.

to change the captions file you must recreate the player - please see the linkplaylist demo from the demopage for simple example code for recreating a player from a link...

Posted by Niels P. Mayer in Software at 20080203 Comments[3]

Comments:

for some reason, updating size of flv file stopped working. the other updates, e.g. audio volume, work fine.

Posted by Niels Mayer on February 05, 2008 at 02:39 PM PST #

Hi,

This looks really cool ! Do you have some XWiki macros that you could share with the xwiki community ?

Ludovic

Posted by Ludovic Dubost on February 07, 2008 at 06:05 AM PST #

Is there any way to get the captions to appear in a text block BELOW the video rather than IN the video with the JW FLV Player?

Posted by Bri on February 07, 2008 at 06:39 AM PST #

Post a Comment:
  • HTML Syntax: NOT allowed