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.

Similar Messages

  • Cue points in dynamically loaded flv file through netstream

    How can i add cue points to a playlist of flv files which are
    loaded dynamically through an xml files. All the sources i have
    found over the internet are using flvplayback control :(

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

  • Dynamically load Videos from Database

    I want to know how to load video into an flvplayer from a streaming server (Adobe Media Server 3.5) from a database.  It has to be set up this way because I have to be able to allow the client to import new videos when ever they want to through a web interface (the client isn't particularly tech savvy and as such requires a very simple system to import information).  Also it would be helpful if someone could give me a rundown on how to make the video clickable (kind of like the way hulu.com's adds work, where if you click on the video, it pauses and opens a new window redirected to their advertisers).
    Thanks,
    Michael

    Hi,
    I can suggest you create an Asset Library and upload your video files into the library, then use the Media Web Part to show the video.
    More information:
    http://office.microsoft.com/en-us/sharepoint-server-help/add-video-or-audio-to-a-page-HA102232435.aspx
    http://smallbusiness.chron.com/stream-video-sharepoint-47210.html
    http://blogs.msdn.com/b/sanjaynarang/archive/2010/05/20/media-web-part-in-sharepoint-2010-faq.aspx
    Thanks,
    Dennis Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Dennis Guo
    TechNet Community Support

  • Dynamically loading video

    How can I implement the following code to load video from xml
    file path as opposed to net stream?
    Thanks in advance!

    This tutorial here should have everything you need...it sure
    helped me.
    http://www.adobe.com/devnet/flash/articles/video_playlist.html

  • YouTube dynamic loading video player

    Hi!
    I'm new to flash but have some experience with flash and need to create a dynamic video player that will play YouTube videos in a random order.  I was wondering what would be the best way to accomplish this?  Do any of you have any suggestions or could point me to a tutorial that would help me figure this out?
    Thanks in advance!

    Hello,
    Here are the Vidoes of Problem with HTC Rezound.
    1) 4G LTE signal is excellent, 2)the phone is out of box so no issue of any cache, 3)Update the firmware and Youtube app from market.
    Still the same problem
    Before Update, Out of box
    http://www.youtube.com/watch?v=OuURZ7Avd0s
    After Updating firmware and Youtube apps
    http://www.youtube.com/watch?v=lhf56Y5jioQ
    Compare with Galaxy Nexus,
    http://www.youtube.com/watch?v=mMjOecLLiBE

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

  • Control slide advance via video cue points

    Hi Folks I would like to have a video clip control the advance of an external slideshow by using cue points set in the video. Idealy I would have 2 swfs (video.swf and slides.swf) embeded in a web page side by side and as the video reaches a certain cuepoints it advances the slides in the slideshow swf. It would also be good to fullscreen either one or the other as required.
    Any help appreciated.
    Dave.

    Hi Folks I would like to have a video clip control the advance of an external slideshow by using cue points set in the video.
    The videos do not need to be live streamed and can be prepared with keyframes at the key positions for slide advance
    So is it keyframes or cuepoints? I didn`t say sth. of Livestream either.
    Streaming means simply the process where a video can already start even if its not already completely loaded. This is consideres not only good but standard practice nowadays.
    Embedding videos on the timeline is a bad idea. Using Keyframes in this case is an even worse idea.

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

  • Adding cue points to NetStream

    Hello I have been working on a project and have loaded videos using netstream.  I have several cue points that advance the timeline to a certain keyframe.  Would anyone have the script for NetStream that would do this, for example, when the video reaches cue1 it would advance the timeline to frame 10?
    Thank you so much for your help.
    mark.

    Since no one has yet posted on this, I'll re-post part of a response to another post which deals specifically with using cue points with a NetStream video player:
    OK, here is a working NetStream cue point:
    var ns:NetStream = new NetStream(nc);
    video_screen.attachVideo(ns);
    /* Name of your video, with correct path, goes here */
    ns.play("my_video.flv");
    ns.onCuePoint = function(evt:Object){
        trace(evt.name);
        trace(evt.time);
        if(evt.name == "jump_100") {
            trace("YO !Jump to 100!");
            gotoAndStop(100);
    Reading this code:
    set a new variable "ns" which is a new NetStream
    attach a video to "video_screen"... the instance name of the video on the stage
    now use that variable "ns" to play a video with file name "my_video.flv"
    use ns to listen for an "event" type cue point Object
    when the cue point is detected trace the event name and time
    if the event name is exactly equal to "jump_100"
    then trace "YO !Jump to 100!"
    and then gotoAndStop at frame 100
    For this exact code to work, your NetStream variable must be named "ns"
    In the video you play, there must be a cue point of the "Event" type with the name "jump_100"
    There must be at least 100 frames in the timeline.
    Take it in small steps;
    First make sure you can play the video using NetStream ... that's all.
    Next, add the trace to detect the cue point... if you can't detect it, of course it won't do anything.
    Only after you can successfully play the video and detect the cue point, should you attempt the cue point action (jump to frame 100).
    You can also add more "if" statements if there are multiple cue points.
    If cue point 1, then do this.
    If cue point 2, then do this.... etc.
    Best wishes,
    Adninjastrator

  • Seek to cue point

    quick scenario:
    I have several videos (flvs) that i am trying to make play
    one right after the other. I figured out how to make my "fast
    forward" btn work by just easily using
    _root.display.seekToNextNavCuePoint();
    and setting up the last cuePoint in every video to lead to a
    frame with the next video loaded.
    But now the kicker, the back btn. I can easily seek to the
    prev cue point but what happens when you get to the end of the
    video. I've been setting it up so that when the
    _root.display.playheadTime < 1
    it will go back a frame with code that will take it to the
    last cue point of the prev video.
    Now this is what i don't know, how can i tell it what
    cuePoint to goto in the video? I've tried seekToNavCuePoint("place
    cue point here") and a few other options and nothing is working.
    Can you not go to an embedded navigational cue point? if so how do
    i do that?
    tried setting up a variable called: var flvcontrol = display;
    thinking that would make it easier to call but alas i'm out of
    options. Really gotta figure this out by tomorrow anybody around to
    help a loss soul?
    Thank you,
    !!!!

    You will get there.
    Based on their swf (save it and look into its guts) - they use 3D methodologies with Away3D package. Although there is learning curve involved - it is not a rocket science.
    Again, at the expense of coming out negative, I would advise anyone to have a great deal of sarcasm and cynicism when “best in business award” is flushing. From my experience in the majority of cases it is all a contrived self-indulging brain-wash PR fluff. I must admit that I was a part of this propaganda machines on numerous occasions. Best things rarely come from corporate pipes anyway. Bad quality has little to do with developers but rather with ignorant executives.
    On a constructive note, if you don’t feel like you up to dealing with 3D graphics you can continue with the video idea. 
    You have at least two options:
    1.    As other guys suggested – encode your video with as many key frames as feasible.
    2.    Embed video on timeline (perhaps on a timeline of library MovieClip symbol).
    When the above is done – you will need to record segments that are played as needed and manipulate NetStream or timeline of MovieClip with video accordingly.
    Interactive elements will reside above video.
    Again, perhaps it will be the easiest way to implement the functionality you desire.

  • NetStream Cue Points

    Tried adding cue points via as3 code but haven't been able to find anyway to accomplish this task. Read allot places that when you load a video via netStream you can't add cue points with actionscript. The only way is to embed the cue points is into the video. But this is not an obtain for me since someone else does the videos and they may change or be modified at some time. I can add actionscript cuePoints with the FLVPlayback component but I am looking for ways of increasing video performace.
    By the way what is the difference\advantage of using netStream over using the FLVPlayback component? Often wander this but haven't read anything to say one is better then the other when running video over the web.
    Thanks

    Thanks kglad. Being able to customize is always better in my flash world. LOL
    I'll have to stay with the FLVPlayback component as long as I have to use cue points in my videos.
    Thanks

  • Using cue points to change a text box

    Ok I asked a simlar question before but I am still having trouble getting it to work.
    I have a video with 11 Cue points and at each cuepint I want the Typebox to change it text at each cue point.
    When the video is playing I want a the textbox to change the text when cue point 1 is reached. This is the code I am using. But every always goes straight to the whatever the last functions text and skips all the other before it. Its bassically this code repeated with difffernt function name and string.
    import fl.video.MetadataEvent;
    flvplayer.addEventListener(MetadataEvent.CUE_POINT,section2Cue);
    function section2Cue(event:MetadataEvent):void{
        for(var String = "section2" in event.info){
            typebox.text = "Hello";                        }
    So basically I want to tell flash, when CuePoint1 is reached text = "hello world" and when CuePoint2 is reached I want the text ="Hello Again". I don't know what I am doing wrong or what is the best way to tell flash how to do this

    Ok, I tryed that code Basically I want to call upon each cue point individually and have an event for each one. So how i tell it to display this only when Cuepoint1 is reach and display that only when Cuepoint2 is reached.  What data would help ?
    Most of my code is just buttons to reach each cuepoint within the video. I got that to work fine.
    I'll supply it anyways
    import flash.events.MouseEvent;
    // Assign a new skin to my FLVPlayback instance using ActionScript
    flvplayer.skin = "player.swf";
    flvplayer.fullScreenTakeOver = false;
    //select section menu button
    selectBtn.addEventListener(MouseEvent.CLICK, openMenu);
              function openMenu(event:MouseEvent): void{
                        trace("working");
                        selectMenu.gotoAndPlay(2);
              selectMenu.closeX.addEventListener(MouseEvent.CLICK, closeMenu);
                        function closeMenu(event:MouseEvent): void{
                                  trace("closing");
                                  selectMenu.gotoAndPlay(11);
              //Cuepoint Buttons
    selectMenu.sec1.addEventListener(MouseEvent.CLICK, section1Button);
    function section1Button(event:MouseEvent):void
              // Replace video_instance_name with the instance name of the video component.
              // Replace "Cue Point 1" with the name of the cue point to seek to.
              var cuePointInstance:Object = flvplayer.findCuePoint("section1");
               flvplayer.seek(cuePointInstance.time);
               typebox.text = "Orion Health EMR Lite Overview";
    selectMenu.sec2.addEventListener(MouseEvent.CLICK, section2Button);
    function section2Button(event:MouseEvent):void
              // Replace video_instance_name with the instance name of the video component.
              // Replace "Cue Point 1" with the name of the cue point to seek to.
              var cuePointInstance:Object = flvplayer.findCuePoint("section2");
               flvplayer.seek(cuePointInstance.time);
               typebox.text = "Adopt Electrionic Patients Records Easily";
              selectMenu.sec3.addEventListener(MouseEvent.CLICK, section3Button);
    function section3Button(event:MouseEvent):void
              // Replace video_instance_name with the instance name of the video component.
              // Replace "Cue Point 1" with the name of the cue point to seek to.
              var cuePointInstance:Object = flvplayer.findCuePoint("section3");
               flvplayer.seek(cuePointInstance.time);
               typebox.text = "Introducing Orion Health EMR Lite";
                        selectMenu.sec4.addEventListener(MouseEvent.CLICK, section4Button);
    function section4Button(event:MouseEvent):void
              // Replace video_instance_name with the instance name of the video component.
              // Replace "Cue Point 1" with the name of the cue point to seek to.
              var cuePointInstance:Object = flvplayer.findCuePoint("section4");
               flvplayer.seek(cuePointInstance.time);
               typebox.text = "Meet Mr. Smith - Patient Registration and Intake";
    selectMenu.sec5.addEventListener(MouseEvent.CLICK, section5Button);
    function section5Button(event:MouseEvent):void
              // Replace video_instance_name with the instance name of the video component.
              // Replace "Cue Point 1" with the name of the cue point to seek to.
              var cuePointInstance:Object = flvplayer.findCuePoint("section5");
               flvplayer.seek(cuePointInstance.time);
               typebox.text = "Orion Health EMR Lite in the Exam Room - Clicnical Documentation and Orion Health HIE Integration";
    selectMenu.sec6.addEventListener(MouseEvent.CLICK, section6Button);
    function section6Button(event:MouseEvent):void
              // Replace video_instance_name with the instance name of the video component.
              // Replace "Cue Point 1" with the name of the cue point to seek to.
              var cuePointInstance:Object = flvplayer.findCuePoint("section6");
               flvplayer.seek(cuePointInstance.time);
               typebox.text = "Working with Orion Health EMR Lite - Documentation";
    selectMenu.sec7.addEventListener(MouseEvent.CLICK, section7Button);
    function section7Button(event:MouseEvent):void
              // Replace video_instance_name with the instance name of the video component.
              // Replace "Cue Point 1" with the name of the cue point to seek to.
              var cuePointInstance:Object = flvplayer.findCuePoint("section7");
               flvplayer.seek(cuePointInstance.time);
               typebox.text = "Order Entry in Orion Health EMR Lite";
    selectMenu.sec8.addEventListener(MouseEvent.CLICK, section8Button);
    function section8Button(event:MouseEvent):void
              // Replace video_instance_name with the instance name of the video component.
              // Replace "Cue Point 1" with the name of the cue point to seek to.
              var cuePointInstance:Object = flvplayer.findCuePoint("section8");
               flvplayer.seek(cuePointInstance.time);
               typebox.text = "ePrescribing";
    selectMenu.sec9.addEventListener(MouseEvent.CLICK, section9Button);
    function section9Button(event:MouseEvent):void
              // Replace video_instance_name with the instance name of the video component.
              // Replace "Cue Point 1" with the name of the cue point to seek to.
              var cuePointInstance:Object = flvplayer.findCuePoint("section9");
               flvplayer.seek(cuePointInstance.time);
               typebox.text = "ePrescribing";
    selectMenu.sec10.addEventListener(MouseEvent.CLICK, section10Button);
    function section10Button(event:MouseEvent):void
              // Replace video_instance_name with the instance name of the video component.
              // Replace "Cue Point 1" with the name of the cue point to seek to.
              var cuePointInstance:Object = flvplayer.findCuePoint("section10");
               flvplayer.seek(cuePointInstance.time);
               typebox.text = "Quality and Utilization Reporting";
    selectMenu.sec11.addEventListener(MouseEvent.CLICK, section11Button);
    function section11Button(event:MouseEvent):void
              // Replace video_instance_name with the instance name of the video component.
              // Replace "Cue Point 1" with the name of the cue point to seek to.
              var cuePointInstance:Object = flvplayer.findCuePoint("section11");
               flvplayer.seek(cuePointInstance.time);
               typebox.text = "Summary";
    As for data? This is all I know about my CuePoints
    Would the best way to acheive changing type is to change the way my movie clips are set up? Instead of telling it within the actionscript maybe telling it to go to next frame within a movieclip with the content? I don't know exactly how to word what I am trying to acheive but I'm trying!
    thanks!

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

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

  • 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

Maybe you are looking for