video loop, the value, but has a slight pause at the end

Hello

I have a video in a loop via AS3; the only thing is that the video stops a little at the end before a loop is executed.
Someone knows how can I fix?

I tried the following, but any method, I get this break:

(METHOD 1)
container.myVideo.autoRewind = true;
container.myVideo.addEventListener (VideoEvent.AUTO_REWOUND, loopVideo);

function loopVideo(event:VideoEvent):void
{
container.myVideo.play ();
}

(METHOD 2)
container.myVideo.addEventListener (VideoEvent.COMPLETE, playAgain);

function playAgain(evt:VideoEvent):void
{
container.myVideo.seek (0);
container.myVideo.play ();
}

Kind regards

Boxing boom

Hi all

Just this sorted out by an old post of 'WebPiper ';

The answer is:
container.myVideo.addEventListener (VideoEvent.COMPLETE, playAgain);

function playAgain(evt:VideoEvent):void
{
/ * container.myVideo.seek (0); * / This is not necessary ;)
container.myVideo.play ();
}

My video loops perfectly now.

Kind regards

Boxing boom

Tags: Adobe Animate

Similar Questions

  • Windows Media Video - at the end, go next?

    Hello

    I searched this forum for the answer and not found. I also have trial and error using the manual and I can't make it work.

    I want my head to go to the section while playing a Windows Media Video. At the end of the movie, I want it 'go then. '

    I have this, but it is not continuous:

    on exitFrame me
    If the PlayRate of sprite 1 = 1 then
    go to the section
    end if

    It does not work as Director because it's yet to play even if the end of the film has been reached. I've not turned loopback.

    So I thought that I needed to know the duration of the video in ticks and can do some Lingo that is based on that, but I don't know how to do this.

    Tips are greatly appreciated.

    Thank you!

    OK, I got it. I used the Message window and 'put' to get the total time, then used this:

    on exitFrame me
    If .currentTime sprite (1)< 47250="">
    go to the section
    end if
    end

    Thank you!

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

  • Chronology of the end actions does not yet have CS4

    I have a project in place with 3 videos with 3 buttons in a menu. I also have an intro video set as the first piece of theatre. The first play video/timeline end action works and opens the menu: no problem. When I select the first button play and play the video at the end on the video, with the end set to the menu, the video action begins to play again and not navigate back to the menu. What is strange, is that the end action works after the second time playing through. The same thing happens with the other buttons/video/delays.  Any suggestions?

    Delete all replacements of your timelines and your buttons.  In fact, remove all replacements anywhere in your project.

    -Jeff

  • my1402 has a slight flashingred with the letter E, but nothingwill impression

    my1402 has a slight flashingred with the letter E, but nothing will not print I was told to go to addremove programs and uninstall, but my printer is not on the list of programs

    Hi gjayand welcome to the Forums of HP.

    I see that you are having problems printing.  I would try to help.

    I recommend you to perform a power reset.  Unplug the power cord from the printer and the power outlet, then wait 60 seconds. After 60 seconds, plug back in the printer. Make sure that you connect the printer directly to a wall outlet. Make sure to bypass any surge protector or power bar.

    I suggest you then following the steps in this document on lights blinking.

    Good luck and please let me know the results of your troubleshooting operations. Thanks for posting on the HP Forums!

  • Hi, I had problems with the addition of soundtrack to Adobe premiere elements 13. When I add it or drag it immediately comes crashing windows, where says "Adobe Premiere Elements has stopped working". I can add videos with no problems, but cannot add any

    Hi, I had problems with the addition of soundtrack to Adobe premiere elements 13. When I add or drag it happens immediately windows crash, where says "Adobe Premiere Elements has stopped working". I can add videos with no problems, but cannot add .mp3 files.

    I had Windows 8.1, 2.4 GHz, 6 GB of RAM. How to solve this problem?

    Fixed a problem when converting the mp3 file. WAV...

    some poor Adobe Premiere Elements if there is for example simple bug in the software.  Waste of money for this software.

  • Video loop and the auto play via HTML

    Hello.

    I try to add an automatic start looping video of my folio with HTML code, because the DPS video options still don't allow video loop.

    I tried the following:

    "" < video src = 'movie.mp4 ' AutoPlay loop controls > < / video >

    Video playback, but unfortunately, the Autorun feature does not work in the viewer of content for iPad.


    Because I know that in a HTML video autoplay has been successfully used in the past by Bob Bringhurst in This example , I then tried the old < embed > tag used by Bob y.

    < EMBED SRC = "movie.mp4" AUTOSTART = TRUE LOOP = TRUE > "

    But here too: no autoplay.

    Something changed here? Any ideas?

    By the way: I test first on the iPad, but it also works well on Windows.

    Kind regards

    Toni

    AutoPlay does not work in the video embedded in HTML on iOS.

    Neil

  • my computer is very slow and the sound is crackling and move icons on their own i have norton security and scanned and it came with a few flaws, but has not yet sorted

    my computer is very slow especially on the startup sound is crackliing and when you watch videos it jumps a little icons often have moved when I start I have norton security and it did an analysis complete and it came with a few things but has not yet sorted

    Hello

    Try to update norton antivirus defination files and run a full system scan in SafeMode (http://support.microsoft.com/kb/315222).

    I hope this helps.

  • Error when you try to view videos of the Kodak Easyshare touch camera: the selected file has an extension (.) (THM) which is not recognized by Windows Media player.

    Camera video will not play on the computer

    I recently bought a Kodak EasyShare touch camera.  Love it, but for some reason some will not play videos from the camera to my computer.  He will say: the selected file has an extension (.) (THM) it is not recognized by Windows Media player.  Any suggestions?

    . THM is a thumbnail of the file... not a video file. I suspect that your
    Kodak records in the. MOV or possibly. Film MP4 format.

  • Push leads to SFDC when the contact opens an email but has not clicked

    Hello world

    I have to push leads to SFDC when the contact opens an email but has not clicked. I have a program generator that updates the CRM. How my canvas campaign looks like so I can push should conduit who opened an email but fact not clicked and dimension as 'Normal '? Should I create another program for this generator? Thank you!

    OK, looking at your detailed requirement, I think it's more that just to have two separate lists because you will also need to update contact record to see who has clicked and opened etc... (unless someone of other comments on this subject and provides a simple solution here).

    I suggest you explore approach to lead scoring. I think it would be much better option to have to go through sharing lists / route filters.

    Top scoring model, you can define the criteria of open clicks vs and give them scores... In the future, you can add additional criteria too for example if the person has submitted a form, visited a web page or a landing page of Elqoua etc. For each criterion, you can set specific scores... You can find information about the partitions of lead here... Eloqua10 drive rating Resource Center (there may be more available resources, so research topliners).

    It may take time for you if you are not familiar with the notation of lead but will future proof solution.

    If it helps at all then the way we manage click and opens with a form blind on the clicks... so whenever the user clicks on a link in the email they are passed through a form unknown / hidden and on the form, there is normally a specific value that identifies them as users click to get these users to SFDC straight on a daily basis.
    Then opens (excluding clicks) is learned separately and we normally and loaded separately (depending on budgets of telemarketing etc.). Having said that we are also developing implementing lead scoring model.

    I hope this helps.

    PS: on your question about food... Yes, it is basically adding members to a step... using the charger, you can automate the process. You can find create option charger at the top right in the program (as members).

  • When paused in the timeline the video is very pixelated and has red and yellow lines going down it

    When paused in the timeline the video is very pixelated and has red and yellow lines going down it.

    He plays very well, but when any display of still images he look like the image below. Someone knows how to fix this?

    Screen Shot 2015-10-15 at 15.22.49.png

    Hey Danny,

    Go to the file/project settings/general and change the rendering on "Mercury Playback Engine software only" engine.

    Press OK, you will get a dialog box in which select "remove previews."

    Try these steps and it should work.

    Check out this post on the forum for more details: Heads up on first with El Capitan

    Kind regards

    Navdeep Pandey

  • Virgin video in the timeline but the audio is ok

    Virgins of video in the timeline and review windows, audio OK when playback from the timeline. The thumbnails are visible both in the chronology and the media window.  New computer including Intel I5, GeForce GTX 970 4Gig, wins 8 but still using old PE10.

    [Left Pro for first things first... MOD]

    zmojoz

    There are card issue first elements 10 NVIDIA GeForce well-known and specific that has existed for a long time without intervention by Adobe or NVIDIA. The response was to roll back only the NVIDIA GeForce video card/card graph version of the driver at all about may 2013. And, at that time, the old NVIDIA drivers are not old enough for the majority of existing computer operating systems.

    Details of the number 10/NVIDIA first Elements in perspective can be found in the following

    First Elements ATR troubleshooting: PE10: NVIDIA video card Driver Roll Back

    The thread cited in a previous thread here is just my attempt to document cases that they rolled.

    Your choices seem to include

    a. determine if you have a may 2013 version of the NVIDIA GeForce driver on your computer that you can put into action

    b. replace the card from the computer of video/graphics card NVIDIA GeForce with a non NVIDIA GeForce card

    c. move to another version of Premiere Elements since this particular problem has always presented as specific to version 10.

    Please review and consider.

    For any question or need clarification, please ask.

    Thank you.

    RTA

    Add on... This situation exists even in Windows 10 and first items 10 and NVIDIA GeForce.

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

  • Cannot set a video loop of background for the menu

    It cannot be that difficult to do.  I have damage animations.  Buttons work fine.  I can not put a video loop behind the menu.

    I tried:

    (a) alt + drag the .mp4 on the menu

    (b) using the icon for selecting the video option in the control panel menu for .mp4 loop property

    (c) by using a single video file to point to animate on for 2 seconds then set a loop after that for 27 seconds of video loop

    Option C preview correctly and all, but just showed as a black background in the final exported .flv

    Option A and B just did nothing.  There is no video vignette that appears, or whatever it is.

    The loop in the audio file works fine in the preview and the final result, but not video.

    I've looked through many tutorials and just may not know what I am doing wrong.  Any suggestion would be appreciated.

    Thank you

    Should work.

    I would try the elementary streams: m4v and audio.

    Are you sure there are no other layer interfering with the motion? For example, adding a still in photoshop without making the 'context' works fine until you add a background of movement. Yet to replace the technical background layer, but luckily leaves your extra layer covering the motion. Probably not in this case as one of your options produces motion.

    What do you mean by video thumbnails? You're adding motion to the mp4 and also animate buttons?

    If it does not, use any closure and just get the movement of work.

    Test your basic bringing in a motion menu and using the m4v that to see if can get motion.

    What is your default transcoding defined on your 1280 x 720?

  • No video in the monitor, but audio playback during playback of CS5.5.1 chronology

    In one sequence, no reading of the video in the monitor, but audio is heard. What I did?

    Clips from mov H.264 same when it is resolved in the new movie plays ok?

    Thanks Ann & Glenn,

    I hit accidentally the toggle track output 'EYE' key, and turned off the monitor, to the left of the handle of the opacity, in 6 years on other Premiere Pro I've never done that dark screen has not helped, even automate to sequence seemed to disappear into CS5.5.1. But all is now well, thanks to you two, he gave me the idea.

    Kind regards

    Bob

Maybe you are looking for

  • G20 - problems with volume wheel

    My volume wheel does not work as it should, when I'm trying to turn down the volume, he jumps again. even when turning upward, it's the jump down. Put upwards or downwards to turn and turn and turn until it moves. If I fire the sound upward is like i

  • Number in hexadecimal string conversion problem

    Hello for a serial communication, I need to send byte-code in an ascii hexadecimal string. When I use the constants and send them by VISA to the COM port it works fine, but if I use converters numbers it doesn't. Can someone show me what I'm doing wr

  • Error 2738 - Windows Resource Protection found corrupt files

    original title: error 2738 Windows resource protection found corrupt files but was unable to solve some of them.  Details are provided in convertible bonds. Logs\CBS\CBS.log.  For example C:\Windows\Logs\CBS\CBS.log

  • Confused about the notion of VLAN

    I'm confused about the VLAN. I thought that the notion of VLAN was this computer on different VLANS were not suppose to be able to communicate with each other. I am setting up a 6248 and for me to get DHCP to work, I need to enable ip Routing. When I

  • ALTER INDEX with parallel and Nologging

    I want to move some indexes to a different tablespace. For this I use the SQL below:XYZ ALTER INDEX REBUILD TABLESPACE TS_INDX01 NOLOGGING PARALLEL 8;I use NOLOGGING and PARALLEL thinking it will speed up the process of movement. But now I'm confused