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

Similar Messages

  • I added icloud to my ipad 2 what will i need to do with my mac in order to start seeing the video and pictures on my  mac onceI take them on my ipad

    I added icloud to my ipad 2 what will I need to do with my mac in order to start seeing the video and pictures on my  mac once I take them on my ipad ?

    See Here
    Apple - iCloud - Learn how to set up iCloud on all your devices.

  • How can you create a playlist with music and music video and play those from same playlist through Apple TV?

    How can you create a playlist on Ipod touch with music and music video,  and play those from same playlist through Apple TV?  I can download, create a playlist with both music and music video, stream that through the Apple TV with no problem.  The sound and the information show up on the TV, but when it gets to a music video, it only shows the information and "artwork".
    I also have a video playlist - videos play fine through the Apple TV, but will not shuffle through all videos - continues to repeat the same one.  I have most definitely selected shuffle in both locations - from the playlist and on the ipod video screen while video is playing.

    I finally got it... had to sync the photos with the music in iMovie, arrange the voiceover in GarageBand then export to iTunes, and then I was able to put it all together in iMovie and burn in iDVD... had a few glitches along the way but finally finished : )
    Message was edited by: jpewald

  • I am trying to use the auto audio-sync feature. When I select the video and audio clip to be synced FCPX says its syncing them and then once finished (at 100%) no compound clip is created and the video and audio file do not sync. Any help is appreciated.

    I am trying to use the auto audio-sync feature. When I select the video and audio clip to be synced FCPX says its syncing them and then once finished (at 100%) no compound clip is created and the video and audio file do not sync. Any help is appreciated.

    Hi
    In iMovie'11 (version 9.0.x)
    on top menu row - Apple/iMovie/File/Edit/Cut (Can vary dep. on language - in Swedish Apple/iMovie/Arkiv/Redigera/Klipp . . . )
    down Cut menu - Slow playback/Raspid Playback/Re-play in Slow Motion and onvards
    Here one can select the Pre-Set speeds
    Are you familiar with getting 'inspector' to run?
    No - but I guess that Double Click on clip/sequense or ctrl-Click on it might open it.
    Yours Bengt W

  • I am trying to play an mp4 in quicktime and the video and audio does not sync. Any tips?

    I am trying to play an mp4 in quicktime and the video and audio does not sync. Any tips? This is not hack/ripped video but a legit home movie.

    In this case, it looks like Quicktime wasn't very efficient in managing memory, leading to a slowdown in playback. If QT has a lag and VLC doesn't, that's more evidence.
    I couldn't say why your friend's windows computer plays the media fine, while your Mac doesn't. The only thing I could suggest is to disable QT streaming video - which has been known to slow down performance.

  • Link and unlink video and audio clips

    In this tutorial reTooled.net compares audio and video linking in Premiere Pro vs. Final Cut Pro.  Premiere Pro’s Group Function is also discused and the tutorilal shows you how you can use it to extend your timeline functionality.: Link and unlink video and audio clips

    In this tutorial reTooled.net compares audio and video linking in Premiere Pro vs. Final Cut Pro. Premiere Pro’s Group Function is also discussed. The tutorial shows you how you can use it to extend your timeline functionality: http://www.retooled.net/?p=204

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

  • 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

  • Lost 200+ pictures and many videos and sound clips

    So, I wanted to update the iOS to iOS5, but something went wrong. It backed up (so I wasn't too worried), but it didn't restore properly. Error "-1". A pretty much unknown error. I tried again 2 day's later, and it worked like a charm.
    BUT, in the 2 days, I went to a championship DTM race, about 600km (370 miles) away, shot over 200 pictures and many many videos and sound clips. We even stopped at the Nürenburgring Nordschleife before the DTM on the way and took the car to the track a few times. Awesome.
    After the restore, I had all my previous stuff back, but lost all of the Nürenburgring Nordschleife and DTM pictures... Is there any way to get those back? iTunes restored my iPhone without asking me! So I lost everything as soon as I started up iTunes...

    caseyann55 wrote:
    I lost all of my pictures and videos on my HTC rezound except for about 30 pictures out 700+. I did not delete them and according to my phone it wont even let me erase my SD card which everything was on. Why would my phone only erase my pictures and videos? Is there any way I can retrieve them? I had the back up plus but even it only has my pictures that I have taken since then and the 30 random pictures that it didn't delete. I noticed they were all gone after an update had occurred. Any help would greatly appreciated.
    Have you taken the SD card out and put it into a computer or something to see if they are there or not? That would be my first thing to try.

  • Storing and converting videos and slideshows (Mac OS)

    hi all, new user here.
    i have a host of files with some coming from my PC days and am currently using Aperture to store and create m4v and mov files.
    right now i have AVI, mpg, mp4, PDF etcetera etcetera that i am trying to organize. when i doubleclick on some of these files they open in AME and i am guessing this means that i need to associate the file type with some other software or if i should convert them to a more convenient format such as mov or m4v which Aperture recognizes. so right now these files are just sitting in a file folder in various formats since Aperture does not appear very good at recognizing some of these video formats.
    i would like to /store/ this data in a database or in software that will allow me to get it all organized and i am wondering if Bridge is a good place to do this or if user recommend LR or if there is in fact an adobe product to get this data organized.
    i think ideally i would put all images and slideshows and videos in one place but i am guessing this means i would have to convert my videos to some file format (say mov or m4v for Aperture) so i am also wondering if this is a good way to go and if Adobe Media Encoder is the proper tool for this.
    any sage advice is really welcome.
    P.S. i also have PDF and EPS which both don't seem to play nice with aperture.

    Although there sometimes are problems with certain video files Bridge is the correct application to start for organizing your files. You can use the filter panel to only show certain file types, you can rename, rate and label the files, etc etc.
    Some video files should be able to play in the preview window. It pays multiple pages PDF also in the preview window although there can be problems with PDF from InDesign showing all content.
    You can use the folder panel for easy drag and drop files in different folders.
    Anyway, before experimenting make sure to have a proper back up of your files and then start playing around freely to learn more about Bridge.

  • Is there a way to stream video from an external camera to the iPad? Ultimately, I would like to have an app to annotate content and save video and stills. Thanks

    Hi - I am completely new to the iPad apps world (other than as a consumer). My current laboratory workflow takes live analog video from a high quality camera mounted on a microscope, passes the composite signal through a digitizer and displays the digitized stream via USB with a program on my computer. I can watch, resize, and capture stills or video segments from the live video feed. I have good solultions to accomplish this for both Mac and the PC.
    What I would really like is to get that live video on an iPad in the context of an application where users can capture still pictures and short video segments of the streamed content, annotate them with descriptive observations, and search in a  database for comparable images. Is there an existing technology that would allow me to handle at least the video display and capture aspect around which a specific app could be built? I am new to iPad so I have no idea how to do this. Everything I've seen is about watching pre-stored video programs that are already  on the Mac. Thanks so much.

    Hello Sugeet Posey
    Check out the article below to troubleshoot issues with connecting to your iSight camera.
    How to Troubleshoot iSight
    http://support.apple.com/kb/ht2090
    Regards,
    -Norm G.

  • Converting and storing videos and slideshows to/in MAC

    i am trying to figure out where to store my videos and slideshows (i use Aperture) but before i get there i am noticing that i am getting an error on some of my file types and also that i have a lot of different file types.
    does anyone know how to fix this error or why it is coming up?
    does anyone know a convenient way to convert these various file types so they are Mac friendly and if so what software and command to use?
    i have EPS, PDF, mov, mpg, mp4, m4v and wmv etcetera
    ideally i would also like to STORE these in one place if at all possible.
    i currently have Aperture and Adobe Bridge.

    http://jakarta.apache.org/commons/codec/

  • Can I link and lock video and audio tracks - layers - as in Photoshop?

    I'd like to link and lock entire clips of video and audio tracks, as I might in Photoshop, so that I can insert some material ahead of this group without having to move each separate tack in my timeline. I have a group of clips which works well together now, and it would be so nice to be able to link them, lock them together as on unit, and just insert the new material into the timeline ahead of this piece. Any ideas?

    alann
    What version of Premiere Elements and on what computer operating system?
    For now, a generalized Premiere Elements Windows answer.....
    You would select all the clips (all at one time) that you want to move together, then Clip Menu/Group.
    Or right click anywhere in the selection to bring up the pop up menu including the Group option.
    Have you been there and done that yet?
    Please supply more information so that we can fine tune the information that you seek.
    Thank you.
    ATR

  • Since the lastest update, videos will no longer play. They start and stop over and over again.

    Since the latest update to Firefox, I can no longer view videos on my PC. They start, play for a few seconds, then stop and repeat this process over and over again.
    I have a high speed internet connection and never had this problem until this past Thursday (10-06-11) after Firefox updated.

    Hi ..
    Restart the Apple TV >  Apple TV: How to restart your Apple TV
    Then reset yor iPad >  Press and hold the Sleep/Wake button and the Home button together for at least ten seconds, until the Apple logo appears.
    Then try AirPlay.

Maybe you are looking for