Problems using Cue points in video loop

OK, so I want to use landmarks to navigate the video.  First, I simply loop the video of the end of the beginning.  I get an invalid error 1003 search.  Here is my code.  Any help would be appreciated.  Thank you

Import fl.video.MetadataEvent;

Movie.addEventListener (MetadataEvent.CUE_POINT, loopFunction);

function loopFunction(e:MetadataEvent):void

{

If (e.info.name is "end1")

{

Movie.seekToNavCuePoint ("beginning1");

Movie.Play ();

}

}

At least you get informed even if the search does not work.

A quick workaround would be to iterate on landmarks than detect in the metadata, by assigning to each cue point name and time into an object. Once you reach the cue point you want, see if the object has the time value and seek() at the time for this landmark rather than searching for it by name.

for example (written briefly, you see the idea):

object to store time values

var cuePointArr:Object = new Object();

function onMetaData(infoObject:Object):void

{

var cueIndex:String;

for (cueIndex to infoObject.cuePoints)

{

trace ("cue add name [" + infoObject.cuePoints [cueIndex] .name + "] at the time [" + infoObject.cuePoints [cueIndex] .time + "]");

store as a name = time

cuePointArr [infoObject.cuePoints [cueIndex] .name] = infoObject.cuePoints [cueIndex] .time;

}

}

function loopFunction(e:MetadataEvent):void

{

correct point of reference 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 ();

}

}

Lived 900 mph up to forgive the typos but turning it into a normal search based on the value of time should work for now.

Tags: Adobe Animate

Similar Questions

  • using cue points

    What is the proper syntax and functions to address within a flv cue points and what do average parts and react?

    I want to have the flv files with cue points in them, I can get to do other things in the swf file and I want to know how to set up on both sides, including which must import, what type of events to capture benchmarks and other...

    my mistake.  use:


    Import fl.video.MetadataEvent;

    flv.addEventListener (MetadataEvent.CUE_POINT, f);

    function f(e:MetadataEvent):void {}

    {if(e.info.Name=="wingsdown")}

    do something with e.info.WINGSDOWN elsewhere on stage

    }

    }

  • FLV Playback CUE Points Sub Panel in the missing properties panel?

    So, anyone knows how we can add cue points to FLV using Flash CC reading. Thus, using Flash CS6 if you import a video of your internship (file-> Import-> import video) component FLVPlayback is added to your step. If you cilck component FLVPlayback the POINTS of REFERENCE under Panel's niche in the Panel properties like this:

    cuePoints_CS6.PNG

    However, if you click on the FLVPlayback instance in Flash CC, you get nothing. HOWEVER, please note that it shows that the FLV file contains cuepoints (it was an existing CS6 file I added the cuepoints already). But since the Panel of sup of POINTS of REFERENCE does not exist, I can't edit them.

    cuePoints_CC.PNG

    Thanks for your help!

    Landmarks Panel is deprecated since Flash CC, but you can make use of Action-script Cue points to your video into CC to animate.

    See the benchmarks AS section in this document: Adobe Flash Professional CS5 * landmarks of use

    Adobe ActionScript 3.0 * use cue points

  • Implementation of a button and an image using video cue points

    Hello

    I have a 04:40 video and I want to show a button and a background image (or clip) at 4:30 and I want to stay on the screen after the video is finished. If someone could give me a step by step instructions for this I would really appreciate it. Either way, I'm using Flash CS5.

    Have a great day!

    Veli

    If your flv component is flv_pb, your background image is an object (such as a movieclip) named bg and your button is named btn, you can use:

    Import fl.video.MetadataEvent;

    BG. Visible = false;

    BTN. Visible = false;

    flv_pb.addASCuePoint(270,"Show");

    flv_pb.addEventListener (MetadataEvent.CUE_POINT, cuepointF);

    function cuepointF(e:MetadataEvent):void {}

    {if(e.info.Name=="Show")}

    BG. Visible = true;

    BTN. Visible = true;

    }

    }

  • a loop with cue points, round 2

    OK, so I've done it before, and it worked.  It should be as simple as copying the code and rename the FLV Player, but I get an error "invalid seek.  As I said, it worked on previous sites, I did, if any explanation would be great.  I'm trying to get a video replay and then looped around the middle of the video and play at the end in a loop continues.   The only difference I see is that on my other site, it is live from my ftp.  This should not make a difference, as apposed to be local, does?  I also use embedded cue points.  Thanks again.  Here is the code:

    Stop();

    Import fl.video.MetadataEvent;

    Movie.addEventListener (MetadataEvent.CUE_POINT, loopFunction);

    function loopFunction(e:MetadataEvent):void {}

    If {(e.info.name=="introEnd)"}

    Movie.seekToNavCuePoint ("introMiddle");

    Movie.Play ();

    }

    }

    Draw your cuepoints to confirm there is a named introMiddle

  • Is it possible to add cue points to a MP4 video file?

    Is it possible to add cue points to a MP4 video file?

    Director has a findposnear function that allows to quickly search currently of film in a list of times, giving you an index number that you could use on another list. It is easier to use than benchmarks!

    Adobe Director * findPosNear

  • Video - Cue Points in Flash

    I just added a few external FLV playback in a project that I am currently finished.

    I am currently set my navigation button (next_btn) the invisible value when the page loads (forcing the user to view the video).

    I can set a cue point in the video to change the State of the button following (e.g. 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="">

  • Handling in Javascript Flash video cue points

    Can any kind person giving me directions on how to get the JavaScript in an HTML page containing a video FLV for cue points in the video? I understand how to get benchmarks, but most people seem to only want to deal with the landmark events in Flash. I want to use Javascript to display different text in a page to each element. The method vary it depending on which player you use? What about when it's the standard Flash Playback component? Should there be any special Actionscript in the SWF file containing the FLV file?

    Thank you

    Fred

    Look at ExternalInterface in online help. It's the external API that you can use for communication between Flash and html page that got him.

  • Flash CS4 ActionScript using buttons to go to cue points in an FLV

    Hello.
    I'm pretty much a novice Flash, so I don't think that this issue is particularly difficult, it's just something that is painful for a few days. I know it's possible based on all the literature I've read, but I can't seem to do it properly.

    Basically I have a video file that I made to FLV format with 5 points of navigation called 1, 2, 3, 4, 5.

    What I want to do, is to use buttons to navigate to the five cue point in the flash animation. I think that this is possible using ActionScipt 2, but I don't know what the code of the script function.

    Any help would be much appreciated.


    Thank you
    Javier

    Hello

    The following AS2 code can help you

    Stop();

    var listenerObject:Object = new Object();
    listenerObject.ready = {function(eventObject:Object):Void}

    }

    .addEventListener ("ready", listenerObject);
    var listenerObject:Object = new Object();
    listenerObject.cuePoint = {function(eventObject:Object):Void}
    .onRelease = function () {}
    playback.seekToNavCuePoint ("");

    }

    }
    .addEventListener ("cuePoint", listenerObject);

    \\replace all things placeholder which the<>

    Also just take a glance to the description to http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Liv eDocs_Parts & file = 00003003.html for more details

    Thank you!

    PS: pls mark that message as if it were a help to you have it

  • -What sound effects and themes in iMovie legal to use on a youtube video without the copyright problem.

    -What sound effects and themes in iMovie legal to use on a youtube video without the copyright problem.

    Yes.

    Geoff.

  • Problem - Alt Enter points using Ant

    I have problems using the tag.  Bb-ant-tools suggests that it is a nested tag of CAP, but when I run the present, I get an error that is not a nested tag!

    What should I do to fix the below to set up an alt entry point?

    [code]
      
       
    title = "${title}" vendor = "${provider}.
    version = "${version}".
    Description = "${description}".
    systemmodule = 'true '.
    runonstartup = 'true '.
    startuptier = '7' / >
       <>
    title = "${title}".
    arguments = "click."
    systemmodule = "false".
    runonstartup = "false".
    startuptier = "7".
    RibbonPosition = '0 '.
    "icon ="... / img/OrangeA.png "/ >
       
        
         
         
        

       

      

    [/ code]

    Thank you

    Here's how to create another point of entry with bb-ant-tools:

        
            
                
                    
                
                
                    
                        
                    
                    
                        
                    
                
            
        
    

    where default.properties is an Autostart entry point:

    description=My Elite App for BlackBerry
    runonstartup=true
    systemmodule=true
    vendor=Mobiyana, LLC.
    version=1.0
    

    and gui.properties provides the icon and the user interface:

    description=My Elite App for BlackBerry
    icon=../res/icon-32x32.png
    title=Elite App
    vendor=Mobiyana, LLC.
    version=1.0
    
  • How can I set cue point using FLV

    Okay, team

    I have a video clip that must have sound with it, I also want to put animations at certain times in the video using Flash.

    OK so if I integrate the clip in the timeline so that I can use another layer on top to make the graphics I have problems with the sound - I even tried to have the sound in a separate file and plays using script from the video and audio at the same time, but he gets psycho...

    If I import the video externally there is no way I can see what I can do graphics on top...

    I am looking to add some cuepoints to video to try to trigger my graphics in this way, he is told to go to the Properties Inspector and do a right-click on the cuepoints online option, but when I go to the property inspector it tells me that it is not supported in AS3? then WTF! I'm almost ready to start punching me in the head here...  Using Adobe online, that I'm looking for Actionscript 3 components therefore something is goig very very bad

    Please help, y at - it an easier way to do this?  I'm compositing in first pro and adding text, but when I export as FLV, it is fuzzy looking - and also the text becomes interactive at a later stage so it would be much better if he could arrive in Flash.

    Please please help

    See you soon

    void

    The theme of the audio sync / video is often mentioned in the Forum. The usual suspect is the audio... "" but it's out of whack. "

    This is a misunderstanding... It is the audio that gets messed up... it's video!

    You can embed its video (streaming type) in the main timeline and get very good synchronization results as long as you understand and rely on the fact that the vdeo must match and synchronize with the audio, NOT the other way around.

    For your comment (from a previous post):

    Also remember that it is the animation that gets out of sync, not the audio.

    I say this is because the audio MUST play at a single frequency... or in other words, the sound will be an exact length of time that it takes to play the sound. If you shorten that time to try to match the animation, which is a bit like pushing the sound together, which increases the frequency and increases the height... which actually sound like Alvin and the Chipmunks.

    On the other hand, if you streeeeetch sound over a long period of time, reduced frequency, you looowweer the ground.

    So, knowing that his must read at one rate (or frequency), you will need to match the animation to the reading speed (frequency) of audio, not the reverse.

    Although often it is recommeded you do not embed video in the main storyline because of this same audio/video sync problem ("audio gets out of sync"), I have no problems with synchronization of the audio and video that I put the frame Flash doc rate exactly match the original video frame rate (29.97 frames per second for mini-DV).

    Here is an example of an embedded video directly in the timeline, but audio remains synchronized.

    http://www.cidigitalmedia.com/tutorials/vid_sync/vid_sync.html

    Now, I know that you are using may not be not video, but the principle remains the same. Match audio animation, not the reverse.

    This may mean that you have to play with the cadence of the document to find the sweet spot where the audio and animation remain in the synchronized. Test your .swf with upper and lower frame rates to see the effect. It may take a few experimentaion, but you should be able to greatly improve the synchronization.

    So in your case, if the video has audio with it (like many videos) origianlly, the frames per second of the Flash document have si la vidéo origianlly a audio avec elle (comme beaucoup de vidéos), les images par seconde de le document Flash doivent exactly match that of the original video or the video ahead of the audio or the audio behind. Again, this is the video that is out of sync, NOT the audio.

    Best wishes

    Adninjastrator

  • video with actionscript cue points

    Hello! I'm trying to put in place an array of landmarks and when each cue point is reached, it raises an event. I have the updated table in place, but I'm wrong configure action events.

    Any help is VERY appreciated!

    Here's the code so far:

    Import fl.video.MetadataEvent;

    flvPlayback.addEventListener (MetadataEvent.CUE_POINT, onCuePoint);

    flvPlayback.play ("final.flv");

    aCues var = new Array ();

    aCues = [{time: 14, name: "part1"}, {time: 1, name: "part2"}, {time: 3.66, name: 'part3'}, {time: 9.43, name: "part4"}];

    for each (var q in aCues)

    {

    flvPlayback.addASCuePoint (q.time, q.name);

    }

    This is the part that doesn't work

    function onCuePoint (evt:MetadataEvent): void

    {

    if (evt.name = "part1") {}

    part1.gotoAndPlay (2);

    }

    }

    MetadataEvent has the property of information. Try:

    function onCuePoint(evt:MetadataEvent):void
    {
         if (evt.info.name = "part1"){
              part1.gotoAndPlay(2);
         }
    }
    

    Or even better:

    function onCuePoint(evt:MetadataEvent):void
    {
         switch(evt.info.name) {
              case "part1":
                   part1.gotoAndPlay(2);
              break;
    
              case "part2":
                   // do whatever
              break;
    
              case "part3":
                   // do whatever
              break;
    
              case "part3":
                   // do whatever
              break;
         }
    }
    
  • Read and use the cue point in mp3 file

    Hallo,

    It is possible to manage the cue point in the mp3 file with as3.

    If so, no allusion?

    Thank you.

    It is likely that you need to import the CuePointEvent class, if the error indicates it is not.

  • Son not synchronized when adding the video loop of JPanel

    I'm working on a project for the school at the time where I am trying to create an image gallery and video player. In the Welcome window, I created two JPanels with MouseListeners, one to hold an image and one to hold a video loop of 5 seconds. Initially, I used this:

    SerializableAttribute public class WelcomeVideoLoader extends JPanel implements Runnable {}

    Media;
    Player MediaPlayer;
    MediaView view;
    JFXPanel jfxPanel;
    Dimension d;
    DoubleProperty width;
    DoubleProperty height;
    Root group;

    public WelcomeVideoLoader (file, Dimension d) {}

    This.d = d;
    Media = new Media (file.toURI () m:System.NET.SocketAddress.ToString ());

    jfxPanel = new JFXPanel();

    playAndLoopVideo();

    }

    private void playAndLoopVideo() {}

    root = new Group();

    reader = new MediaPlayer (media);
    Player.Play ();
    player.setMute (true);
    view = new MediaView (player);

    DoubleProperty width = view.fitWidthProperty ();
    DoubleProperty height = view.fitHeightProperty ();

    Width.bind (Bindings.selectDouble (View.sceneProperty (), "width"));
    Height.bind (Bindings.selectDouble (View.sceneProperty (), 'height'));

    view.setPreserveRatio (true);
    root.getChildren () .add (view);
    player.setOnEndOfMedia (this);

    () Platform.runLater
    new Runnable() {}
    @Override
    public void run() {}
    Scene = new scene (root, d.getWidth (), d.getHeight ());
    jfxPanel.setScene (scene);
    }
    });

    Super.Add (jfxPanel);
    }

    @Override
    public void run() {}
    Player.Stop ();
    playAndLoopVideo();
    }
    }

    It comes to stacktrace:

    Exception in the executable
    java.lang.IllegalArgumentException: Group@4d714a77[styleClass=root]is already defined as root to another scene
    to javafx.scene.Scene$ 10.invalidated(Scene.java:991)
    at javafx.beans.property.ObjectPropertyBase.markInvalid(ObjectPropertyBase.java:129)
    at javafx.beans.property.ObjectPropertyBase.set(ObjectPropertyBase.java:163)
    at javafx.scene.Scene.setRoot(Scene.java:953)
    to javafx.scene.Scene. < init > (Scene.java:291)
    to javafx.scene.Scene. < init > (Scene.java:260)
    to se.theshahin.gallery.utils.WelcomeVideoLoader$ 1.run(WelcomeVideoLoader.java:69)
    to com.sun.javafx.application.PlatformImpl$ $4 1.run(PlatformImpl.java:179)
    to com.sun.javafx.application.PlatformImpl$ $4 1.run(PlatformImpl.java:176)
    at java.security.AccessController.doPrivileged (Native Method)
    to com.sun.javafx.application.PlatformImpl$ 4.run(PlatformImpl.java:176)
    to com.sun.glass.ui.InvokeLaterDispatcher$ Future.run (InvokeLaterDispatcher.java:76)

    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    to javafx.embed.swing.JFXPanel$ HostContainer$ 1.run(JFXPanel.java:741)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:727)
    at $200 (EventQueue.java:103) java.awt.EventQueue.access
    in java.awt.EventQueue$ 3.run(EventQueue.java:688)
    in java.awt.EventQueue$ 3.run(EventQueue.java:686)
    at java.security.AccessController.doPrivileged (Native Method)
    in java.security.ProtectionDomain$ 1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:697)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

    It works for maybe 6-7 loops, but then he out craps. So I tried to create an ArrayList of the Group and creation of 100 of them and passing to the following for each loop, to see if it worked. There can be no. It turns out that my son work independently one from the other and after awhile, they get confused upward.

    I'm still new to programming and can't seem to find much on the subject, as I understand, everything seems to be written for people with years of experience. I have a feeling that javafx.concurrent is the way to go, but I can't understand how to implement it in my code. I worked on this for 2 days in a row, without success and would really appreciate it if someone could point me in the right direction. Thank you.

    So you're making it much more complex that it must be (what happens when you're a new programmer).

    First of all, do you need to use Swing? The incorporation of JavaFX in Swing is delicate and creates complex multithreaded processing problems that you need to manage in a relatively small way. Unless there are other requirements, you have not mentioned, you should be able to do these things in JavaFX. Hello World example [url http://docs.oracle.com/javafx/2/get_started/hello_world.htm] gives a simple example; Then, look at the layout [url http://docs.oracle.com/javafx/2/layout/jfxpub-layout.htm] tutorial to see how to make some simple page layouts.

    To create a video loop, you do not need to reboot it by hand, as you try to do it with the earphone for the end of the media. Just use

    player.setCycleCount(MediaPlayer.INDEFINITE);
    

    and it will loop indefinitely. You can always meet this reboot (if you want to do something else, like changing the image) by registering a listener for changes with the currentCount to the mediaPlayer property.

Maybe you are looking for

  • Misfortunes of Mac App Store

    I am currently on os x 10.11. Whenever I try to connect to the app store mac I'm met error 503 service unavailable. This prevents me from download and update applications. I tried to clear the cache and restart my computer, but these two make nothing

  • Memory display problem?

    Hi all I'm working on a big project that has multiple loops simultaneously, When I click on a menu item, it displays a simple VI that loaded information from an .ini file, but the VI does not itself properly and I need to move my mouse on the VI to d

  • Status: 0xc0000411. File: \hiberfil.sys black screen - does not start. Help?

    Vista 64-bit.  Currents of the MS. updates  HP Pavilion 9830: beep long two short beeps.  Help is appreciated.

  • HP 7510 Duplex problem, scaling of axis of ordinates?

    I read about the problem with additional/updated margins across the vertical duplex enabled on HP OfficeJet 6500. I also found this question in a review of HP Photosmart 7510 [ http://www.trustedreviews.com/hp-photosmart-7510_Printer_review_performan

  • Summary of text comment field

    Hello, I'm a little noob works with PDF files and I need help with something I want to do.I have a PDF with form, I want to insert a text field that fill with a summary of all comments.When the user enter a comment it should fill the new information