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

Your preferred username that is used when logging in.

TT Subtitles *.XML - Problem with captions plugin Created Oct 15, 2009

This thread is solved

Views: 3105     Replies: 5     Last reply Sep 15, 2010  
You must login first before you can use this feature

l00ser

Posts: 2

Registered:
Oct 14, 2009

TT Subtitles *.XML - Problem with captions plugin

Posted: Oct 15, 2009

Hi to all!

First let me thank you very much for this excellent net player!

Secondly, I have problem with TT Subtitles - FPlayer stops loading video file, when I use caption plugin.

DESC:

I use FPlayer (FP) with pseudostreaming plugin through lightHTTPD (the PHP solution - through php pseudo-streamer), I have basic html page with some text and JS (Javascript) to load FP. Everything works just great till I expand JS to load captions+content plugins.

When I refresh page the player starts loading (loading icon), but then suddenly stops and nothing happens then. I guess this causes some error/conflict in captions plugin, because when I get rid of captions plugin from JS, everything starts working again...

I use TT subtitles according to XML format used in your captions plugin tutorial. (see below part of my xml file)

If you know how to solve this problem, please let me know. Thanks in advance for any help. (I desperately need subtitles for my vids :-)

Stripped down version of my *.html file


<html> 
<head> 
    <title></title> 
    <script type="text/javascript" src="player/flowplayer-3.1.4.min.js"></script> 
    <link rel="stylesheet" type="text/css" href="style.css">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head> 
<body>  

<div style="padding-left:10px;" >
<a  style="display:block;text-align:center;width:525px;height:400px;"  id="player"> 
	<img src="poster.jpg"  /> 
</a> 
</div>

<script language="JavaScript"> 
    flowplayer("player", "player/flowplayer-3.1.4.swf", {
	log: { level: 'debug', filter: 'org.flowplayer.captions.*'}, 
	    // configure clip to use "lighthttpd" plugin for providing video data 
    clip: { 
        url: 'streamer.php/twod.flv',
		// this is the TT file   
        captionUrl: 'docs/twod.xml',  
        provider: 'lighttpd' 
    }, 
 
    // streaming plugins are configured normally under the plugins node 
    plugins: { 
	
		// the captions plugin 
		
        captions: { 
            url: "player/flowplayer.captions-3.1.4.swf", 
             
            // pointer to a content plugin (see below) 
            captionTarget: "content" 
        }, 
         
        /* 
            configure a content plugin so that it  
            looks good for showing subtitles 
        */ 
        content: { 
            url:'player/flowplayer.content-3.1.0.swf', 
            bottom: 25, 
            height:40, 
            backgroundColor: 'transparent', 
            backgroundGradient: 'none', 
            border: 0, 
            textDecoration: 'outline', 
            style: {  
                body: {  
                    fontSize: 14,  
                    fontFamily: 'Arial', 
                    textAlign: 'center', 
                    color: '#ffffff' 
                }  
            }  
        }, 
         
        // streaming plugin configuration 
        lighttpd: { 
            url: 'player/flowplayer.pseudostreaming-3.1.3.swf' 
        }
         
    } 
 }); 
</script> 

</body> 
</html> 


And finally part of my *.xml TTsubtitles:


<?xml version="1.0" encoding="UTF-8"?>
<tt xml:lang="en" xmlns="http://www.w3.org/2006/10/ttaf1"
	xmlns:tts="http://www.w3.org/2006/10/ttaf1#styling">

<head></head>

<body>

<div xml:lang="en">

<p begin="00:00:21:48" end="00:00:24:63">Guatemala is going to enter a new era</p>

</div>

</body>

</tt>

l00ser

Posts: 2

Registered:
Oct 14, 2009

» TT Subtitles *.XML - Problem with captions plugin

Posted: Oct 21, 2009

Reply to: TT Subtitles *.XML - Problem with captions plugin, from l00ser
hi again guys,

still no one using subtitles for their FLV movies ? Is it not possible that problem is causing pseudo streaming ? I looked inside source, and guess that XML titles are parsed and registered in CuePOINTS array just on first initialization of the player...that may cause subtitles to not load if one seeks through FLV video.

But there is maybe needed an input from DEVELOPERS of flow player on this ...

Thanks very much for any tips!!

Have a great day!

stilldeciding

Posts: 1

Registered:
Oct 27, 2009

» TT Subtitles *.XML - Problem with captions plugin

Posted: Oct 27, 2009

Reply to: TT Subtitles *.XML - Problem with captions plugin, from l00ser
Hi, I am having similar issues. Also the logging doesn't seem to be functioning. I see the calls for tracing out cues loaded, but they don't show up. Our xml files look like this:



<?xml version="1.0" encoding="UTF-8"?>
<tt xmlns="http://www.w3.org/2006/04/ttaf1"
      xmlns:tts="http://www.w3.org/2006/04/ttaf1#styling" xml:lang="en">
  <head>
    <styling>
      <style id="defaultSpeaker" tts:fontSize="12" tts:fontFamily="SansSerif" tts:fontWeight="normal" tts:fontStyle="normal" tts:textDecoration="none" tts:color="white" tts:backgroundColor="black" tts:textAlign="left" />
      <style id="defaultCaption" tts:fontSize="12" tts:fontFamily="Helvetica" tts:fontWeight="normal" tts:fontStyle="normal" tts:textDecoration="none" tts:color="white" tts:backgroundColor="black" tts:textAlign="left" />
    </styling>
  </head>
  <body style="defaultCaption" id="thebody">
    <div xml:lang="en">

      <p begin="0:00:00.00" end="0:00:00.67"></p>
      <p begin="0:00:01.00" end="0:00:04.83"><span tts:fontStyle="italic" tts:fontSize="16" >[female singing]<br/></span><span tts:fontStyle="italic" tts:fontSize="16" >Ooooh, Marsha.</span></p>
      <p begin="0:00:04.83" end="0:00:08.17"><span tts:fontSize="16" >(Marsha)<br/></span><span tts:fontSize="16" >Hi and welcome.<br/></span><span tts:fontSize="16" >Today I'm going to show you</span></p>
      <p begin="0:00:08.17" end="0:00:11.00"><span tts:fontSize="16" >(Marsha)<br/></span><span tts:fontSize="16" >how to make<br/></span><span tts:fontSize="16" >a beautiful standing rib roast.</span></p>
      <p begin="0:00:11.00" end="0:00:13.50"><span tts:fontSize="16" >(Marsha)<br/></span><span tts:fontSize="16" >It's a nice thing.</span></p>
...


This works with the default as3 captioning component. Has anyone successfully gotten the tt format to work with this plugin?

I will continue to play with the plugin and post if I find any reason as to why it's not working.

My implementation is much the same as l00ser's.

Roger
The unexamined life is not worth living - Socrates

Posts: 23

Registered:
Aug 8, 2009

» TT Subtitles *.XML - Problem with captions plugin

Posted: Nov 10, 2009

Reply to: TT Subtitles *.XML - Problem with captions plugin, from l00ser
I am having the same issue as well. Have you figured this out?

If not have you submitted a bug report?

Thanks.

maryCE

Posts: 2

Registered:
Feb 3, 2010

» » TT Subtitles *.XML - Problem with captions plugin

Posted: Feb 3, 2010

Reply to: » TT Subtitles *.XML - Problem with captions plugin, from TriVitaIT
Has anyone solved this yet. I too have used the <span> tag in Flash AS3 but doesn't want to work in Flowplayer. I need to italize words in a line. How can this be done?

dcluser

Posts: 10

Registered:
Nov 5, 2009

» » » TT Subtitles *.XML - Problem with captions plugin

Posted: Sep 15, 2010

Reply to: » » TT Subtitles *.XML - Problem with captions plugin, from maryCE
Err.. this is Stilldeciding under a new username. We eventually got the problem figured out and I didn't return here. But here it is for future reference. First, it's important that you use

<tt xmlns=http://www.w3.org/2006/10/ttaf1" xmlns:tts=http://www.w3.org/2006/10/ttaf1#styling" xml:lang="en">

as the tt header (note the '10' in the '2006/10' part, not 04, or 06 or any other number. Needs to be 10.

The <span> is unnecessary but a CDATA and <p> tag helps, as in this line:

<p begin="00:00:07.90" end="00:00:12.83" ><![CDATA[<p>can't do.<br/>He can play ball.<br/>He can be a doctor.</p>]]></p>

Took out defaultSpeaker as well and changed defaultCaption to Arial instead of Helvetica. Hope this helps someone in the future.