Correct way to start and stop video

Hi All.
I have about 10 flv's in different states. I'm finding that I have to find ways to not only make play interactions but stop interactions for all the other videos
i have in the project otherwise they will all play at once, what am I doing wrong??
Laz

Hi Laz,
There is a property for videos called "Auto Play". If that is checked, videos will start playing immediately.
Merely hiding a video does not cause it to stop playing. If you hid the video by clicking the eyeball, you just hid the video. You need to remove the video from all the states in which it does not exist. To do this, select the video in the layers panel, right-click, and choose "Remove from State", then choose a state. You also might find "Share to State > Current State Only" helpful.
-Adam

Similar Messages

  • Starting and stopping video and MP3

    I can't seem to get around my video and audio files starting when I arrive at the page. I'm even using some example code with start and stop buttons. This is in CS4 Flash. I expect it's because the ActionScript is in the wrong place because when I run the movie it flashes through all of the pages on the site without stopping at the home page. Is there some generic code that will allow me to simply swap out the name of the video or audio file I want to start. If there is, do I need to locate it on its own layer at the top of the timeline? Thanks to anyone who can help.

    >>Why is it that the default setting for a video player placed on the stage
    is to start playing when the page appears? I would think it would be
    paused.<<
    I don't know it doesn't seem any more logical to have it paused. I assume it
    is just a preference on the part of the developers of Flash.
    >>Is there some piece of script that can correct this situation<<
    There are several ways to pause the video playback at teh beginning of the
    Flash movie. It actually depends on how you have the movie inserted into the
    time line. If you used an FLVPlayback component, then all you have to do is
    click to select the component, open the component inspector
    (window>component Inspector) and se the autoplay value for the component to
    false. If you have the video inserted another way let me know.
    >>Forgive my naivete but I am trying to learn the ways of Actionscript
    wherever I can find it and builds something at the same time.<<
    Thats always hard. What tecnology do you normally work with Ajax? C++
    The comment about the behavior of video suggests you work with a technology
    that has the opposite autoplay behavior.
    Jerron Smith

  • How to eliminate the "Ping" sound when starting and stopping videoing

    How to eliminate the "ping" sound when starting and stopping a video on iPhone.  Thanks.

    I asked my friends on Facebook and one came up with the answer... I just had to flip the little "ring-silent switch" on the side of the iPhone to cut the "Pinging" sound!  There's probably another way but this works!

  • Is there a way to Start and Stop OC4J through Services

    Currently we are starting and stopping OC4J manually through the Dos command prompt on our servers. We are interested in making it a Services where we can start and stop OC4J thourgh the services option on the control panel in windows. Any suggestions would be greatly appriciated.
    Thanks!
    Chad

    This has been discussed several times in this forum. One of the thread is
    How can I set the export path in Form Builder 6i?
    yes, you can use Windows Resource Kit or some third party freeware to do so.
    regards
    Debu

  • Starting and stopping Video File that is Attached to Augmented Reality

    I'm trying to do a little augmented reality. I'm using an action script to call a video and play it. The problem that I'm having is that the sound is starting the moment the window is open and the video plays with the marker is shown. I want the sound and video to only play when the marker is seen. I would like it to pause when the marker is removed and then resume where it left off when the marker is seen again. Here is a copy of my code if someone could look it over and tell me what I'm doing wrong. PLEASE PLEASE PLEASE just correct my mistake. I don't understand enough about coding for you to just say Netstream.pause() and netstream.resume. I don't know where to put that information in. ANY HELP is appreciated greatly.....
    package {
    import flash.display.Sprite;
    import flash.events.Event;
    import flash.display.BitmapData;
    import flash.display.Loader;
    import flash.net.URLRequest;
    import flash.media.Video;
    import flash.net.NetConnection;
    import flash.net.NetStream;
    ////////////AWAY3D FOR
    COLLADA//////////////////////////////////////////////////////////////////// ////////////////////////
    import org.papervision3d.lights.PointLight3D;
    import org.papervision3d.materials.MovieMaterial;
    import org.papervision3d.materials.WireframeMaterial;
    import org.papervision3d.materials.shaders.EnvMapShader;
    import org.papervision3d.materials.shaders.ShadedMaterial;
    import org.papervision3d.materials.shaders.PhongShader;
    import org.papervision3d.materials.BitmapFileMaterial;
    import org.papervision3d.materials.VideoStreamMaterial;
    import org.papervision3d.materials.utils.MaterialsList;
    import org.papervision3d.objects.primitives.Plane;
    // import org.papervision3d.objects.parsers.Collada;
    public class test1 extends PV3DARApp {
    private var _plane:Plane;
    private var _plane2:Plane;
    // private var _piso:Plane;
    private var videoStreamMaterial:VideoStreamMaterial;
    private var quality:uint = 8;
    private var netConnection:NetConnection;
    private var video:Video;
    private var netStream:NetStream;
    private var videoStreamMaterialPiso:VideoStreamMaterial;
    private var quality:uint = 8;
    private var netConnectionPiso:NetConnection;
    private var videoPiso:Video;
    private var netStreamPiso:NetStream;
    */////////////COLLADA FILE
    VAR//////////////////////////////////////////////////////////////////////// ////////////////////
    // private var loader:Loader;
    public function test1() {
    // Transferring the file name of the camera revision file and the
    pattern defined file, it initializes.
    this.init('Data/camera_para.dat', 'Data/flarlogo.pat');
    protected override function onInit():void {
    super.onInit(); // Al be sure to call.
    //Apply Filters
    // The same size as the marker it tries making Plane.
    var wmat:WireframeMaterial = new WireframeMaterial(0xff0000, 0,
    0); // With wire frame.
    this._plane = new Plane(wmat, 80, 80);
    this._plane.rotationX = 180;
    this._baseNode.addChild(this._plane);
    var light:PointLight3D = new PointLight3D();
    light.x = 0;
    light.y = 1000;
    light.z = -1000;
    ///////////////FLV FILE
    HERE/////////////////////////////////////////////////////////////////////// ///////////////////
    var customClient:Object = new Object();
    customClient.onMetaData = metaDataHandler;
    netConnection = new NetConnection();
    netConnection.connect(null);
    netStream = new NetStream(netConnection);
    netStream.client = customClient;
    netStream.play("FNF_Intro.m4v");
    video = new Video();
    video.smoothing = true;
    video.attachNetStream(netStream);
    videoStreamMaterial = new VideoStreamMaterial(video, netStream);
    videoStreamMaterial.doubleSided = true;
    _plane2 = new Plane(videoStreamMaterial, 130, 130, quality,
    quality);
    this._plane2.z = 50;
    this._plane2.rotationX = -90;
    this._plane2.rotationY = 180;
    this._baseNode.addChild(_plane2);
    function metaDataHandler(infoObject:Object):void {
    trace('metaDataHandler',infoObject);

    Helpmeun,
       I am still learning PV3D and AR but from looking  this is the only thing I can think of.... not exactly sure what you are doing, but if you only want the video to play when the face of the plane with the video is visible... try something like this....
    In your AR code.... most people add a listener to the stage or application for the ENTER_FRAME event and use that for doing their maker detection (I use a timer, but either way it is a modification to your event handler function)... something like....
    constructor or creationCompleteHandler()
        // FLAR initialization code
       // PV3D initialization code
       stage.addEventListener(Event.ENTER_FRAME, updateRenderHandler, false, 0, true);  // This would probably go in your onInit override
    The code you are wanting to change is the code in the handler function when it detects or doesn't detect the pattern....
    private function updateRenderHandler(hEvent:Event):void
              // Capture the video as bitmap for pattern recognition
              m_hBitmapRenderer.draw(m_hVideo);
                try
                   // Redetect and see if it is high confidence.... then update and show
                    if ( m_hFLARdetector.detectMarkerLite(m_hFLARraster, 120) && ( m_hFLARdetector.getConfidence() > 0.75 ) )
                        // Get and set transform matrix from detector and update model
                        m_hFLARdetector.getTransformMatrix(m_hFLARtransform);
                        m_hFLARcontainer3D.setTransformMatrix(m_hFLARtransform);
                        // Re-render the scene
                        m_hRenderer.renderScene(m_hScene, m_hFLARcamera, m_hViewport);
                        // Show viewport
                        m_hViewport.visible = true;
                        // !!!!!!! YOUR CODE SHOULD BE
                        m_hNetstream.play();                
                   // The pattern is not recognized in the video
                    else
                        m_hViewport.visible = false;
                        // !!!!!!! YOUR CODE SHOULD BE
                        m_hNetstream.pause();
    Hope that helps.....
    JJ

  • How to start and stop video acquisitio​n in a state machine

    hello,
    I'm a neuroscience student and here's what I'm trying to do: 1) trigger a GigE camera (200fps), 2) start video acquisition, 3) trigger a light that will stay on for x miliseconds, 4) trigger a valve that will blow an air puff, 5) stop the tone and the valve simultaneously and 5) stop the video acquisition 1second after 4). For that, my VI is a state machine, with a state for each trigger (ex, 1 state for trigger camera, 1 state for trigger light, ect) plus a state to "stop" and a state "time to wait". Everything was working except the video acquisition - the program would trigger the camera but only acquire one frame, because it wasn't running in a while loop and this is my first question: for a video acquisition is it always necessary to have a while loop?
    I assumed the answer was yes, so I built a "consumer" loop for the camera. Putting a queue in the state "trigger camera" in the producer loop, I was then able to start the video acquisition but now the problem is to stop it in the right time. I have another queue in the "stop" state in the producer loop, but it isn't able to start the "stop" state in the consumer loop, I think that may be because the consumer loop gets "stuck" in the while loop.
    I hope you can help me, the VI is attached. Thanks!
    Solved!
    Go to Solution.
    Attachments:
    trigger_cam.jpg ‏345 KB
    trigger_stop.jpg ‏354 KB
    Conditioning MS vi 2010.zip ‏68 KB

    Hi Gak,
    Thanks for the suggestions. I still didn't got it to work though. I moved the stop command to inside the while loop like you said but it didn't work. The problem seems to be in the communication between the producer/consumer loops. When I run the VI in highlight, the queue message "trigger camera" leaves the producer and arrives at the consumer loop in the appropriate time, starting the "trigger camera" state of the case structure. However, the message "stop" doesn't seem to be sent by the producer loop, so the consumer doesn't receive a signal to start the "stop" state of the case structure. Can you think of anything I should change in the producer loop so that the second state (stop) is added to the queue?
    About the functional global, I read about it, it seems that either that or a local variable could work, but I don't quite know how to implement it in my state machine, since the stop of the first while loop isn't activated in the "stop" state but in the "shutdown" state. It works more or less like this: after 10 loops of triggering and stopping the camera, light and valve (so after acquiring 10 movies), it goes for shutdown. Can you show me what you had in mind with the functional variable?
    Attachments:
    Untitled.jpg ‏286 KB

  • How to start and stop an embedded sound

    I'm putting a sound of a cat purring in the intro to my animation. I've been asked to make it possible for viewers to turn the sound on and off with buttons. I can do it with an outside sound file by using URLRequest.
    Is there a way to start and stop the sound if it is embedded in my library? If so, can someone give me that script.
    TIA

    Hello mnemo,
    You can use your digital signal to stop your generation with the following property node
    DAQmx-Triggering
    Regards.
    Jean-Baptiste C.
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    >> Téléchargez dès maintenant toutes les présentations techniques !

  • Start and Stop a Windows Service From Java

    Is there any way to start and stop a Windows service from Java? The only post I found on it (http://forum.java.sun.com/thread.jspa?threadID=647509) had a link to one of the many aps that allow Java programs to be services, which is not what I am interested in doing.
    I am attempting to get data from performance counters from the Windows Performance Monitor into a Java ap without using JNI. I can get the data from C++ or a .net language pretty easily and was going to create a service that would listen for socket requests and feed back the data. However, I'd like to start and stop that service when my java code starts and stops. Is this possible? Would it make more sense to just use a .exe and Runtime.exec()?

    If it's only to start or stop a service then you could use the net command without any need for JNI.import java.io.*;
    public class MsWinSvc {
        static final String CMD_START = "cmd /c net start \"";
        static final String CMD_STOP = "cmd /c net stop \"";
        public static int startService(String serviceName) throws Exception {
            return execCmd(CMD_START + serviceName + "\"");
        public static int stopService(String serviceName) throws Exception {
            return execCmd(CMD_STOP + serviceName + "\"");
        static int execCmd(String cmdLine) throws Exception {
            Process process = Runtime.getRuntime().exec(cmdLine);
            StreamPumper outPumper = new StreamPumper(process.getInputStream(), System.out);
            StreamPumper errPumper = new StreamPumper(process.getErrorStream(), System.err);
            outPumper.start();
            errPumper.start();
            process.waitFor();
            outPumper.join();
            errPumper.join();
            return process.exitValue();
        static class StreamPumper extends Thread {       
            private InputStream is;
            private PrintStream os;
            public StreamPumper(InputStream is, PrintStream os) {
                this.is = is;
                this.os = os;
            public void run() {
                try {
                    BufferedReader br = new BufferedReader(new InputStreamReader(is));
                    String line;
                    while ((line = br.readLine()) != null)
                        os.println(line);
                catch (Exception e) {
                    e.printStackTrace();
    }Regards

  • Does Golden Gate provide any Webservices to start and stop services?

    Hi all,
    We are trying to use GG in our application. But we need a way to start and stop services from java code.
    Is there any Webservice interface or API to start and stop Golden gate services like GG manager, extract and replicat processes??
    Thanks in advance for your help.
    Yamini.

    You can control this at a database level using EVENTACTIONS parameter.
    Create a table at source & target called "EVENT" with field EVENT_TYPE ( example names only - please call it what you like ) .
    at Replicat config actions based on the data passed into the EVENT_TYPE column
    MAP GG_ADM.EVENT TARGET GG_ADM.EVENT, &
    FILTER ( (@STREQ(@IF(@COLTEST(EVENT_TYPE,PRESENT),EVENT_TYPE,"No EVENT"),"STOP") = 1)), &
    EVENTACTIONS (IGNORE , LOG,STOP);
    You'll need a seperate replicat to handle the start
    MAP GG_ADM.EVENT TARGET GG_ADM.EVENT, &
    FILTER ( (@STREQ(@IF(@COLTEST(EVENT_TYPE,PRESENT),EVENT_TYPE,"No EVENT"),"START_APP_02") = 1)), &
    EVENTACTIONS ((SHELL (${GG_HOME}/diroby/start.ksh R1APP_02 )));
    Hope that helps

  • Starting and Stopping an Instance

    We are looking at setting up our CF10 server such that each application will be in its own instance, and allowing the developers access to their own instance.  Is there any way to start and stop the instances from within the instance?  We are hoping that there is some way to do this without logging into the cfusion administrator to manage the restarts of each instance.  We are installed on Windows.
    Thanks!
    Jenn

    The administrator could run the following code:
    <cfscript>
    instanceName="bkbk";
    createObject("component", "CFIDE.adminapi.administrator").login("admin_password") ;
    serverInstanceObject=createObject("component", "CFIDE.adminapi.serverinstance");
    // start the instance of given name
    serverInstanceObject.startInstance(instanceName);
    // stop the instance of given name
    // serverInstanceObject.startInstance(instanceName);
    </cfscript>
    <!--- properties and methods of Serverinstance.cfc --->
    <!--- <cfdump var="#serverInstanceObject#">--->

  • My MacBook Pro, does not start after pushing start button. The side bar starts and stops at half way.

    My MacBook Pro, does not start after pushing start button. The side bar starts and stops at half way.

    Hy myneck,
    Happy Holidays!  The resource below may provide some steps to try if your MacBook Pro won't start.
    Troubleshooting: My computer won't turn on - Apple Support
    http://support.apple.com/en-us/TS1367
    This article discusses what to do if your Mac won't turn on. To differentiate this from a display issue, be sure that when you press the power button:
    You don't hear a startup chime.
    You don't hear any fan or drive noise.
    There is no video on your built-in or external display
    If your computer has power but doesn't display any video, it may have one or more of these similar symptoms when you press the power button:
    You may hear a startup chime.
    You may hear fan or drive noise.
    You may see a light from the Sleep LED (if your Mac has one).
    Pressing the Caps Lock key on the keyboard causes it to light. 
    If any of these display-related conditions occur, see Troubleshooting: My computer has no video instead. Otherwise, continue with this article.
    If your computer won't turn on, try each of these steps:
    Verify you have a good connection from your Mac to the wall outlet by confirming the power cord and adapter if present are securely connected and plugged in. To check if the wall outlet is working, plug in a lamp or other electrical device.
    If the wall outlet is working and you continue to have no power try another power cord or adapter if available. If it works you may need a replacement cord or adapter. 
    Note: See Apple Portables: Troubleshooting MagSafe adapters for further troubleshooting with MagSafe adapters.
    Disconnect all accessories that are plugged in to the computer, such as a printer, hub, or other mobile device.
    If your Mac supports user-installable memory, solid state drive, or hard drive, and you recently installed any of these, make sure they are installed correctly and are compatible with your computer. If possible, reinstall the original memory or drive into the computer to find out if the behavior persists afterwards.
    MacBook Pro: How to remove or install memory
    MacBook: How to remove or install memory
    Mac Pro: How to remove or install memory
    Mac mini: How to remove or install memory
    iMac (27-inch, Late 2012): Installing or replacing memory
    iMac: How to remove or install memory
    Reset the SMC.
    If you are still unable to start up your computer after trying each of these steps, visit an Apple Store or Apple Authorized Service Provider (AASP) for further diagnosis. If you plan to visit an Apple Retail Store, make a reservation at the Genius Bar using http://www.apple.com/retail/geniusbar/ (available in some countries only).Note: Diagnostic fees may apply for issues not covered under warranty or the AppleCare Protection Plan (APP).
    I hope this information helps ....
    - Judy

  • Videos start and stop

    watching videos from any sites, news, webcams, apple quick tips, etc-start and stop
    Have iMAC, 2.8, 6Mgs Ram

    3gone wrote:
    Any thoughts about my disconnecting the ethernet cable from the router and going directly to the IMAC from the modem to see if this makes any difference? My network services the IMAC, my wireless printer and occasionally my netbook, which I rarely use.
    Yes!  Good idea.  In fact, this is the proper way to troubleshoot this issue - isolate the problem by first taking the wifi router out of the equation completely.
    Your current speed is in the broadband spectrum, yet it's at the very bottom.  I wouldn't be surprised if you experienced video problems at your current speed - even with your local network working properly. 
    What type of internet service do you have and who is your provider?
    Message was edited by: pianoman1976

  • WHY DO THE VIDEOS I AM TRYING TO VIEW (YOU TUBE ETC) START AND STOP ALL THE TIME.. I HATE THAT!!!

    Why do the videos that I am trying to view (you tube etc) always start and stop.  it is very annoying and I can't seem to fix it.... thanks for your pointers...  as you can see, I am not a techie.  the fact that numbers, letters and picture appear on my computer screen is

    Make sure you are using the latest version of Adobe Flash Player. 
    A suggestion:
    Go to YouTube, open any video and press pause (don't do this while video is playing).
    Click the ctrl key or “right click” the mouse in the middle of the video window. The settings for flash player will pop up. 
    Select the video settings then select "enable hardware acceleration."   
    Press close.
    Now RESTART YOUR  COMPUTER not just Safari if that is your browser of choice.
     

  • Inserting FLV videos that allow student to start and stop anywhere

    Hello,
    I am inserting flv videos that students need to be able to start and stop anywhere, and when the video reaches the end, the student clicks on the NEXT button to go to next slide.
    As long as the student lets the video play without any interruptions, the NEXT button appears at the end.
    THe problem I am having is that everything works except the NEXT button is not appearing at the end of the Video unless the NEXT button is visible for the whole time the video is on.
    If the NEXT button is visible during the whole time the video is showing, the student is able to skip the video without watching it.
    I need the students to view the whole video as part of the course.
    Is this possible?

    Your original post didn't mention that the students should be able to repeat a portion of the video again if they choose to do so. This of course complicates matters further as you would then need to show either one of the standard Captivate playbars or use a Playbar widget as you are doing now. However, this also opens up for the user being able to skip the video once again, so it's not the best solution.
    As I see it you have two options:
    1) Present the video without the playbar as I described in my first post. Add the next button at the end of the video. This will make sure that the video has been watched to the end before the user can continue to the next slide. Perhaps you could add a "Replay" button so that the user would be able to watch the entire video again simply by replaying the slide.You can create Start and Stop(Pause) buttons by inserting Smart Shapes or Regular buttons and assign an Advanced Action to Pause or Continue the project.
    2) Modify one of the Playbar widgets so that the scrubber and the next button isn't activated until a certain frame has been reached on that particular slide. Once this frame is reached the widget could activate Play and Scrubber allowing the users to navigate to the next slide or move around in the video. However, this requires extensive knowledge of Flash and Actionscript to achieve and it will also be a very troublesome approach as the frame numbers would change if you insert new slides (or extend / shorten existing slides) prior to the slide(s) containing the video.
    www.cpguru.com - Adobe Captivate Widgets, Tutorials, Tips and Tricks and much more..

Maybe you are looking for

  • Aperture crashes when e-mailing more than one photo at a time.

    I am unable to send more than one image at a time after updating to ML. I have to force quit the mail appl. This is a know issue and I am unable to find out if a fix is available or pending.

  • *WARNING* messages IcmJ2EEScheduleFunc: Cannot access "/sap/public/icman"

    Hi all, Anyone encountered the following error messages in the dev_icm tracefile? WARNING => IcmJ2EEScheduleFunc: Cannot access "/sap/public/icman" with protocol "HTTPS" on AppServer - please check node in TA sicf Some info: The service /sap/public/i

  • Is it possible to import an XDP into Reader at Browser loadtime?

    Is it possible to import an XDP into Reader at Browser loadtime? Similar to loading an FDF on loadtime? Or is there some code that I can put into Livecycle that will load a XDP from a web address once the PDF is loaded into Reader (Reader or Browser

  • PPOMW - changes in production not allowed

    Hi, We would like to assign a cic-profil to a user in transaction PPOMW in production environment. After saving the changes the error messages u201Cmandant 100 changes not allowedu201D occurs. Our consultants told us, that we have to change to status

  • Often restore necessary after updates

    Does anyone else has this problem in a similar severity like I do? When I update apps with the Appstore-app on the device it nearly crashes everytime I do it while updating the app. Either it just freezes for a long time and I reset because it's unno