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

Forums

/

accessability 1.0 T button

90 replies [Last post]

I think I read that it was expected that around 1 Dec the accessibility plugin will bring the T button back to toggle captions on and off.

Today is 1 Dec. Is there an update on when we can expect this to be out? Is there an alpha or beta anywhere in SVN?

Thanks.

The beta is the /trunk/ version indeed.

You can see the accessibility with button here:

http://www.jeroenwijering.com/?page=test&example=152

That's great! Cannot wait!

Nice. Well done. Thanks for hooking us up, JeroenW.

I see blank buttons at example 12. Anyone else? They work, but they are blank.

Thanks JeroenW for accessibility plugin update.

Will this be part of coming up 4.3 release? Do you have any revised time lines for this?

Also have the following questions.Really appreciate if you can clarify.

a) Currently we are using 3.17 player which support Captionate Captions and Timed Text formats.We didnot upgrade player to latest version as we had seen issues with Captionate Captions in the latest Player.(4.1 and 4.2 etc).

Are we supporting Captionate Captions with the upcoming latest 4.3 release?

b) Can the graphic for player buttons be changed with the new release.We want to use CC instead of T.

b) Can the graphic for player buttons be changed with the new release.We want to use CC instead of T.

I am pretty sure the new buttons that are added are controlled by the skin. You should be able to modify the default skin or whatever skin you want to change the label content for those buttons.

http://www.jeroenwijering.com/?item=Skinning_the_JW_Player

@JeroenW I noticed that in the example when you toggle trace that toggling CC and audio captions on an off do not result in a trace statement. Seems like that could be useful information.+ ticket

I added those two issues above to the bug reports forum.

* captions blocking control bar - bar unusable <http://www.jeroenwijering.com/?thread=14423>
* accessibility trace logging <http://www.jeroenwijering.com/?thread=14422>

I see blank button two

It fixed. I just extracted the plugin from

http://www.jeroenwijering.com/?page=test&example=152

When is the expected release date of 4.3? Is there anywhere I can get the beta? I am anxious to get the caption button back. Also, I am unable to view the example posted in the above message. It just redirects to the Longtail homepage.

I found the 4.3.124 version of the player and am testing it. I was under the impression from some of the messages above that the "T" button should be back in this version, yet I am still not seeing it. Is there a different version of the accessibility plugin that I should be using too? I am calling the plugin "accessibility-1".

Hi, I also would like to add the CC toggle button if available.
Thanks

When calling the accessibility-1 plugin in 4.3beta, I'm still not seeing the "T" or "CC" button. How do I get the toggle button to appear? Captioning works fine, I'd just like to be able to toggle on/off from the controller.

Also, in the 4.3beta, the text for the current time and end time looks different/bad.

@Mike N

can someone confirm that the button can be skinned? Don't see it on the list of skinnable elements http://developer.longtailvideo.com/trac/wiki/FlashSkinning

or do the plugins add additional skinnable elements in addition to the functionality onced installed?

thanks!!

rg

I also need this functionality.

Happy Christmas to everyone...

I wanted to get some help with the CC Plugin. It seems not to be working or displaying any of the caption information. We're using version 4.2 along with the embed tags. We did make minor changes to the source code to include a username as token to pass to our media server.

Here's the flashvar "flashvars="captions=35000_1.xml&file=34000.flv&plugins=accessibility-1&streamer=rtmp://localhost/vodstream&username=myusername@someplace.com".

The player is displaying the video and the token is being passed to the media server, but the closed caption information is not displaying.

Below is the closed caption test text we're using.
<tt xmlns="http://www.w3.org/2006/10/ttaf1">
<body>
<div xml:id="captions">
<p begin="00:08" end="00:10">- Nothing is going on.</p>
<p begin="00:10" end="00:12.5">You liar!</p>
<p begin="00:13" end="00:15">Are you?</p>
<p begin="00:17" end="00:20">Violet, please!<br/>- I am not your babe!</p>
<p begin="00:24" end="00:29">You stupid cow,<br/>look what you gone and done now, ay.</p>
<p begin="00:34" end="00:36">Vi, please.<br/>- Leave me alone!</p>
<p begin="00:36" end="00:38.5">- We need to talk.<br/>- Jason, are you deaf?!</p>
<p begin="00:41" end="00:43">What's going on?</p>
<p begin="00:43" end="00:45">Get out there and try to salvage this!</p>
</div>
</body>
</tt>

Any ideas why it's not displaying the text?

Where can we download the CC plugin for the JW Player?

Any assistance would be greatly appreciated.

Hi There,
Happy New Year!

I downloaded the new version 4.3. It is working good. I loaded the captions XML file, and I am using streamer...

Is the CC or T toggle working in this version? What do I need for for the CC toggle to work?

This is what I have in the test server:

var file = 'facDev';
var streamer = 'rtmp://10.75.1.69/StreamingMedia/caption/facDev';

var caption = 'ttext/facDev.xml';

//var s1 = new SWFObject('player.swf', 'player_id', '500', '400', 'null', '#FFFFFF');
var s1 = new SWFObject('player.swf', 'mpl', '320', '260', 'null', '#FFFFFF');

s1.addParam('allowfullscreen', 'false');
s1.addParam('allowscriptaccess', 'always');
s1.addParam('quality', 'high');
s1.addParam('bgcolor', '#FFFFFF');
s1.addVariable('image', 'preview.jpg');
s1.addVariable('fullscreen', 'null');
s1.addVariable('stretching', 'fill')
s1.addVariable('file', file);
s1.addVariable('streamer', streamer);
s1.addVariable('autostart', 'false');
s1.addVariable('type', 'video');
s1.addVariable('bufferlength', 'null');
s1.addVariable('plugins', 'accessibility');
s1.addVariable('captions', caption);
s1.addVariable('usecaptions', 'true');
s1.addVariable('accessibility.fontsize', '20');

Thanks a lot!

I need some help on captions.

1. Can someone please provide an update if CC button is up with the new release 4.3? I don't see it in setup wizard with accessibility sample.

2. Also if CC button is available in this new release then can it support toggling of captionate?

3. Can we change the CC button image?

I have the same question as MG.

Yes I have the same question as MG about the caption button. Thanks.

Also want to know this.

Seems silly not to make it CC instead of T as everyone seems to prefer CC.

Same here. I see there is a HD button plug-in but still no CC button for the accessibility plug-in with version 4.3

aw.. c'mon.. here it is the 22nd now, and no response to this topic..

is there a CC or T button included in version 4.3???? how do we call it?????

Thanks in advance!

////Greg

Get the v4.4.139 player from the Subversion repository. (You will have to install a Subversion client
or else navigate to the AS3 Trunk and find the files.)

Get the current accessibility.swf plugin (I re-named it "accessibility-3.swf") and serve it from your own server.

Then you get all of the bells, whistles, music, and captions!

Using swfobject v2.1:

      //...accessibility plugin - OK with v4.4.139 player
        'plugins':                               'http://www.mydomain.com/path/accessibility-3',
        'accessibility.hide':                    'false',  // true, false
        'accessibility.fontsize':                '15',
        'accessibility.volume':                  '90',
        'accessibility.listener':                'accessibilityCaptions',
        'captions':                              'captions_video1.xml',
        'audio':                                 'song7.mp3',

Accessibility Listener to display the captions outside of the player:

      function accessibilityCaptions(txt)
      {
        gid('captions').innerHTML = txt;
      };

HTML for the captions:

    <div id="captions" class="captions">
      Captions
    </div>

CSS for the captions:

      div.captions
      {
        position:                    absolute;
        top:                            460px;
        left:                           400px;
        width:                          415px;
        height:                          50px;
        padding:                          5px;
        font-size:                       20px;
        font-weight:                     bold;
        font-family:                    arial;
        color:                        #202020;
        border:             solid 1px #808080;
        background-color:             #FFFFC0;
      }

And finally, the player with the buttons and an external captions display:

[img]http://willswonders.myip.org:8085/php/captions_v4.4.139.jpg[/img]

Hi All,

Download player and accessibility plugin from trunk and put it on your own servers and refer the accessibility plugin from your server (URL worked for me) then the 'CC' button shows up. But still CC does not work for playlist option, it works for a single video.

I have a problem , when i do the above and have embed plugin along with accessibility the CC button and embed button are getting collapsed with each other, does anyone face this issue?

Any suggestions please?

Thanks...

Hi,

I got the CC button to show after hosting the latest accessibility plugin on my server and using the 4.4.139 player. However, the code to hide the captions accessibility.hide=true isn't working with the latest accessibility plugin. It works with the version that has the T button though.

Works fine for me with the latest accessibility.swf and v4.4.139 and swfobject v2.x

'accessibility.hide':                    'false',  // true, false

false = hide
true = show

Got it. I had true/false backwards. Thanks!

I downloaded JW Player 4.4.141 but I don't see the CC button and the player can't load the stream...

The player displays an error: video not found... however if i switch to the 4.3.132 the stream plays fine, but no CC toggle, either...

Where I can find the latest player for accessibility?

Thanks!

way2slow,

Get the current accessibility.swf plugin (I re-named it "accessibility-3.swf") and serve it from your own server.

From here: http://developer.longtailvideo.com/trac/browser/trunk/as3

lefTy,

Thanks so much! Yes, the CC toggle is working now.

There is problem with the A (audio caption) button... it appears in the video as a small A in the left lower corner.

These are the flashVars I am using:

s1.addVariable('plugins', 'flashplayer/accessibility');
s1.addVariable('captions', caption);
s1.addVariable('usecaptions', 'true'); s1.addVariable('icons', 'true');
s1.addVariable('accessibility.fontsize', '20');
s1.addVariable('accessibility.hide', 'false');

I don't have a caption audio. What variable controls the A and CC button?

@way2slow,

If you have the v4.4.141 player and the latest accessibility plugin, you should have a [CA] button to the right of the [CC] button, just like the image that I posted above.

The buttons are automatic, depending on the captions and audio flashvars.

There is no usecaptions flashvar that is supported by the v4.x player.

Currently, the supported accessibility flashvars are:

s1.addVariable('plugins', 'accessibility');
s1.addVariable('captions', 'captions.xml');
s1.addVariable('audio', 'audio.mp3');
s1.addVariable('accessibility.fontsize', '20');
s1.addVariable('accessibility.hide', 'true'); // true=show, false=hide
s1.addVariable('accessibility.volume', '80');
s1.addVariable('accessibility.listener', 'accessibilityCaptions'); // JavaScript function name

way2slow ... wehre did you downloaded the 4.4.141 version? can't find it... I looked around now for more than one hour ... at developement site I've only found the 4.3 version :(

@CKIDOW,

http://developer.longtailvideo.com/trac/log/trunk/as3/player.swf

Click on "@142" in the Rev column.

Okay found it thanks...

@ lefTy,

Thanks so much! I'm getting there.

Where do I put this function to load the captions outside the player?

function accessibilityCaptions(txt)
{
gid('captions').innerHTML = txt;
};

@lefTy,

for some reason, my configuration does not work with the player v4.4.141, but it is working fine with the player
4.3.132.

I am using FMS to stream the file passing parameters from the browser address bar (javascript)

The JavaSript parses the url
/*variables needed to load the flash video: */
var file = getCaption("id");
var caption = ('ttext/' + getCaption("cc") + '.xml');

Then I am using these flashVars to initialize the player:
s1.addVariable('file', file);
s1.addVariable('streamer',
"rtmp://testServer/StreamingMedia/" + getURLParam());
s1.addVariable('captions', caption);

Do you know if there are changes on how the streamer works in the new version?

Thanks so much again,

No, the streamer and file flashvars haven't changed.

Are you specifying a type of video in your flashvars? It's needed if there is not a recognized media file extension at the end of the file URL.

Is anyone facing the issue of overlapping images for CC and embed?

Yes,

s1.addVariable('type', 'video');

@way2slow,

Can you post your full player code, including a live stream link? It's too hard to guess when I can only see snippets.

@way2slow,

Here's a full page of working code. I left my test code in the page, commented out, so you could see where I substituted my files or made changes for testing.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<html lang="en">

  <head>

    <title>way2slow - Accessibility - JWMP v4.4.x - swfobject v1.5</title>

    <script type="text/javascript" src="assets/swfobject.js"></script>
<!-- <script type="text/javascript" src="swfobject.js"></script> -->

    <script type="text/javascript" src="assets/flvPlayer1.js"></script>

    <script type="text/javascript">
      function accessibilityCaptions(txt)
      {
        gid('captions').innerHTML = txt;
      };

      function gid(name)
      {
        return document.getElementById(name);
      };
    </script>

    <style type="text/css">
      <!--
      div.captions
      {
        position:             absolute;
        top:                     420px;
        left:                    170px;
        width:                   415px;
        height:                   50px;
        padding:                   5px;
        font-size:                10px;
        font-weight:              bold;
        font-family:             arial;
        color:                 #202020;
        border:      solid 1px #808080;
        background-color:      #FFFFC0;
      }
      -->
    </style>

  </head>

  <body>

    <h1>Flash Streaming Media Player with Captions</h1>
    <table width="715" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td>
          <div align="center">
            <div id="container_id">
              <a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.
            </div>
          </div>
        </td>
      </tr>
    </table>
    <div id="captions" class="captions">
      Captions will be appearing here soon.
    </div>

    <script type="text/javascript">
      /* variables needed to load the flash video: */
      var file     = getCaption("id");
      var caption  = ('ttext/' + getCaption("cc") + '.xml');

//...testing
var file     = 'P1.flv';
var caption  = 'captions_accessibility.xml';

      var s1 = new SWFObject('player-4.4.141.swf', 'mpl', getURLWidth("width"), getURLHeight("height"), '9.0.124', '#FFFFFF');
//...testing
var s1 = new SWFObject('player-4.4.141.swf', 'mpl', '320', '260', '9.0.124', '#FFFFFF');
          s1.addParam('allowfullscreen',             'false');
          s1.addParam('allowscriptaccess',           'always');
          s1.addParam('quality',                     'high');
          s1.addParam('bgcolor',                     '#FFFFFF');
        //s1.addVariable('fullscreen',               'false'); // not supported v4.x
        //s1.addVariable('usecaptions',              'true');  // not supported v4.x
          s1.addVariable('stretching',               'fill');
          s1.addVariable('streamer',                 'rtmp://10.75.1.69/StreamingMedia/' + getURLParam());
//...testing
//s1.addVariable('streamer',                 'rtmp://www.mydomain.com/oflaDemo');
          s1.addVariable('file',                      file);
        //s1.addVariable('type',                     'video'); // not needed if your file flashvar has an extension (.flv, .mp4, .mp3, etc.)
          s1.addVariable('bufferlength',             '1');
          s1.addVariable('captions',                  caption);
          s1.addVariable('audio',                    'audio.mp3');
//...testing
//s1.addVariable('audio',                    'song7.mp3');
          s1.addVariable('autostart',                'false');
          s1.addVariable('plugins',                  'http://www.mydomain.com/flashplayer/accessibility'); // use a full URI here!
//...testing
//s1.addVariable('plugins',                  'http://www.mydomain.com/path/accessibility-3');
          s1.addVariable('accessibility.fontsize',   '15'); 
          s1.addVariable('accessibility.hide',       'true'); 
          s1.addVariable('accessibility.volume',     '80');
          s1.addVariable('accessibility.listener',   'accessibilityCaptions'); 
          s1.write('container_id');
    </script>

  </body>

</html>

[i]Be sure you use a full URI for the accessibility plugin; at least until it is available
from Longtail Video's server.[/i]

@ lefTy

Thank you so much. I will test it.

lefTy, do you know if I can make the CC button on to appear by default when the player is loaded in the browser?

The [CC] button appears to be off by default.

I am guessing that maybe the logic is that the majority of users won't want the captions, so the default is off.

However, for sites where the majority of the users will want the captions, on by default would be better — even better, would be control of the default state.

Can we control the default state?

As far as I know at this time, you cannot control the default state through flashvars. You would have to edit the AS3 code and re-compile the player.

Get the current accessibility.swf plugin (I re-named it "accessibility-3.swf") and serve it from your own server.

From here: http://developer.longtailvideo.com/trac/browser/trunk/as3

Where can I get the current accessibility plugin? I don't see it at the link above.

Edit: Nevermind, I found it at http://developer.longtailvideo.com/trac/browser/plugins/accessibility.

I can't get the accessibility plugin to work from my server. Do I need to change the basedir URL in the Player.as file?

See the post on Jan. 22, 2009 that explains all of it.

Thanks lefTy. I looked over your Jan. 22 post but I'm still stuck.

I realize I need to use the full URI for the plugin, but it doesn't appear to be working. I can get the captions to load when I use the accessibility-1 plugin on the LongTail site, but I've downloaded the plugin from http://developer.longtailvideo.com/trac/browser/plugins/accessibility and uploaded the accessibility.swf to my server, but it's not seeing the plugin (hence my basedir URL question above) - no captions, CC or CA buttons.

I'm using Player 4.4.157

Here's the code I'm using:

var so = new SWFObject('player.swf','mpl','500','375','9');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');
so.addVariable('file', 'myMovie.flv');
so.addVariable('plugins', 'http://www.myserver.com/accessibility');
so.addVariable('captions', 'captions.xml');
so.addVariable('accessibility.hide', 'false');
so.write('player');

Aha! I have it working. The strange thing is the accessibility plugin sits in the following directory:
http://www.myserver.com/wip/EBC/accessibility.swf - however - I found that setting the plugins URI to: ../EBC/accessibility makes it work. See updated code below:

var so = new SWFObject('player.swf','mpl','500','375','9');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');
so.addVariable('file', '500x375.flv');
so.addVariable('plugins', '../EBC/accessibility');
so.addVariable('captions', 'captions.xml');
so.addVariable('audio', 'audio.mp3');
so.addVariable('accessibility.hide', 'false');
so.addVariable('clip.captionsIcon.visible', 'true');
so.addVariable('clip.audioIcon.visible', 'true');
so.write('player');

Has anyone had success skinning the player with the CC and AD buttons? Adding the skin variable causes the CC and AD buttons to disappear. Oddly, if I publishing the player.fla file and upload the resulting player.swf file, it also causes these buttons to disappear as well.

The CC and CA buttons certainly work with the bright skin. You will have to test your preference.

      http://willswonders.myip.org:8081/PIP.html

Thanks lefTy. I was able to use the Stylish skin with the CC and CA buttons, however, if I publish the skin and then post, the buttons break. I'm using CS4, which might be part of the problem.

http://www.longtailvideo.com/support/forum/Skins/14151/skinning-errors-with-flash-CS4#msg98754

Hello, I'm using ver 4.4.162 of the player. I've been following this thread for a while and still can't get it to work. Here are my variables

var s1 = new SWFObject('../../player/mediaplayer.swf','ply','640','500','9','#ffffff');
s1.addParam('allowfullscreen','true');
s1.addParam('allowscriptaccess','always');
s1.addParam('wmode','opaque');
s1.addParam('file','playlist.xml'); s1.addParam('flashvars','file=playlist.xml&controlbar=bottom&playlistsize=180&playlist=bottom&stretching=fill');
s1.addVariable('plugins', '../../player/accessibility');
s1.addVariable('captions', 'Fun.XML'); //also found in playlist.xml
s1.addVariable('accessibility.fontsize', '20');
s1.addVariable('accessibility.hide', 'false'); // true=show, false=hide
s1.addVariable('accessibility.volume', '80');
s1.addVariable('accessibility.listener', 'accessibilityCaptions');
s1.write('player');

I've tried a combination of these and any hepl would be appreciated

help*

To clarify, I can't get any buttons to show up

The buttons don't work with playlists; at least as of v4.4.158. The captions and auxiliary audio track still work.

So, based on my flashvars, I should be getting a caption to display regardless of the buttons right? It's not working

 
@Omri,

If you post a live link to your test page, I'll have a look at it; otherwise, I'm all out of guesses for this week.

lefTy, unfortunately, this page is behind SSL and NTFS permissions so I don't think it'll work, I can however post up the source to the page itself:

<%@LANGUAGE="c#" debug = "true" CODEPAGE="1252"%>
<%@ Import Namespace="System"%>
<%@ Import Namespace="System.IO" %>
<%@ Import Namespace="System.Text" %>
<%@ Import Namespace="System.Web" %>
<!--#include virtual ="../../support/commentsValue.aspx" -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" <meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="expires" content="0">
<script src="../../support/javascripts/prototype.js" type="text/javascript"></script>
<script src="../../support/javascripts/scriptaculous.js" type="text/javascript"></script>
<script type='text/javascript' src='../../player/swfobject.js' ></script>
<style type="text/css">
<!--
div.captions
{
position: absolute;
top: 420px;
left: 170px;
width: 415px;
height: 50px;
padding: 5px;
font-size: 10px;
font-weight: bold;
font-family: arial;
color: #202020;
border: solid 1px #808080;
background-color: #FFFFC0;
}
-->
</style>
</head>
<body>
<div id="captions" class="captions">
Captions will be appearing here soon.
</div>
<div id='player' />

<script type='text/javascript'>

var s1 = new SWFObject('../../player/mediaplayer.swf','ply','640','500','9','#ffffff');
s1.addParam('allowfullscreen','true');
s1.addParam('allowscriptaccess','always');
s1.addParam('wmode','opaque');
//s1.addParam('file','playlist.xml');
s1.addParam('flashvars','file=playlist.xml&playlistsize=180&playlist=bottom&stretching=fill');
s1.addVariable('plugins', 'accessibility');
s1.addVariable('captions', '../../users/oss3/Fun.XML');
s1.addVariable('accessibility.fontsize', '20');
s1.addVariable('accessibility.hide', 'false'); // true=show, false=hide
s1.addVariable('accessibility.volume', '20');
s1.write('player');
</script>

Thanks for the help

 
You have your captions turned off here:

s1.addVariable('accessibility.hide', 'false'); // true=show, false=hide

There's no point in using accessibility.volume if you don't have an auxiliary audio track.

You don't need wmode=opaque unless you are going to be displaying the captions through the accessibility.listener function overlaid on the player.

To use the very latest accessibility plugin from your own server, you MUST use a full URI beginning with the protocol here:

s1.addVariable('plugins', 'http://www.mydomain.com/path/accessibility');

If you use a playlist, then your captions files MUST be specified in each playlist track, like this (XSPF format playlist):

<meta rel='captions>http://www.mydomain.com/path/captions.xml</meta>

You can use a relative/absolute path rather than a full URI if you know how to specify it.

Most of your code — my players, playlists, captions — files from YT:

      http://willswonders.myip.org:8081/Omri.html

lefTy
Thank you for getting back to me. I took a look at your site and I rewrote my scripts to this:

<%@LANGUAGE="c#" debug = "true" CODEPAGE="1252"%>
<%@ Import Namespace="System"%>
<%@ Import Namespace="System.IO" %>
<%@ Import Namespace="System.Text" %>
<%@ Import Namespace="System.Web" %>
<!--#include virtual ="../../support/commentsValue.aspx" -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" <meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="expires" content="0">
<script src="../../support/javascripts/prototype.js" type="text/javascript"></script>
<script src="../../support/javascripts/scriptaculous.js" type="text/javascript"></script>
<script type='text/javascript' src='../../player/swfobject.js' ></script>
<style type="text/css">
<!--
div.captions
{
position: absolute;
top: 420px;
left: 170px;
width: 415px;
height: 50px;
padding: 5px;
font-size: 10px;
font-weight: bold;
font-family: arial;
color: #202020;
border: solid 1px #808080;
background-color: #FFFFC0;
}
-->
</style>
</head>
<body>
<div id="captions" class="captions">
Captions will be appearing here soon.
</div>
<div id='player' />

<script type='text/javascript'>

var s1 = new SWFObject('../../player/mediaplayer.swf','ply','640','500','9','#ffffff');
s1.addParam('allowfullscreen','true');
s1.addParam('allowscriptaccess','always');
s1.addParam('wmode','opaque');
//s1.addVariable('file','playlist.xml');
s1.addParam('flashvars','file=playlist.xml&playlistsize=180&playlist=bottom&stretching=fill');
s1.addVariable('plugins', 'https://mydomain/player/accessibility');
s1.addVariable('accessibility.fontsize', '20');
s1.addVariable('accessibility.hide', 'true'); // true=show, false=hide
//s1.addVariable('accessibility.listener', 'accessibilityCaptions');

s1.write('player');
</script>

I'm still not seeing anything. A clip of my playlist looks like this:
<track>
<title>Lawyer.flv</title>
<location>../users/asdf/videos/test.flv</location>
<meta rel='captions'>../users/asdf/videos/test.XML</meta>
</track>

Are you sure that the relative path to your captions file is correct?

See the Tutorial Embedding Flash linked from the menu bar at the top of this page. (The section titled {b]Flashvars Problems.)

In a nutshell:

a) the origin of the relative path for FLV files is at the location of the movie,

b) the origin of the relative path for images, data files, and all other media files is at the location of the HTML document that contains the player embed code.

Something like this:

HTML:
http://www.mydomain.com/path1/path2/playerpage.html

Player:
../../player/mediaplayer.swf
http://www.mydomain.com/player/mediaplayer.swf

Playlist:
playlist.xml
http://www.mydomain.com/path1/path2/playlist.xml

FLV Video File:
../users/asdf/videos/test.flv
http://www.mydomain.com//users/asdf/videos/test.flv

Captions File:
../users/asdf/videos/test.XML
http://www.mydomain.com/<strong>path1</strong>/users/asdf/videos/test.XML

Algunos fallos encontrados en el uso del plugin de accesibilidad "accessibility" para el maravilloso reproductor multimedia de JW (muchas gracias Jeroen)

- Los subtítulos no funcionan bien en Opera y Firefox. La segunda línea de subtítulos a veces no aparece; al modificar el zoom, vuelve a aparecer.

- Los botones del plugin no pueden ser accedidos desde el teclado, por lo que no son "accesibles"

- Algunas veces al pulsar sobre la imagen de presentación para reproducir la película, ésta se reproduce en segundo plano, mientras se mantiene en primer plano la imagen de presentación

En definitiva, para la accesibilidad me quedo con el Reproductor 3.14, que aunque no es redimensionable con el zoom de los navegadores, no presenta fallos en la accesibilidad.

lefTy,
I was pretty sure the paths were right. I tested by changing the playlist caption to an absolute URI, but that didn't work either. I'm absolutely stumped.

I think the relative path for your captions should look like this:

../../users/asdf/videos/test.XML

However, for testing, the best thing to do, is to use a full URI and also test it in your browser to see if the file is really Web-Accessible. A surprising amount of the time, they aren't, for various reasons. There are hundreds of posts on these forums where the user was sure that the file was there, but testing showed that it wouldn't load in their browsr and the subsequent investigation revealed that there was a problem of some sort.

I'm absolutely 100% sure that the captions work (other than from a playlist) because I have tested them many times.

I am using seeing a weird issue where sometimes the accessibility audio stream plays a few words, then starts again and plays properly. Has anybody else experienced this ? I downloaded the latest version of both the media and accessibility about 3 weeks ago.

thanks for any thoughts

have just tried the latest releases and still see this issue

code is attached
<script type="text/javascript">
var s2 = new SWFObject("scripts/player.swf","single","384","288","9");
s2.addVariable("width","384");
s2.addVariable("height","288");
s2.addVariable("stretching","none");
s2.addVariable("type","video");
s2.addVariable("backcolor","000000");
s2.addVariable("frontcolor","CCCCCC");
s2.addVariable("screencolor","000000");
s2.addParam("allowfullscreen","true");
s2.addVariable("icons","false");
s2.addVariable("quality","true");
s2.addVariable("autostart","true");
s2.addVariable("file","scripts/sample.flv");
s2.addVariable("plugins", "scripts/accessibility");
s2.addVariable("audio", "voiceover.mp3");
s2.addVariable("accessibility.volume", "30");
s2.addVariable("accessibility.listener", "accessibilityCaptions");
s2.addVariable("usecaptions", "true");
s2.addVariable("captions", "scripts/captions_accessibility.xml");
s2.addVariable("accessibility.fontsize", "-100");
s2.addVariable("image","previews/image.jpg");
s2.write("videoplayer");
</script>

thanks

It's a little glitch where the audio is synced with the video when the video has buffered and starts playing.

The audio should not be allowed to start the first time.

You might post this in the Bug Forum so the developers are aware of it.

thanks, have posted bug report. I hope they can fix it soon as in my application this small glitch looks glaringly wrong

It might be a while before it's fixed.

You could start the player with the accessibility.volume=0 so the auxiliary track can't be heard.

Monitor the Model Event TIME, as soon as the position > 0, indicating that the video has started to play, adjust the voulme to 30.

According to Ticket #403, you should be able to access the plugin variables in a late release player.

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

http://developer.longtailvideo.com/trac/log/trunk/as3/player.swf

Hi there,

I've been battling with these captions all afternoon, and have tried many different varieties of set up, I now have the CC button showing, well formed XML with the correct paths and all the embed tags all nice and correct, but I'm just not seeing my words!

Player version: 4.4.163
Accessibility version: Latest from http://www.longtailvideo.com/addons/get-plugin.php?addon=56 referenced locally (and absolutely) as -3

embed code:
var slideshowPath = "stefano_it";
s1 = new SWFObject("/master/lt/_imgs/swfs/player.swf","ply","625","290","9","#FFFFFF");
s1.addParam("allowfullscreen","true");
s1.addParam("allowscriptaccess","always");
s1.addParam("flashvars","file=/_media/lt/spotlight_videos/" + slideshowPath + ".flv&captions=http://localhost/_media/lt/spotlight_videos/" + slideshowPath + "_" + countryCode + ".xml&plugins=http://localhost/master/lt/_imgs/swfs/accessibility-3&autostart=true");
s1.addParam("wmode","opaque");
s1.write("container");

XML:
<tt xmlns="http://www.w3.org/2006/10/ttaf1">
<head>
<layout />
</head>
<body>
<div xml:id="captions">
<p begin="00:10.44" end="00:14.24">Hi my name is Stefano, I'm 18 years old and I live in Rome.</p>
<p begin="00:14.88" end="00:19.88">Why did you choose to go on an EF course this summer?</p>
<p begin="00:20.64" end="00:26.12">Because my friends speak about this travel so I decide to go</p>
<p begin="00:26.36" end="00:31.36">What has been your favourite activity?</p>
<p begin="00:31.88" end="00:36.80">My favourite activity, maybe sports... and shopping</p>
<p begin="00:37.20" end="00:42.20">Describe your day.</p>
<p begin="00:42.80" end="00:48.64">My life, I wake up at 7 o'clock, eat breakfast very slow, and after</p>
<p begin="00:49.08" end="00:56.08"> school, activity, activity, activity, sports and shopping.</p>
<p begin="00:56.56" end="01:01.56">Are you more confident now when you speak English?</p>
<p begin="01:02.08" end="01:05.40">Uh, I don't know, what do you think?</p>
</div>
</body>
</tt>

Any fresh eye's to tell me what a fool I've been?

Cheers,

Paul

 
Hmmm....

Your code and your captions file work for me.

      http://willswonders.myip.org:8081/Paul.html

Try the accessibility.swf from Svn. here:

      http://developer.longtailvideo.com/trac/browser/plugins/accessibility

You might also try a full URI to your movie, although if the accessibility plugin is loading (we're not sure), then there shouldn't be any cross-domain security issues and the captions data file should load OK.

s1 = new SWFObject("http://localhost/master/lt/_imgs/swfs/player.swf","ply","625","290","9","#FFFFFF");

fabulous!

I downloaded the player version 4.4.162 and the accessibility swf from your site, and it's working a dream!

Thank you. I guess I'm pretty confused about versioning.

Thanks again for looking at this for me, really great.

Paul

 
You're welcome; glad to see you got it working.

(We're all a bit confused about things, but we're having fun!)

              Good Luck!     :D

Thanks to Lefty and Paul for showing the way:

I had no luck getting captions to display using 4.4.163 with latest accessibility plugin from SVN trunk. The only thing it did for me was display the CC button, but without showing the DFXP text.

Using 4.4.162 and the accessibility plugin from Lefty's page at

http://willswonders.myip.org:8081/Paul.html

totally works!

The latest accessibility.swf from Svn., 02-18-09 5,949 works fine with v4.4.162, but not with v4.4.163.

See it here: http://willswonders.myip.org:8082/Ruby.html
      ...Served by nginx

hmmm.....

WHY??????

it used to work fine..

does anybody actually have this thing working..

"does anybody actually have this thing working.."

NO!   We just posted all that code and the demo links to fill up the blank space.     :D

LOL...

Hi
I have an flash error with the player (version 4.4.166) and the subtitles

I also tried the latst version of accessibility.swf on the trunk, but I have the same problem

thx for you help

<
TypeError: Error #1006: replace n'est pas une fonction.
at com.jeroenwijering.parsers::TTParser$/::parseCaption()
at com.jeroenwijering.parsers::TTParser$/parseCaptions()
at com.jeroenwijering.plugins::Accessibility/::loaderHandler()
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/flash.net:URLLoader::onComplete()
>

ah?? my post disappeared.... raised it as a fresh bug ... maybe an isolated thing

Nice work Lefty - working for me with your setup. Many thanks !

i tried this solutions (local accessibility.swf, subversion player.swf) for captions and audiodescription - and it works about 30 seconds (maybe the length of the mp3 file?!) - after that my browser crashes (vista, ff2.0, ie7) - has anybody the same problems ?

does anyone have any idea how to stop the link and full screen icons from overlapping when using the accessibility and embed plugins? This has been an issue for a long time anyone have any luck?

overlapping icons????

Is it just me or does all of these seem a little too complicated? When are the CC/T and A buttons going to be supported, by default, in the JW FLV player WITHOUT having to download beta copies of the SWF files?

When will I be able to simply say "plugins=captions&captions=myfile.xml" with whatever player is available for download from the main JW FLV page?

Hi
Why not have included the latest version of accessibilyt plugin in the 4.4 version of FLV player ?

I have an error with this version

thx :)

Ok, the simple way to (re-)enable captions if you've upgraded from 4.3 to 4.4:

1) Download the official released version
2) Make sure you're using the default skin so the CC button is definitely there
3) In your 'plugins' flashvar, change 'accessibility-1' to 'captions'
4) Done.

Now, can this info please be integrated into the player's, documentation and/or in the compatibility info for the accessibility plugin, since it simply breaks caption behaviour as of player 4.4, and is *not* 'Compatible with JW 4.2 and up'.

I'm not having any luck with the javascript function firing, nor with loading my own swf (which I'd like to do since I sometimes test on an intranet).

params: {
allowfullscreen:'true',
allowscriptaccess:'always',
enablejs:'true',
flashvars:{
file:'%s',
autostart:'true',
streamer:'$streamer',
plugins: 'captions', // <-- this works
// plugins: 'http://mydomain.com/common/flash/captions', <-- this doesn't work
// http://mydomain.com/common/flash/captions.swf is the lastest plugin and is accessible

'captions.hide': 'false', // true, false
'captions.fontsize': '9',
'captions.volume': '90',
'captions.listener': 'accessibilityCaptions',

displaytitle: 'Display Title Here', // ? new to 4.5
javascriptid:'player2x',
playlistsize: playlist_size,
playlist: 'right'

The caption file itself is in the playlist.

I've tried adding the swf, adding and removing numbers (what is the -1 and -3 on the end?). But mostly my simple js doesn't fire:

function accessibilityCaptions(txt)
{
console.log('Caption: '+txt);
$('#captions').html(txt);
};

Thanks for any help!

Tac

Looking at the code, it appears that caption.listener isn't used anymore.