Reading cue point parameters on video start

Im trying to create a table of contents to navigate to various points in an .FLV file.  I've encoded the flv with cue points in media encoder. I've also added a parameter to each cue called toc_title with the lable that should represent the time in the video to jump to. It occurred to me though that those parameters might not be available to my flash player until the frame of the cue was reached. I need my toc to be visible when the video starts. First of all, is this entirely the wrong approach? I want to make this video player as dynamic as I can and would like to reuse it for several different videos with different TOCs. Is the parameter data set on cue points available at any time in the video playback or only when the cue is reached?  Thanks, John

Hi John, You may receive more advice and help on the Flash forum. You can start a thread there or perhaps some threads may already be discussing your concerns.
http://forums.adobe.com/community/flash/flash_general?view=discussions&start=0
Hope that helps.
eidnolb

Similar Messages

  • Cue point code in video to open URL?

    I have a cue point in a video, named "CUE_POINT" and I'm trying to get a new URL to open when the cue point is reached.
    This is the code I've tried.  Any suggestions??
    import fl.video.MetadataEvent;
    mymovie.addEventListener(MetadataEvent.CUE_POINT, fl_CuePointHandler_2);
    function fl_CuePointHandler_2(event:MetadataEvent):void
    getURL("Black_Vault/vault.html");
    thanks,
    GL

    1. A cuePoint has to be attached to a certain point in time. Look up the docu: http://help.adobe.com/en_US/ActionScript/3.0_UsingComponentsAS3/WS5b3ccc516d4fbf351e63e3d1 18a9c65586-7feb.html
    2.In as3 the getURL method is not valid anymore, use navigateToURL() instead [google for examples how to use it]

  • Problems Using Cue points to Loop Video

    Ok, so I want to use cue points to navigate through video.  I want to start by simply looping the video from the end back to the beginning.  I keep getting an invalid seek error 1003.  Here is my code.  Any help would be much appreciated.  Thanks
    import fl.video.MetadataEvent;
    Movie.addEventListener(MetadataEvent.CUE_POINT, loopFunction);
    function loopFunction(e:MetadataEvent):void
        if (e.info.name == "end1")
            Movie.seekToNavCuePoint("beginning1");
            Movie.play();

    At least you are getting notified even if the seek doesn't work.
    A brief workaround could be to iterate over the cue points you detect in metadata, assigning each cue point name and time in an object. Once you hit the cue point you desire, see if the object has the time value and seek() to the time for that cue point rather than seeking for it by name.
    e.g. (written briefly, you get the idea):
    // object to hold time values
    var cuePointArr:Object = new Object();
    function onMetaData(infoObject:Object):void
        var cueIndex:String;
        for (cueIndex in infoObject.cuePoints)
            trace("Adding cue name[" + infoObject.cuePoints[cueIndex].name + "] at time[" + infoObject.cuePoints[cueIndex].time + "]");
                        // store as name = time
                        cuePointArr[infoObject.cuePoints[cueIndex].name] = infoObject.cuePoints[cueIndex].time;
    function loopFunction(e:MetadataEvent):void
              // correct cue point and has a value in cuePointArr?
        if ((e.info.name == "end1")&&(curPointArr[e.info.name] != null))
                        // seek to time value
            Movie.seek(Number(cuePointArr[e.info.name]));
            Movie.play();
    Moving 900mph here so forgive any typos but turning it into a normal seek based on the time value should work for now.

  • Rendering .flv with cue points but maintaining video size

    When I render an .flv by exporting in After Effects I cannot get cue points however when I import the .flv to a Flash doc, the controller is the same width as the video.
    However, in order to get cue points, you have to add the video to the Render Queue in AE in order to see the cue points in Flash. But the video controller ends up wider than the video itself when imported to Flash.
    My video is 495 wide by 360 high. When I render in AE in the Render Queue, and then import to a Flash doc, the video controller is about 30 pixels wider on both the left and right of the video. This looks goofy. Is their a way to resolve this?
    Thank you.

    Thank you for responding. I tried to but what happens is that that there is about 15 pixels of black space on the left and 15 pixels on the right side of he video. This does not happen when I export to Flash, only when I add to the Render Queue.
    So If I adjust the video size in Flash, the video size changes however the black space still remains. Somehow AE is creating extra space black space on both sides of the .flv. Again, this does not happen when export to .flv.

  • Using external XML to add and set parameters for AS cue points.

    Hi there. I am trying to use external xml to set cue point
    times (for video), titles, and other parameters. I have everything
    set up, except getting the proper data from the xml file to set the
    parameters for my cue points. I am researching hard and learning
    quickly - at this point, I need help. Thanks!

    Anyone?
    Still working on this if anyone has advice. Still haven't
    been able to figure out how to put xml data in the right place:
    addASCuePoint(//data from xml here to set name and time of
    cue point - HOW??//);
    Thanks!

  • Handling Flash video cue points in Javascript

    Can any kind person give me any pointers on how to get Javascript in an HTML page containing an FLV video to listen for cue points in the video? I understand how to get the cue points in, but most people only seem to want to handle the cue point events within Flash. I want to use Javascript to display a different text in a page element at each point. Does the method vary depending on what player you're using? How about when it's the standard Flash playback component? Does there need to be any special Actionscript in the SWF containing the FLV?
    Thanks
    Fred

    Thanks Rob, will do.
    For anyone else looking into this issue there are some links to the ActionScript documentation on this StackOverflow post and an explanation of how to use ExternalInterface halfway down the page in this Adobe Devnet tutorial.
    Presumably you'd first import the ExtenalInterface class into your Flash with
    import flash.external.*;
    And then add an ActionScript event listener which sends the ID of each cue point out to the Javascript using the ExternalInterface.call() method:
    ExternalInterface.call(methodName:String, [parameter1:Object])

  • Streaming Video with Cue Points

    I have made a video with cue points, when it is in a local
    file, lingo can check its cuepointtime and cuepointnames as well,
    but when it is put in streaming server, its cuepointtime and
    cuepointnames are both empty when get by lingo.
    Could anyone please tell how to get the cue points of a video
    when getting it from streaming server?
    Linda

    you're welcome.
    for anyone else with a similar issue, using the info property of the MetadataEvent is the correct way to proceed.  (that event has no object property.)

  • Video Cue Point problem

    I have an FLV loaded into a video player component. The FLV
    has embedded cue points, from Flash video encoder:
    <mx:VideoDisplay id="vidScreen"
    cuePoint="cpHandler(event)" />
    And the handler:
    private function cpHandler(event:CuePointEvent):void {
    Alert.show(event.cuePointName);
    It works, since the Alert boxes open on cue and show the name
    of the cue point. However, if I try to get the array of cue points
    with something like trace(vidScreen.cuePoints) I get null. I need
    to get the array, since I want to do something on each of the items
    in the array of cue points. What am I missing here?

    You don't even need a cuepoint to do this.
    Using the FLVComponent or the VideoPlayer object, use the
    "complete" event to execute code. You set up an event listener
    object to listen to the video object (using
    videoobject.addEventListener(listenerObject) ), and create a
    function for the listener object to do when the "complete" event
    occurs (such as listenerObject.complete = function() { do whatever
    Here's a link to a useful pdf about the VideoPlayer object.
    http://download.macromedia.com/pub/documentation/en/flash/fl8/VideoPlayer.pdf

  • Flash video - Cue Points

    I've just added some external FLV playback in a project that I am currently completing.
    I've currently set my navigation button (next_btn) set to invisible when the page loads (forcing the user to watch the video).
    Can I set a cue point in the video to change the state of the next button (i.e. next_btn._visible = true;) ?

    you don't need a cuepoint to detect the end of your video.  use:
    var lo:Object = {};
    lo.complete = function(eObj:Object):Void {
    next_btn._visible=true;
    flv_pb.addEventListener("complete", lo);   // <- use the instance name of your flvpb component

  • Cue point to jump to next frame of movie

    Hi. I'm a bit lost assigning an action script created
    CuePoint (Entered in Paramenters Window for FLV media component) to
    tell my SWF movie to advance to the next frame and thus call the
    next video I want to throw onto that next keyframe.
    I know this must be basics to most, but somewhere I'm
    missing it. Once a CuePoint is created, how do I link that to
    trigger an action?

    Thanks for reply. I was out of things for a week with flu.
    Serious flu. Now I have to catch up. Grrrr.
    Does that mean ("cuePoint" , ... needs to be replaced with
    the actual name of the cue point to work?
    + The Cue point Parameters. What should they be set
    as?

  • Listening for cue points?

    I keep getting error messages and don't know why?
    I am trying to listen for cue point. What am I doing wrong?
    Also, do I really need to have the NET_STATUS listener attached to both the NetConnection and NetStream?
    Thanks a lot for any help!!!
    var myVideo:Video = new Video();
    addChild(myVideo);
    var nc:NetConnection = new NetConnection();
    nc.connect(null);
    var ns:NetStream = new NetStream(nc);
    myVideo.attachNetStream(ns);
    ns.play("myVid.flv");
    nc.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
    ns.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
    ns.addEventListener(AsyncErrorEvent.ASYNC_ERROR, asyncErrorHandler);
    ns.addEventListener(MetadataEvent.CUE_POINT, cuePointHandler);
    function cuePointHandler(infoObject:MetadataEvent):void
         trace("cuePoint from cuePointHandler");
         trace("Cue point name is: " + eventObject.info.name);
         trace("Cue point type is: " + eventObject.info.type);

    What error do you get?
    Yes, you should have NET_STATUS on both NetConnection and NetStream.
    Also I don't see that you assign client to anything - connection and stream's events/methods are invoked on client. Especially you need it for listening for cue points. So, at least you need a line:
    ns.client = this;
    I think you mix unmixable here. I believe MetadataEvent.CUE_POINT is dispatched by FLVPlayback class. You do not use it. To read cue points from the stream you need to provide onCuePoint method in your code (again, it will work ONLY if you point to the client):
    function onCuePoint (infoObject:Object):void {
         trace("cuePoint from cuePointHandler");
         trace("Cue point name is: " + eventObject.name);
         trace("Cue point type is: " + eventObject.info);
         trace("Cue point parameters Array is: " + eventObject.parameters);
    I would move NetStream instnatiation to a function that is called when NetConnection is successfull. From Adobe help:
    private function netStatusHandler(event:NetStatusEvent):void {
         switch (event.info.code) {
              case "NetConnection.Connect.Success":
                   connectStream();
              break;
              case "NetStream.Play.StreamNotFound":
                   trace("Stream not found: " + videoURL);
              break;
    private function connectStream():void {
         ns = new NetStream(connection);
         ns.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
         ns.client = new CustomClient();
         var video:Video = new Video();
         video.attachNetStream(ns);
         ns.play(videoURL);
         addChild(video);

  • Need some help learning cue points, etc

    I need some help with a Flash project I'm working on. If any
    Flash junkies out there are up for sitting down with me through
    email or IM and helping me get to the point where I have a template
    FLA doing what I want to do, I'd be willing to pay you. It wouldn't
    be much, but it would be something. Here's what I'm trying to do:
    I need to create an interactive talking-head style flash
    presentation with a number of progressive download externally
    linked FLV files, playing in succession, supported by movie-clip
    text animations and supporting graphics which are triggered by cue
    points in the video. I also need a simple navigation menu linking
    to the FLV files. I've got some of this down already, namely, I've
    laid the FLVs in and they are playing in succession. I'm stuck on
    the cue point part. At this point I really just need some hands-on
    help. I've bought books, I've scoured the web.
    I'm easy to communicate with, and I'm good with computers and
    comfortable in many multimedia design programs. Flash is very
    powerful, but tougher to learn than I expected, and I'm at the end
    of my rope =P

    My advice... start with a very simple "proof of concept" project before you attempt the entire package.
    It will be much easier to scale up if you first have a very good understanding of what's going on.
    So one simple video with just one cuepoint and only one button and additional display. You'll also have to work out the interaction of pausing the video when a cuepoint is reached or button pushed to display the graph, giving the viewer time to read the graph... then when the viewer closes the graph, the video should "resume".
    Start very simple and build on that only after you understand the fundamentals.
    Second, you mention "video reports"... plural. So that most likely means that you will need a video player with a "playlist".
    This may mean that you'll need to learn to use a little .xml to bring in the playlist data. You may also find xml an excellant way to bring other data into you project.
    At the link listed above there is an excellant tutorial on "Integrating Flash and XML"
    "Flash and XML"
    "XML Video Playlist"
    "ActionScript 3 XML Basics"
    "ActionScript 3 Advanced XML"
    Personally I would not even begin a project like this without considering how I could use xml to feed data into the project.
    Here's an example of a video player I created that has a playlist, thumbnails, categories, transcipts, "Now Playing" etc. All that data comes into the main .swf via various xml files. Super good way in input data into Flash.
    http://www.drheimer.com/video/
    Yours is a rather ambitious project and will take awhile to gain the skill and assemble the pieces. So when you come to a new part... first create a real simple "proof of concept" model so you can learn how that section works. Don't expect to be able to assemble the entire project all at once.
    Best wishes,
    Adninjastrator

  • 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.

  • Cue Point Navigation

    I will preface this all by saying I am very new to the whole
    idea of using code for anything (I have problems programming my
    watering system at home and it's got buttons) and I could sure use
    some help from people in the know.
    I'm working on an FLA that has 7 talking head videos
    w/PowerPoint slides as pngs from a medical conference.
    I'm trying to get slides to synchronize with embedded
    navigation cue points in the video. All the code I entered so far
    was based on the Adobe article "Controlling Flash video with
    FLVPlayback programming-Cue point event handling" and I used the
    code example provided. When I exported the movie all I get is a
    flickering flv icon on the screen and the following error message:
    line 1 1046: Type was not found or was not a compile-time
    constant: MetadataEvent.
    Attach Code
    function cuePointHandler(event:MetadataEvent):void
    trace("name = "+event.info.name);
    trace("time = "+event.info.time);
    // Go to a frame label with the cue point name
    gotoAndStop(event.info.name);
    flvControl.addEventListener(MetadataEvent.CUE_POINT,
    cuePointHandler)

    before the function add the following line:
    import fl.video.MetadataEvent;

  • Cue Points

    I have a flv which im loading in from another location (ie
    its not embeded), and Im trying to create a loop point using cue
    points.
    I have 3 cue points: begining, loop_point, end
    Basically when the playhead reaches the "end" cuepoint, I
    want it to jump back to "loop_point"
    Can anyone help? I have a deadline for monday to get this
    finished!

    Pewee2000,
    > Oh sorry I get what you mean now. Yeh I imported without
    > player and used seperate componants from the flv custom
    > playback UI panel to control the movie.
    Okay, I'm not exactly clear on what you just said, so I'm
    going to
    proceed as if you're using the FLVPlayback Component. Here's
    the scoop on
    using ActionScript. Just about everything is an object.
    Objects are simply
    "things" that behave a certain way. Movie clips are objects,
    buttons are
    objects ... FLVPlayback Component instances are objects --
    you get the idea.
    :) Objects are defined by something called classes. Think of
    a class as a
    given object's blueprint. You'll genearally see up to three
    categories in a
    class: properties, methods, and events. Properties are
    characteristics an
    object has, such as a movie clip's width and height. Methods
    are things an
    object can do, such as movie clip's ability to gotoAndPlay()
    some frame.
    Events are things an object can react to, such as a mouse
    click.
    In your case, the FLVPlayback events include a cuePoint
    event. You can
    see detailed information -- often including sample code --
    for all the
    properties, methods, and events of the FLVPlayback class by
    looking up the
    phrase "FLVPlayback class" in the Components Language
    Reference right in the
    built-in Help documentation. Component classes are listed in
    this
    reference, and normal classes are listed in the ActionScript
    2.0 Language
    Reference. In the AS Language Reference, the three categories
    are combined
    in each class entry, but for some reason the Components
    Language Reference
    separates them. But you'll see 'em when you look up the
    class.
    You'll want to take things slow and start with a *simple*
    example.
    Assuming you've added cue points through the Component
    Inspector panel, your
    FLV will honor those cue points during playback. Start your
    journey by
    looking up the cuePoint event in the "Event summary" section
    for the
    FLVPlayback class.
    You'll see this:
    var listenerObject:Object = new Object();
    listenerObject.cuePoint = function(eventObject:Object):Void {
    // insert event-handling code here
    my_FLVplybk.addEventListener("cuePoint", listenerObject);
    ... which may look scary if you're not a coder, but it works
    like this:
    first, a variable named listenerObject is delcared as a
    generic Object
    isntance. This object is your "ambassador" for the
    FLVPlayback instance,
    which features the cuePoint event. You assign a function to a
    new cuePoint
    property of your generic object. This function will be
    executed when any
    cue point occurs. Finally, you use the addEventListener()
    method to
    "subscribe" your FLVPlayback instance to the generic object,
    listenerObject.
    Now you're "listening" for cue points.
    In the above example, the instance name for your FLVPlayback
    instance
    must be my_FLVplybk -- but you can make it whatever you like,
    as long as the
    ActionScript matches the instance name.
    Where it says "// insert event-handling code here," you may
    want to use
    a trace function ...
    trace("Here's a cue point!");
    ... just to prove to yourself that it works. Read up in the
    documentation,
    and you'll see that the eventObject object received by the
    function contains
    valuable information about the FLVPlayback instance that
    dispatches the
    cuePoint event. You can trace eventObject.target, for
    example, and get a
    reference back to your FLVPlayback instance.
    trace(eventObject.target);
    That reference would let you refer to the FLVPlayback
    instance and
    invoke FLVPlayback methods on it, such as your various seek
    options for
    looping.
    David Stiller
    Adobe Community Expert
    Dev blog,
    http://www.quip.net/blog/
    "Luck is the residue of good design."

Maybe you are looking for

  • Problems with tutorial: "Creating a Web Dynpro Tree"

    Hi! I'm a rookie and therefore I'm practicing on compleating some tutorials like "Creating a Web Dynpro Tree" (https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f0ec6622-8da5-2a10-349b-868b6a553efa) I did just as the tutorial told m

  • In CS6 - how can I un-blur text within a photo taken at a seminar of a powerpoint slide presentation

    Is there a way in CS6 to un-blur or "clean-up" text within a photo taken during a powerpoint slide show presentation at a seminar ?

  • War application in weblogic6.0

    i have a war application with the following directory structure.(for jsp tag libraries) .jsp file WEB-INF/.jsp file, .tld file, web.xml. WEB-INF/classes/tagclass. i am able to deploy this file in weblogic 6.0, but what extra settings are required to

  • I'm trying to organize LR4 lib for 1st time

    Hi,   I've installed LR4.  At installation, it created a Lightroom folder in my Pictures folder (I have an iMac).  Also inside the Pictures folder is a folder I created called Mike's LR Photos (I'm trying to follow Scott Kelby's book).  Within my "Mi

  • Photoshop file corruption (selections deleted from layers)

    I was working on 5 photoshop files today. Photoshop stared previewing one of the files very oddly (when you zoomed in nothing was there). I saved all open files and quit Photoshop. Upon opening Photoshop all files had random selections deleted from t