You will recieve your password to this address. Address is not made public.

Your preferred username that is used when logging in.

Multiple subtiles to Flowplayer, is this hard to do? Created Mar 1, 2010

This thread is solved

Views: 3028     Replies: 14     Last reply Aug 8, 2011  
You must login first before you can use this feature

Skrotniklas

Posts: 8

Registered:
Mar 1, 2010

Multiple subtiles to Flowplayer, is this hard to do?

Posted: Mar 1, 2010

I have someone that helps me to build a website where I could show videos. On the site they have integrated flowplayer for me as I wanted this player.
But now they say that it is hard to add multiple subtitles = expensive to me and I have no more money:-(

I was planning to use separate .srt files that the user could select between somehow but the technical I have no knowledge about.
I will of course create and add the .srt files but they need to build/install the "subtitle selector"

So, is it hard to make a selector like the site below have done?
http://www.europafilmtreasures.fr/PY/261/voir-le-film-il_etait_une_fois_un_tram%27#

Is there a guide to how this done that I can show them?

I would greatly appreciate any help that you can give me! I am a little desperate since I cannot use my site without subtitles:-(

Skrotniklas

Posts: 8

Registered:
Mar 1, 2010

» Multiple subtiles to Flowplayer, is this hard to do?

Posted: Mar 3, 2010

Reply to: Multiple subtiles to Flowplayer, is this hard to do?, from Skrotniklas
Anyone? Please!

dherbst

Posts: 75

Registered:
Apr 20, 2009

» » Multiple subtiles to Flowplayer, is this hard to do?

Posted: Mar 4, 2010

Reply to: » Multiple subtiles to Flowplayer, is this hard to do?, from Skrotniklas
It's difficult to say how hard it is for your developer, but it appears to just be a two line function to change the subtitles:


js.player.change_subitile = function(menu){
	this.captions = menu.value;
	//TODO: make this work in a multiplayer
	$f().getPlugin("captions").loadCaptions(0,'/php/rmp_to_timedtext.php?file=../bases/'+this.captions);
}

Where the dropdown is populated like this:


<select onchange="js.player.change_subitile(this);" name="SOUS_TITRE">
	<option value=""></option>
	<option value="T_1203_511_8672.xml" selected="selected">Français</option>
	<option value="T_1203_512_8672.xml">Allemand</option>

	<option value="T_1203_513_8672.xml">Italien</option>
	<option value="T_1203_514_8672.xml">Espagnol</option>
</select>

The php file can probably be ignored, so you're just loading in a new srt file. Looks like all the work has been done for you/them already.

I'm curious as to what they think is difficult about this - please let us know.

sena

Posts: 7

Registered:
Mar 4, 2010

» » » Multiple subtiles to Flowplayer, is this hard to do?

Posted: Mar 12, 2010

Reply to: » » Multiple subtiles to Flowplayer, is this hard to do?, from dherbst
if you are really stuck, you can do you subtitle option by yourself.

You need 2 things: menubar (choose language) + canvas (where the subtitles appears)

afterwards you just get an xml with all xml options that are in flex et push it in the canvas in the rigth time (timer is your friend :D)

Is sometime hard for a dev to work with somebody else code, so do it yourself is always easier.

best regards ,
sena FRANCE

dherbst

Posts: 75

Registered:
Apr 20, 2009

» » » » Multiple subtiles to Flowplayer, is this hard to do?

Posted: Mar 12, 2010

Reply to: » » » Multiple subtiles to Flowplayer, is this hard to do?, from sena
Sena,

You could waste a lot of time and money doing that, or you could use the captions plugin, which flowplayer has already written and provides for free, and does exactly what you said you are going to re-write.

sena

Posts: 7

Registered:
Mar 4, 2010

» » » » » Multiple subtiles to Flowplayer, is this hard to do?

Posted: Mar 12, 2010

Reply to: » » » » Multiple subtiles to Flowplayer, is this hard to do?, from dherbst
you are absolutely right. I totally agree with you Mr dherbst.

I just said that sometimes, when you are really stuck and some days are bad days, just re-write simples stuffs are not a big issues. In waiting to understand better the flowplayer code

best regards,
sena FRANCE

Skrotniklas

Posts: 8

Registered:
Mar 1, 2010

» » » » » » Multiple subtiles to Flowplayer, is this hard to do?

Posted: Mar 21, 2010

Reply to: » » » » » Multiple subtiles to Flowplayer, is this hard to do?, from sena
Hi, I gave your information to them and they have done it now. Unfortunately I cannot tell you how since I dont know.

But if someone knows how to get flowplayer to accept new lines in the .srt file it would be great!

Now all my text ends up in on long line, ignoring the new lines in the .srt file.

Anssi
Flowplayer Flash & video streaming developer

Posts: 1194

Registered:
Jul 24, 2007

» » » » » » » Multiple subtiles to Flowplayer, is this hard to do?

Posted: Apr 1, 2010

Reply to: » » » » » » Multiple subtiles to Flowplayer, is this hard to do?, from Skrotniklas
This issue is fixed now. Please test with the current development version:https://flowplayer-releases.s3.amazonaws.com/info/dist.html

Skrotniklas

Posts: 8

Registered:
Mar 1, 2010

» » » » » » » » Multiple subtiles to Flowplayer, is this hard to do?

Posted: Apr 4, 2010

Reply to: » » » » » » » Multiple subtiles to Flowplayer, is this hard to do?, from Anssi
Hi,

I have installed the latest build 3.2.0 but the subtitles still end up in one long row.

Is there something else that I need to change for it to work?

darrel.herbst

Posts: 101

Registered:
Apr 1, 2010

» » » » » » » » » Multiple subtiles to Flowplayer, is this hard to do?

Posted: Apr 5, 2010

Reply to: » » » » » » » » Multiple subtiles to Flowplayer, is this hard to do?, from Skrotniklas
You need to use the new version of the captions plugin. I'm guessing the one at the link Anssi provided is the latest version of captions (labeled 3.1.5). If not, Anssi can you include the latest build of captions?

Try using the the 3.1.5 version of captions and see if that fixes the problem.

Skrotniklas

Posts: 8

Registered:
Mar 1, 2010

» » » » » » » » » » Multiple subtiles to Flowplayer, is this hard to do?

Posted: Apr 5, 2010

Reply to: » » » » » » » » » Multiple subtiles to Flowplayer, is this hard to do?, from darrel.herbst
I will try to install the captions update also.

Is there a way to make the subtitles bigger in full screen?
Now the text looks very small when I view the video in full screen, in normal view it looks good.

darrel.herbst

Posts: 101

Registered:
Apr 1, 2010

» » » » » » » » » » » Multiple subtiles to Flowplayer, is this hard to do?

Posted: Apr 5, 2010

Reply to: » » » » » » » » » » Multiple subtiles to Flowplayer, is this hard to do?, from Skrotniklas
I think the latest captions plugin now supports percentage-sizing, and I saw there was a ticket on the svn for the plugin which was marked fixed. I haven't tested it myself. Can you try using a percentage size and see if that correctly increases/decreases the size of the text when you go to fullscreen?

If it does not, the ticket is still broken. If that is the case, you can always change the size of the text using the onFullscreen/onFullscreenExit callbacks like this:


... onFullscreen:function(){this.getPlugin('content').css({height:200,body:{fontSize:40}})},
    onFullscreenExit:function(){this.getPlugin('content').css({height:70,body:{fontSize:20}})},
...

Skrotniklas

Posts: 8

Registered:
Mar 1, 2010

» » » » » » » » » » » » Multiple subtiles to Flowplayer, is this hard to do?

Posted: Apr 5, 2010

Reply to: » » » » » » » » » » » Multiple subtiles to Flowplayer, is this hard to do?, from darrel.herbst
I will ask the people that helps me to try the percentage for the subtitle size.

I seems that they already have installed captions 3.1.5 and the problem remains, the subtitles end up in one long line.
As said before, it works great in normal players like gom player.

aliciaduffy

Posts: 2

Registered:
Jul 27, 2010

onFullscreenExit not working

Posted: Jul 27, 2010

Reply to: » » » » » » » » » » » Multiple subtiles to Flowplayer, is this hard to do?, from darrel.herbst
I wasn't able to get flowplayer to acknowledge percentage sized fonts, so I used the code suggested above to scale up my caption text in fullscreen, but when I exit fullscreen the text doesn't scale back down.

This is my code, did I miss something?

onFullscreen:function(){this.getPlugin('content').css({height:100,body:{fontSize:30}})},
onFullscreenExit:function(){this.getPlugin('content').css({height:40,body:{fontSize:16}})}