Need .flv to pause on Cue Point usingActionScript 3

I'm creating a presentaiton of a Google Earth flythru. At
specific (cue) points I need the FLV to pause and then when the
presenter pushes a key (space bar) the FLV continues to play. I
have a good understanding of the Event Listener process for AS 3.0
but am not sure how to address the the action of the pausing once
the flv reaches the cue point. Does anyone know of any good
tutorials? Or any helpful insight?
Thanks,
Mike

NetStream events have nothing to do with cue points.
onCuePoint method belongs to NetStream client. So, you will need
something like this:
client.onCuePoint = pointListener;
function pointListener (cuePoint:Object):void {
trace(cuePoint.name + " " + cuePoint.time);
In a nutshell NetStream events are fired when changes occur
in video delivery (buffer, start, pause, etc.) - not video content.
More information:
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/net/NetStream.html
As for your code, your syntax is not correct.
You wrote: vid.addEventListener(NetStatusEvent.NET_STATUS,
"myFirstCuePoint");
If you listener function is myFirstCuePoint you need to
write:
vid.addEventListener(NetStatusEvent.NET_STATUS,
myFirstCuePoint); - no quotes.
Also, I don't use FLVPlayback - it has it's own methods and
events. What I wrote pertains to the cases when NetSream and
NetConnection are used stand alone.

Similar Messages

  • Pause on Cue Point

    I have set a cue point in my FLV at 58 seconds. Can someone
    tell / show me
    how I can add a pause to the video when it reaches that first
    cue point. I
    have it set (intially) called break and it is set to 'Event'.
    Thanks. I am an eager noobie to Flash video and actionscript.

    NetStream events have nothing to do with cue points.
    onCuePoint method belongs to NetStream client. So, you will need
    something like this:
    client.onCuePoint = pointListener;
    function pointListener (cuePoint:Object):void {
    trace(cuePoint.name + " " + cuePoint.time);
    In a nutshell NetStream events are fired when changes occur
    in video delivery (buffer, start, pause, etc.) - not video content.
    More information:
    http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/net/NetStream.html
    As for your code, your syntax is not correct.
    You wrote: vid.addEventListener(NetStatusEvent.NET_STATUS,
    "myFirstCuePoint");
    If you listener function is myFirstCuePoint you need to
    write:
    vid.addEventListener(NetStatusEvent.NET_STATUS,
    myFirstCuePoint); - no quotes.
    Also, I don't use FLVPlayback - it has it's own methods and
    events. What I wrote pertains to the cases when NetSream and
    NetConnection are used stand alone.

  • FLV Stops at first Cue Point

    Anyone have any idea why an FLV would stop at the first cue
    piont? I've switched the cue point to event AND navigation and it
    stops every time... can't figure it out.

    OK, now not anymore. Didn't change anything.

  • Create navigation cue points in a FLV file using Media Encoder CC

    When I export a FLV file with Navigation cue points created in Media Encoder CC (by loading a cue points XML file), upon examining the file I see that the cue points are recorded as Event type cue points in the metadata at the top of the file.
    When I load the FLV file in Flash, I can receive cue point notifications using action script while the video is played, but cannot use seekToNavCuePoint to move the play head to one of the cue points, which accords them being Events rather than Navigation points.
    I am wondering if there are any other export settings which need to be particular values in order for navigation cue points to be created properly in the exported file?

    Lestyn, thanks for the verification.  Took me a frantic 4 hours to arrive at the same conclusion.  Do these people test their software???
    Maddening.

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

  • How to insert cue point in flv with cloud applications

    Hello,
    I'm new in creative cloud.
    With my previous version of adobe suite, with adobe media encoder, it was possible to insert cue point.
    In Adobe media encoder CC 2014 it seems not to be possible.
    Could you help me?
    Thanks.

    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.

  • Exporting FLV With Cue Points In Adobe Premiere Pro CS5

    Hello
    I am currently using Adobe Premiere Pro CS5 to export to a FLV file with flash cue points. I have managed to do this but I also want to export (separately) a list of all the time codes of the cue points in the clip. I see that you can save the cue points to an xml file but it doesn't come up with the time codes (well it does, but it is in milliseconds and amongst other things). Is there any way I can save a list of the time codes of the cue points on my FLV file, rather than having to manually type it out?
    Thanks,
    Rvnistelrooy

    I don't think there is any easy way to do this, but one thing I could suggest is to export the metadata as an xml side car and then use the text editor to extract the times.  I'm not sure this would work, but it's worth a try.
    Cheers,
    Dennis

  • Cue Points? - embedded or assigned?

    Hello. I need to get an FLV file (in a Flash project, using FLVPlayback component) to use cue points to trigger some fly-in text (could be movie clip, if that's easier). Not sure of the dis/advantages of embedded vs. assigned.
    Advice? Thanks.

    if you haven't created the flv yet, embed the cue-points when you create it.

  • 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);

  • Video cue point question

    Is it possible to jump to a cue point directly when loading a new video?
    I have a video for one of my sections on my flash web site and depending on from where the user is coming from, they either start to view at the beginning of the FLV, or at a cue point about 10 seconds in. Is that possible? Would there be any loading issues here? Would it load the 10 seconds, or if told to go to that cue point, would it start to load from that point?
    Thanks a lot!

    try:
    var myVideo:Video = new Video();
    addChild(myVideo);
    var nc:NetConnection = new NetConnection();
    nc.connect(null);
    var ns:NetStream = new NetStream(nc);
    myVideo.attachNetStream(ns);
    nc.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
    ns.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
    ns.addEventListener(AsyncErrorEvent.ASYNC_ERROR, asyncErrorHandler);
    ns.play("video/testFLV.flv");
    ns.client = this;
    function cuePointHandler(infoObject:Object):void
         trace("cuePointHandler called");
         trace("infoObject.name: " + infoObject.name);

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

  • Tracing cue points in dynamically loaded video

    The beauty of using a video object in Flash is that you don't
    have to import the .flv file (at least that's how I understand
    this). I've loaded Untitled.flv dynamically using the code below
    and it plays just fine. I've created my own video player buttons
    and they work fine as well.
    I've encoded my Untitled.flv and created a cue point at 10
    secs with the following info:
    Name: cuePtEnd
    Time: 00:00:10.00
    Type: Event
    I left the parameters window empty.
    I want to trace the following statement, "Cue point reached"
    once this cue point is reached. I have an idea of how to do this
    using the FLVPlayback component, but if I place an instance of this
    on the stage, I'll have two videos, the one that I'm loading
    dynamically and the instance of FLVPlayback. I don't want to use
    components; I'm a little confused at this point; please help.

    Make a simple Director movie. Link your video file and place
    the sprite on the stage. Add two buttons. Use the first button to
    start and stop the video. Use the second button to record the
    movieTime. You can use this sample if you like:
    http://www.ddg-designs.com/downloads/movieTime.zip.
    Play the video, and at each point where you want the video to
    start at a new point, click on the second button. When you are
    finished, you will have a list of all of the starting points for
    the video. You can do the same thing for the end times of each
    section.
    Once you have this list, you can use these as you would use
    the cue points.

  • Cue points - listener vs event?

    I'm a little over my head here...
    I have a movie that loads an external flv. In the flv I have
    a cue point at
    the very end to mark the end of the movie. Once the flv is
    done playing,
    I'd like to advance to the next frame.
    There are a few posts here and there and I'm not sure if I'd
    be better
    testing for the end cue point with a listener or if it could
    be an event.
    Any help would be appreciated.
    I'm using Flash 8 Pro/PC

    David,
    >> There are a few posts here and there and I'm not
    sure
    >> if I'd be better testing for the end cue point with
    a
    >> listener or if it could be an event.
    Cue points are events, no matter how you handle them. There
    are three
    basic categeories of object functionality: properties
    (characteristics),
    methods (things the object can do), and events (things the
    object can react
    to). An "end" cuepoint is something your video object reacts
    to, so it's an
    event. How you *handle* (that is, manage) this event depends
    on how the
    object was written. Some objects, such as Button, TextField,
    and MovieClip
    instances require event handlers. Some require event
    listeners.
    I blogged on this just the other day, so for what it's
    worth, take a
    look here ...
    http://www.quip.net/blog/2006/flash/event-handlers-listeners
    Hope that helps.
    David
    stiller (at) quip (dot) net
    Dev essays:
    http://www.quip.net/blog/
    "Luck is the residue of good design."

  • Cue Points with netstream

    I've created a custom object without the FlvPlayback
    component. I used the following code:
    var nc:NetConnection = new NetConnection();
    nc.connect(null);
    var ns:NetStream = new NetStream(nc);
    myVid.attachVideo(ns);
    ns.play("flv/home/intro.flv");
    That flv file has embedded cue points. How do I access them?
    I can access them easily if I were using the FlvPlayback component,
    but I don't think the cue points are getting through the netstream.
    Any ideas?

    use the ns.onCuePoint event handler.

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

Maybe you are looking for

  • Accessing photos outside of iPhoto 08

    I'm having trouble accessing my photos from anything except iPhoto. When I upload them from my camera using iPhoto, I let iPhoto determine the file structure. In the previous version, I could click in iPhoto Library through the finder and browse dire

  • IP Redundancy on 7200's with CPA's

    I have 2 7206's with CPA cards Escon attached to an IBM host. I'm trying to get IP failover to work without using EMIF. If I fail one of the boxes, IP rolls over to the second box. When I power that box back up, IP stops working. If I then do a shutd

  • Question Regarding month end closing T-Code KSU5

    We are at the end of the month and want to execute assessments using TCode KSU5.  My question is if we execute the assessments for an accounting period and then post additional expenses after posting the assesments what will be the outcome?  Can we r

  • Serial Number / Customer equipment card capabilities

    Material Structure for Sales BOM  - Item A Item A = sales Item only, Non inventory, not purchases.  The item comprises of 1 x Item B (serialised item on every transaction, and automatic customer equipment card creation). 1 x Item C (serialised item o

  • Reports Background Engine - How To Automatically Close?

    I use Developer 6. When I run a Reports, using RUN_PRODUCT built-in from a menu, a REPORTS BACKGROUND ENGINE starts up automatically, and it opens a session with the server, and runs reports. Since it is in another session, I cannot use uncommitted r