FLV Cue Points and Captions

In FLVPlayback working in as2.0, created cuepoints for FLV and i added
captions wit xml file. but captions not loading
I did following steps and script.
*step1: layer 1 for flvplayback
*step2:layer2 for dynamic text(instance name-txtCaption)
step3: layer3 for actions and the script is
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
//ns.play("speech.flv");
ns.onMetaData = function(oMeta:Object) {
    trace("onMetaData >");
    trace("\tNumber of cue points: "+oMeta.cuePoints.length);
    for (var i:Number = 0; i<oMeta.cuePoints.length; i++) {
        var oCue:Object = oMeta.cuePoints[i];
        trace("\t\t"+i+": "+oCue.name+", "+oCue.type);
        var captionsXML:XML = new XML();
        captionsXML.ignoreWhite = true;
        captionsXML.onLoad = function():Void  {
            captions = this.firstChild.childNodes;
            for (var i:Number = 0; i<captions.length; i++) {
                ns.addASCuePoint(captions[i].attributes.start,captions[i].firstChild.
nodeValue);
        captionsXML.load("cuecaption.xml");
        ns.addEventListener("cuePoint",onCuePoint);
        function onCuePoint(evntObj:Object):Void {
            txtCaption.text = evntObj.info.name;
XML script
<?xml version="1.0" encoding="iso-8859-1"?>
<captions>
<caption start="00.000">Black-eyed susans</caption>
<caption start="38.082">Echinacea</caption>
<caption start="42.275">hello.......</caption>
<caption start="56.250">hi.........</caption>
<caption start="56.250">hi.........</caption>
</captions>
Plz reply me....
Regards,
Priya

Did you have any luck finding an answer to your question??? I am having the same kind of problems with my presentation. But the difference is that my presentation is in AS 3. Please look at my post here:
http://forums.adobe.com/message/2178119#2178119
Please let me know if someone can figure this out!!!
Thx.
Nit

Similar Messages

  • Soundbooth CS5 FLV Cue Point Woes

    I have been attempting to use Soundbooth CS5 to insert cuepoints in .flv files (audio track only) to cue up some audio stuff in Flash using the FLVPlayback Class. It seems the implementation of cuepoints/markers in Soundbooth is really buggy and prone to either not working at all or producing unexpected results. Here are some problems I have encountered:
    1. Soundbooth regularly does not save the cuepoints (markers) in a way that the Flash Player can detect.
    This is easily verifiable - no MetaDataEvents are dispatched on playback (to indicate a cuepoint has been reached) and the 'findNearestCuePoint' method of FLVPlayback returns an Object with a null 'array' property - I have to use this to access the cuepoints when the flv is loaded (for some pre-processing) because, weirdly, Adobe engineers did not think that making the cuepoints accessible for a (fully loaded) .flv was useful - there is a cuepoints property but it is write-only. Yet, I can get an array of them via this method! Bizarre.
    Both of these things (MetaDataEvent dispatch & the cuepoints array 'hack') occasionally work so I'm confident it's not my code. In fact, I have some .flv files that work perfectly and some that don't - these have all been created by me in Soundbooth.
    At first, saving cue points did not work at all for any file! I struggled with this for two days before resorting to re-installing SB and it magically started (almost) working.
    2. Soundbooth sometimes doesn't save changes to the markers.
    When SB does feel like saving the cue points (and they are picked up in Flash), subsequent edits appear in the SB interface (eg. deleting a marker) but not in Flash. I have .flvs that I've edited which will report x number of markers but the 'findNearestCuePoint' objects 'array' property returns an array of the length before I made the changes/re-saved the file.
    3. Soundbooth sometimes doesn't like re-saving files created in Soundbooth.
    I open up the .flv created in Soundbooth itself, edit it and then hit 'Save', this appears:
    "The file was saved with unknown compression or with an unsupported destination rate, please choose your destination format and language".
    Great. It takes me to 'Save As' so I can select a new name/file-format and I just select the same one it was saved under before (.flv). I have to change the filename too, because SB doesn't like saving over a file that's open in SB, either.
    4. Sometimes it all works!
    And I have no idea why. I just keep opening the file I need to use re-save it under a different file name, select different export options, re-compile my app and sometimes it works fine - my app doesn't throw any errors (the ones it throws when there are no cuepoints, or the number of cuepoints is not the number it expects).
    At first I thought it was the export settings but it isn't - I can select the same ones each time and get different results. Saving the export settings makes no difference, it NEVER works the second time round.
    I can provide code/files if needed.

    I have a solution.  Bring the mp3 file that you edited into Premiere.  From Premiere, export
    media to an flv.  From within the export media dialog, import your cue points xml file.  It worked on my first try.
    The problem is: why does it work from Premiere, but not Media Encoder or Soundbooth?
    Adobe, please fix this, it's a very bad bug!
    - Michael M.

  • Director buttons to FLV cue points?

    Is it possible to use a button to jump the playback head to a flv cue point?
    Director V11.5 Mac

    If you know where the cuepoint is (in milliseconds), you can use the seek() command to jump there.  You might have to do some experimentation to get it to work the way you expect it to.
    Seek() is an asynchronous command.  It can only be used if the sprite currently has a mediaStatus of #playing.  It is ignored if the mediaStatus is #paused, #stopped or #error.
    Immediately after the command is issued, the sprite's mediaStatus switches to #stopped (not #seeking or #buffering) and the currentTime of the sprite is set to the target value.
    If the seek target is negative or greater than the duration of the media, nothing happens.

  • Embedded FLV Cue Points not working

    I am updating a project which uses an FLVPlayback component to play and navigate FLV videos using embedded Navigation cue points. The FLVs were originally encoded using an older version of AME, CS4 possibly. When trying to replace an FLV with a new one encoded using AME CS6, the embedded cue points do not work. Testing in Flash I get "VideoError: 1003: Invalid seek" when attempting to use "seekToNavCuePoint".
    Comparing the two FLVs using Premiere shows no recognizable differences between them. They are the same format, their cue points are named identically, all are designated as Flash Cue Points, and all set to type "Navigation".
    Digging into the FLV data, I've found that the cue point descriptions are formatted quite differently and I'm wondering if this is the source of the problem:
    Excerpt from the original FLV (AME CS4?):
         <rdf:li>
          <rdf:Description
           xmpDM:trackName="AME Markers"
           xmpDM:frameRate="f254016000000">
          <xmpDM:markers>
           <rdf:Seq>
            <rdf:li
             xmpDM:startTime="9323149248000"
             xmpDM:name="q1in"
             xmpDM:type="FLVCuePoint"
             xmpDM:cuePointType="Navigation"/>
    Excerpt from the new FLV (AME CS6):
         <rdf:li>
          <rdf:Description
           xmpDM:trackName="FLVCuePoint"
           xmpDM:trackType="FLVCuePoint"
           xmpDM:frameRate="f15">
          <xmpDM:markers>
           <rdf:Seq>
            <rdf:li>
             <rdf:Description
              xmpDM:startTime="550"
              xmpDM:name="q1in"
              xmpDM:cuePointType="Navigation">
             <xmpDM:cuePointParams>
              <rdf:Seq>
               <rdf:li
                xmpDM:key="marker_guid"
                xmpDM:value="2c2c8be0-75af-47d6-8938-4a365e33a550"/>
              </rdf:Seq>
             </xmpDM:cuePointParams>
             </rdf:Description>
            </rdf:li>
    Completely stumped here, any ideas appreciated!

    More digging into the new FLV shows that while XMP defines the cue points as type "navigation", there is prior data in the file that defines all the cue points as "event". This makes sense, because my SWF is correctly listening for and reacting to an "end" cue point in the FLV, but will not seek to any cue point since they are all set as "event".
    Copying and pasting from Notepad++:
    cuePoints       0       name   q1in  time @BYûçl‹D  type   event 
      1       name   q1out  time @JÜ(õ\  type   event 
      2       name   q2in  time @V£¥ãS÷Ï  type   event 
      3       name   q2out  time @^/ Ÿ¾w  type   event 
      4       name   q3in  time @_Oß;d  type   event 
      5       name   q3out  time @nE™™™™š  type   event 
      6       name   q4in  time @s G® zá  type   event 
      7       name   q4out  time @vNÄ›¥ãT  type   event 
      8       name   q5in  time @w¢Ù ‡+   type   event 
      9       name   q5out  time @zw×
    =p¤  type   event 
      10       name   end  time @€ð bMÒò  type   event 
    Any idea why AME is doing this?

  • Cue Points and RTMPE

    I'm hosting an FLV (with embedded event cue points) using
    Flash media server 3.5 in the vod directory. While using Flash 9,
    within component inspector, if I use rtmp protocol in contentPath,
    I can populate the cue points information in the cuePoints section.
    If I use rtmpe, I get failed to load FLV. I've tried using CS4 and
    could not retreive cue points at all. Any help would be
    appreciated.

    I found that captions do reset from the starting point when I
    press reply but cue points (events) don't.

  • HTML link to FLV cue point

    I am reasonably new to Flash and would like to know if I can
    create a html link to a cue point in a flash video file or to a
    particular frame in a normal swf file. If so, what is the correct
    syntax?

    Ok, I seemed to have succesfully linked to the cuepoints
    using, for example, the code below.
    [CODE]
    programsa.addEventListener(MouseEvent.CLICK,programsaClick);
    function programsaClick(event:MouseEvent):void {
    movie1.seekToNavCuePoint("Programs");
    [/CODE]
    However, now I have another issue. The FLV is on frame 2 and
    I want to navigate to it using buttons on frame 1. However when I
    try the following:
    [CODE]
    programsa.addEventListener(MouseEvent.CLICK,programsaClick);
    function programsaClick(event:MouseEvent):void {
    gotoAndStop("movie");
    movie1.seekToNavCuePoint("Programs");
    [/CODE]
    I get the error:
    TypeError: Error #1009: Cannot access a property or method of
    a null object reference.
    at videobig_fla::MainTimeline/programsClick()
    So, how can I tell a button to go to a cuepoint for a movie
    that's on a different frame?

  • Displaying previous FLV cue point during scrubbing

    I have a single FLV that has 10 different scenes in it. I've
    been able to make a "credit" list for each scene by adding
    actionscript cue points in the FLV component, and displaying the
    info using dynamic text. It all works fine.
    Now I want the dynamic text to reflect the current scene when
    the end user scrubs through the video using the seek bar. (Or at
    least after the seek bar is released and the FLV begins to play
    again.)
    I just need a head start, I think.
    Thanks for listening!
    David

    Thank you again Dima!!!
    Now I've CS6 now but the only way that I see to have flv is: Creates (I'm translating from my language) => Flash, from menu file.
    I need to insert cue point ("navigation" like in Media Encore Cs5.5).
    But the only marker that I see in CS6 is named "Chapter" (translating form my language).
    If I create an flv file (like above) I obtain two different flv files (one for chapter).
    Is there a way to insert inside the flv file the "navigation" cue points?
    Thank you again Dima.

  • Streaming .flv cue point problem

    I’ve been working with Flash video with synced slide
    presentations since February, which have been exclusively download
    streaming, all based on the presentation available at the adobe web
    site:
    http://www.adobe.com/devnet/flash/articles/vidtemplate_corppreso.html
    My issue has come up when using this template with streaming
    flv’s, the buttons that I use to reference the cue points in
    the video and slides on the timeline do not work reliably;
    sometimes they will shuttle the video and slides to the correct
    point, usually they move the slides on timeline to the appropriate
    spot and the video jumps back to the beginning. Besides this
    sizable problem, the presentation plays the way it is supposed to.
    Is there a setting in the component inspector that I’m
    missing? Should I re-encode the video with Navigation cue points?
    Any help would be appreciated.
    L

    If you look at the source code for the first link you'll find this at line 71:
    <p id="player1" style="margin: 0px; padding: 0px; text-align:center;"><embed type="application/x-shockwave-flash" src="http://www.thebellyfatsolution.com/flvplayer.swf" style="" id="player1" name="player1" quality="high" wmode="transparent" allowscriptaccess="always" allowfullscreen="true" flashvars="height=390&amp;width=504&amp;file=http://www.thebellyfatsolution.com/beta/video/BellyFatFINAL_6_30_nL.flv&link=http://www.th ebellyfatsolution.com/beta/video/BellyFatFINAL_6_30_nL.flv" height="390" width="504"></p>
    <p><noscript>
    Apparently your video has been encapsulated in JWPlayer. You can find out more about JWPlayer here: http://www.longtailvideo.com/players
    This seems to be yet another solution to a problem that doesn't exist, and whoever runs that website fell for the sales pitch.

  • FLV Cue Points from Soundbooth

    I am having a strange issue. I have several audio files that I have opened in Sounbooth and added cue points. I saved the files as FLVs. Upon importing into Flash CS4 with the FLVPlayback component, my cue points are not loading. The component inspector shows "cuePoints: None".  In a test I did before the New Year, the cue points loaded fine. I have no idea what I did differently this time.  Any ideas?  I know I can add the cue points in the FLVPlayback component, but I'd rather be able to do it in Soundbooth.
    Thank you!

    This is an annoying work around, but here's how I got the cue points from Soundbooth to be recognized in Flash:
    Opened the original MP3 in Soundbooth
    Added my markers/cue points
    Saved As ".AVI"
    Saved again as ".F4V" (not FLV)
    Imported the F4V into the FLVPlayback component
    NOTE: If you add a new cue point to the FLV and try to resave as the same file name, the latest cue point will not import into Flash. I had to do yet another save as and pick a new file name.
    Going to try to eliminate the AVI step, but note hopeful.
    Hope this helps others.

  • FLV cue point script

    Does anyone have a script that will make the movie go to and
    play another frame of the movie when a Flash video cue point is
    reached?

    SM6601,
    > Does anyone have a script that will make the movie go to
    > and play another frame of the movie when a Flash video
    > cue point is reached?
    See my answer in the ActionScript forum. ;)
    David Stiller
    Adobe Community Expert
    Dev blog,
    http://www.quip.net/blog/
    "Luck is the residue of good design."

  • Flv cue points

    Hi all,
    I'm having a problem with the FLVPlayback
    component...everytime i call findCuePt it returns null
    (undefined)...
    i double checked that the cue points are enabled, and still
    no dice...is this because it's a navigation cue point?
    any help appreciated
    etg

    if (index="introductionText")
    I think you need double =, like this:
    if (index=="introductionText")
    -rich

  • Cue Point in FLV Help

    I have a progresive flv with an instance name of myVid which
    is already on the stage and set to autoplay via the component
    parameters tab. When the video plays and gets to a cue point I want
    the flv to pause. The cue point names (embedded when I used Flash
    Video Encoder) are cp01, cp02, and cp03. The video doens't stop on
    the specified cue point and instead just keeps playing. Can anyone
    help me with my code? Is there a better way to do it? Here is what
    I have so far:

    necie,
    > The video doens't stop on the specified cue point and
    instead
    > just keeps playing. Can anyone help me with my code?
    This is definitely the best Adobe forum for your question,
    but since you
    happened to post in the General forum first, I answered your
    thread there.
    David Stiller
    Adobe Community Expert
    Dev blog,
    http://www.quip.net/blog/
    "Luck is the residue of good design."

  • Use cue points to automatically pause flv

    I have a video that I would like to make play in steps. I
    already have a custom flv playbar, so I would like to use cue
    points to control it
    Thanks in advance

    i am looking for this same answer. i am not a pro at flash
    but good enough to make my way around. Here is what I have done so
    far....
    using components i dragged the FLVPlayBack onto stage, i set
    the source of the playback to my flv. as of right now, 'cuepoints'
    is set to none. i'd like to be able to set in about 5 cue points
    and have them auto pause each time they come up. any help would be
    appreciated!
    thanks,
    travis

  • Need help with embedded cue points in FLV please (quickly/ :-))

    Here is my scenario - I have a flv streaming in a swf. All I
    want to do is to is call the cuepoint (event) in the flv, so that
    it will go to and play somewhere else further down the timeline of
    the swf - I don't think it should require much AS, but I haven't
    done much communication of this sort between an flv and it's parent
    swf. Any help would be greatly appreciated! Thanks.

    I figured it out. If anyone is interested, this the code snippet I found in Adobes help that allows you to access cue points and trigger events on flv's brought in with netstream:
    function onCuePoint(infoObject:Object):void
    trace("onCuePoint:");
    for (var propName:String in infoObject) {
    if (propName != "Run")
    RunCuePoint.visible=true
    else
    trace("parameters =");
    if (infoObject.parameters != undefined) {
    for (var paramName:String in infoObject.parameters)
    trace(" " + paramName + ": " + infoObject.parameters[paramName]);

  • Calculating duration between cue point?

    I'm using Flash Pro CS3. My project is AS2 targeting FP8.
    I have an flv component on stage. My .flv has cue points and
    I have buttons underneath the component that show the title of each
    navigation cuepoint in a dynamic text field. I have another dynamic
    text field that shows the cuepoint time for each cuepoint,
    positioned next the the title of the cuepoint. That all works well
    but hoping to accomplish a bit more and can't find any code help.
    The three things I'm trying to do are:
    1. Instead of showing current time at a particular cuepoint,
    show the duration of the section/chapter, if you will. How can I
    calculate duration between two cuepoints and display it in my
    dynamic text field? Is there something I should do when
    encoding/adding the cuepoints or can I use AS with the cuepoints I
    have?
    2. Once I get that duration and have it display instead of
    the actual cuepoint time, have it countdown backwards when the
    playhead is in that "chapter"?
    3. Show these times in the mm:ss format?
    Thanks for any help or links you think might be helpful...
    -Scott

    Function Modules related to Date and Time Calculations
    CALCULATE_DATE : Calculates the future date based on the input .
    DATE_TO_DAY : Returns the Day for the entered date.
    DATE_COMPUTE_DAY : Returns weekday for a date
    DATE_GET_WEEK : Returns week for a date

Maybe you are looking for