Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Forums

/

Weird captions problem with empty <span>

2 replies [Last post]
Reply

I had a problem with my caption file generation, but this seems to have exposed a problem with the caption-2 code. This excerpt caused a VERY strange display:

<?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/04/ttaf1#styling">
   <body>
      <div xml:id="captions">

         <p xml:id="c392" begin="00:22:36.90" end="00:22:41.00"><span tts:fontStyle="italic"></span><br/>♪HAL...LE...LU...JAH♪</p>

      </div>
   </body>
</tt>

The player showed this caption text:

tts:fontStyle="italic" xmlns="http://www.w3.org/2006/10/ttaf1"
xmlns:tts="http://www.w3.org/2006/04/ttaf1#styling"/>
♪HAL...LE...LU...JAH♪

Screen shot: http://www.levitt.com/misc/tmp/caption_error.png

It looks like the empty span caused the problem. I'm using the licensed version of the version 5.8 player on firefox on a Mac.

Also, is there any chance the captions plugin might support left/right positioning someday? This would help me emulate closed captions as shown on the TV.

Example:

   <p begin="00:00:53.90" end="00:00:54.77" tts:textAlign="start">HELLO</p>
   <p begin="00:00:54.77" end="00:00:56.07" tts:textAlign="end">WELCOME TO OUR SHOW.</p>

Thanks!

Reply

This empty span is something we could cover for, but we've not had others with such an issue. You can simply remove that tag and all is fine, right?

Left / right alignment is definitely on the list, but not for short-term. We'll look at this as part of a larger update that includes WebVTT support:

http://developer.longtailvideo.com/trac/ticket/1422

Reply

Sure, I've fixed it on my end by removing the spurious span. I'm just pointing it out to show there's an error in your code for something like this to happen. It really went nuts. Just wanted to let you know.

Looking forward to further caption enhancements, thanks.

Post new comment

  • Allowed HTML tags: <code> <blockquote> <em> <strong> <strike> <ul> <li> <ol>
  • You may post code using <code>...</code> .
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options