Flash Video: Dynamic Cue Points?

I am trying to write a Flash movie that will play an FLV and
pause the video dynamically at a specified time without the use of
embedded cue points. Is this possible?
For example, I want to be able to play an FLV for 5 minutes
and automatically pause the playback. I want this pause time to be
defined before each FLV playback. So I cannot use hard coded cue
points.

set two variables:
_root.tTime =t he time you want to pause
and
_root.hTime = the playhead time at any given moment.
Select your .flv component on the stage & open the
Actions panel, place the following code:
onClipEvent (enterFrame) {
//set the time variable to equal playheadTime
_root.hTime = _root.FLVPlayback.playheadTime;
//Test repeatedly,to see if playheadTime has reached
totalTime
if (_root.hTime > _root.tTime) {
//If so then pause the .flv file Place your code here
Then set _root.tTime to define the pause time before each FLV
playback. As soon as hTime > tTime your pause will take place..
Hope this helps...
Dcon

Similar Messages

  • Flash video - navigation cue points from xml?

    Is it possible to load navigation cue points from an xml file
    like you can
    do with captions or do they always have to be embedded in the
    encoding?
    If it's possible, can you PLEASE point me to a resource that
    shows you how?
    I've searched and searched for weeks and found nothing!
    Thanks,
    Mickey

    Thank you Jamesabth and GenaroRG for your responses. Someone
    in the
    flashcom newsgroup pointed out
    http://flowplayer.org/. This
    looks like
    exactly what I've been looking for. I'll give it a try first.
    Thanks,
    Mickey
    "Mickey" <[email protected]> wrote in
    message
    news:fk4krg$ca5$[email protected]..
    > Is it possible to load navigation cue points from an xml
    file like you can
    > do with captions or do they always have to be embedded
    in the encoding?
    >
    > If it's possible, can you PLEASE point me to a resource
    that shows you
    > how? I've searched and searched for weeks and found
    nothing!
    >
    > Thanks,
    > Mickey
    >

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

  • Stopping streaming video with cue points

    I've been searching for a solution to this problem for weeks now. All i want to do is make a video streaming in a video object to stop on a cue point, and play from abother when a button is pushed. It's relatively simple, right? Wrong. Over a hundred $s in how-to books and several hours wasted searching online later and I have nothing. I have checked and re-checked the cuepoints are correct (i made them in flash video encoder CS3) and tried just about everything as far as AS is concerned. Here is my latest attempt: (obmintro is the player instance name, i have the rtmp info in source under player parameters and it plays fine)
    import fl.video.MetadataEvent;
    obmintro.addEventListener(MetadataEvent.CUE_POINT, cp_listener);
    function cp_listener(eventObject:Object):void
    if (eventObject.object.name == "site_end");
      obmintro.pause();
    //i have also used stop, stop("obmintro"); and i don't even know what else.
    please tell me what i'm doing wrong and how it's really supposed to be done. i'm feeling very hopeless and blonde right now. help a girl out?

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

  • Flash and SoundBooth Cue Points

    I'm creating a swf with the lyrics to a native song. I used
    Soundbooth to edit the song and add markers, now I want Flash to
    take those markers to play a certain frame until the next marker is
    reached. What type of parameters (ie examples) are used in SB for
    the markers to be used in Flash.

    pisare az diar ghorbat

  • Using cue points in Flash CS5 to trigger actions

    Hi there,
    I'm looking to use a cue point in a video to trigger an action, in this case go to and play at a movie clip on the stage. Is this possible. My setup is as follows:
    I've a video on stage with the instance name 'vid', with a cue point 'lap1' (an actionscript cue point created directly in Flash using the properties panel). When the video reaches cue point 'lap1', I want it to go to and play frame 2 of a movie clip I've got on stage with the instance name 'cueMovie'.
    Any help would be great; I've looked online for tutorials but no joy.
    Cheers,
    Conor

    1  stop();
    2  varListenerObject:Object = new Object();
    3  listenerObject.cuePoint = function(eventObject:Object):Void{
    4  trace(Cue Point:"+ eventObject.info.name);
    5  trace("event:"+eventObject.info.type);
    6  if(eventObject.info.name=="cue Point 1"){
    7  gotoAndStop(2);
    8  }
    9
    10 }
    if your cue point is named cue point 1 then you can leave script as it is if not you have to insert your cue point name> Also it has to be an event type of cue point to work.

  • FLV/Mp3 Cue Points for Accessing Frame Labels on the Main Timeline in Flash 8

    Hello,
    In Flash MX2004, creating cue points for syncing locations on
    flv and mp3 files to locations on the main timeline included:
    1) Dragging a media component onto the stage
    2) Entering file path, frame label name, and time code
    information in the component inspector
    3) Creating the frame label names on the main timeline, and
    4) Enabling the Media Labeled Frame Cue Point Navigation
    Behavior
    Flash 8 documentation details a considerably different
    process of creating cue points. While it discusses how to create
    cue points in the flv, I have not been able to locate how to enable
    linking locations in flv and mp3 files with frame labels on the man
    timeline. It appears that there would need to be ActionScript
    necessary to accomplish this that is not available in the docs.
    Please advise what ActionScript/process would enable this
    function.
    Thank you!
    James
    [email protected]

    I usually start off solving problems with the livedocs, as I
    recommend for anyone. The following link will take you to the
    NetStream.onCuePoint handler. This is what you need.
    http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context= LiveDocs_Parts&file=00002561.html
    You can have this code on the main timeline. When the
    cuepoint is hit, it will invoke this event handler and inside is
    where your gotoAndPlay( ) should go.
    Your other question about the text will get activated by the
    same handler. Just have a conditional statement (if, switch, etc.)
    to differentiate between the two events. The text itself can be
    mask inside a movieclip.
    Does this help?

  • How to jump to a cue point when your buttons are on a different scene??

    hi guys!!!
    well, im new here and more or less new with action script,
    that´s why i want to ask you this:
    im making a flash movie which is going to have a video with
    cue points, what i wanted to do is to create a menu of buttons in
    one scene let´s say scene 1 and the video is in scene 2, what
    i want is that when you press one of the buttons who are in the
    menu of scene 1 it takes you to the cue point on the video which is
    on scene 2, think of it like one of those chapter selection menus
    that you see on dvds, now my problem is that i don´t know what
    i have to do in order to let the button know that i want it to jump
    to the cue point, i´ve been able to do this if the buttons are
    on the same scene where the video is, but when i try to make this
    with the buttons on a different scene i can´t jump to the cue
    point, so far i´ve only been able to make the button go to the
    video and play it but it doesn´t go to the cue point, this is
    driving me mad please can anybody here tell me how to do this??? i
    have found hundreds of ways to do it with the buttons on the same
    scene but none with the buttons on a different scene,
    thanks!!!!

    Hi Anthony,
    Thank you for your post.
    It would be better if you share any link or actual composition with us.
    Regards,
    Devendra

  • VideoPlayer and adding Cue Points

    I'm having a tough time getting cue points to work with the new sparks VideoPlayer. In the documentation, it states that VideoDisplay has been replaced with VideoPlayer, but most of the examples on the web are for VideoDisplay.
    I'm calling the usual 2 classes from the mx namespace.
         import mx.events.CuePointEvent;
         import mx.controls.videoClasses.CuePointManager;
    then trying to dynamically add cue points like this:
    I then create an instance of the CuePointManager, with myVid [type sparks VideoPlayer]
         cuePointManager = new CuePointManager(myVid);
    then create a new cuePt Objectwith name and time properties and try to add it as a cue point:
         myVid.myCuePointManager.addCuePoint(cuePt);
    where
    - myVid is the VideoPlayer instance
    - myCuePointManager is an instance of CuePointManage
    - cuePt is an Object with name and time
    I get errors about cooercing myVid [type sparks VideoPlayer]
    1067: Implicit coercion of a value of type spark.components:VideoPlayer to an unrelated type mx.controls.videoClasses:VideoPlayer
    1119: Access of possibly undefined property cuePointManager through a reference with static type spark.components:VideoPlayer
    Can someone please be very kind and give me a nudge in the right direction. I've been pulling my hair on it for a day now, and couldn't find any tutorials specifically on the new sparks VideoPlayer and how to add dynamic cue points to it.
    Thanks,
    David
    P.S. Video is big on the web. I would say that sorting out the VideoPlayer should be one of the top priorities in the new version of the SDK.

    The short answer (and the official one) is that our new Spark VideoPlayer doens't support cuePoints.
    The longer answer is that as OSMF (Open Source Media Framework, which is what the Spark VideoDisplay/VideoPlayer components ship with) adds cue point support, you might be able to take a newer build of OSMF and start using cue points.  Here's some info on OSMF and cuePoints: http://blogs.adobe.com/osmf/2009/11/cue_point_support_in_osmf.html .  You could try taking one of their recent builds and playing around with it.  In order to bring those classes in to Flex, I'd probably reccomend monkey-patching on top of spark.components.VideoDisplay and changing a few things as some of the underlying OSMF APIs that Flex is dependent on have probably changed.  Then, you'd have to look at how to expose cuePoints from the spark VideoDisplay component.
    -Ryan

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

  • Flash Video Cue Points don't work

    I used the template sample from Adobe named :Flash video
    template: Showcase website for personal video...I followed all the
    steps sugested. I used Flash Video Encoder, created the cue points,
    worte down the location of those cue points, which I wrote exactly
    in the Settings.XML file for each chapter....etc. I guarantee you
    that I did it all as sugested...In fact several months ago, it
    worked for another project and another videos that I had.
    But this time, when I am testing it, the video appears in the
    screen all right but when I select a chapter for the section of
    that video, an error appears like this :
    VideoError: 1003: Invalid seek
    at fl.video::VideoPlayer/seek()
    at fl.video::FLVPlayback/seek()
    at
    Video_fla::MainTimeline/chapterClickHandler()[Video_fla.MainTimeline::frame1:184]
    VideoError: 1003: Invalid seek
    at fl.video::VideoPlayer/seek()
    at fl.video::FLVPlayback/seek()
    at
    Video_fla::MainTimeline/chapterClickHandler()[Video_fla.MainTimeline::frame1:184]
    My Settings file has the correspondent locations for each cue
    point, like this :
    <?xml version="1.0" encoding="utf-8"?>
    <showcase>
    <!-- Video section #1: Safety Fair 2008 -->
    <section>
    <title>Safety Fair 2008</title>
    <video>video/MOPS_safetyFair.flv</video>
    <cuepoints>
    <cuepoint>
    <title>Fire Department 1</title>
    <time>00:00:13.291</time>
    <image>img/Gath1.png</image>
    <caption>What to do in case of a fire at
    home...</caption>
    </cuepoint>
    <cuepoint>
    <title>Fire Department 2</title>
    <time>00:01:39.686</time>
    <image>img/Poison Center.png</image>
    <caption>How to escape from a fire at
    home</caption>
    </cuepoint>
    <cuepoint>
    <title>Crime Stoppers</title>
    <time>00:01:51.869</time>
    <image>img/TxDepTra.png</image>
    <caption>Buckle up...</caption>
    </cuepoint>
    <cuepoint>
    <title>Texas Dep of Transportation</title>
    <time>00:01:51.869</time>
    <image>img/Poison Center.png</image>
    <caption>Assistance by phone in case of
    emergency...</caption>
    </cuepoint>
    <cuepoint>
    <title>Poison Center</title>
    <time>00:02:02.946</time>
    <image>img/Gathering3.png</image>
    <caption>Mops Gathering at the FLC Picnic
    area</caption>
    </cuepoint>
    <cuepoint>
    <title>Fellowship</title>
    <time>00:02:09.591</time>
    <image>img/Kids-with-Jenny.png</image>
    <caption>Nice visit and gathering w/our
    children</caption>
    </cuepoint>
    </cuepoints>
    </section>
    I have my file structure right as well in each folder IMG and
    VIDEO.
    What does this error means and how can I correct the
    problem.....I have been expending hours trying different ways and
    still can't get it to work.
    Thanks,
    Edna

    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

  • Simple Flash Video Cue Point Problem (I assume)

    Hello everyone. Quick question. After I have added a cue
    point to an end of a video, how can I have the cue point trigger an
    action such as "gotoAndPlay" or "fscommand("quit");" etc.?
    I thought this would be an easy thing to find by checking on
    the various websties for other posts or tutorials but nothing I
    found addressed this. Any info will be most appreciated.
    Thanks.

    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

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

  • 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

  • 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

Maybe you are looking for

  • Smart form assignment for fb60 document

    Hi Experts, I have one issue pertains to smart form, my client wants to take print with his logo at the time of FI invoice document. Once user post the invoice in FB60, the using the document number we need the details in a form. For this abaper deve

  • How to find fuctionality of function modules

    Hi experts, In CRM I have seen some the following function modules CRM_ORDERADM_H_READ_OW CRM_ORDER_READ CRM_APPT_MAINTAIN_MULTI_OW CRM_APPT_MAINTAIN_SINGLE_OW CRM_DATES_READ_DB I could not find any useful Information when using F1 key to know it's f

  • JAAS, authentication only, in WLS 6

    I've poured over the newsgroups and the sample client, and nothing matches what I'd like to accomplish. What I want to do seems simple enough, but I haven't been able to get it to work: 1. Configure WLS 6 SP1 to use its realms/authentication processe

  • The ios 6 upgrade to my iPhone 4. . .

    ...seemed to slow down performance of the phone itself. My phone was faster before the upgrade. Also, the changes to Contacts GROUPS is kinda crappy too, as one must now go through multiple steps to view a particular group. My whole list is organized

  • HT1349 there is power, but the screen just went black

    i have a mac pro that has power, but the screen went black. has anyone else had this problem?