FLV starting and stopping at specific times?

Im using the flvplayback to put up a video in my swf.
in my swf i also have several buttons.
the thing i want to do is when i for example click a button i want to
start playing the movie from 5 seconds in it and then stop the movie at for
example 10 seconds in it. even if the video is 20 seconds long i want to
be able to stop it automatically at 10 seconds in the movie. the start and stop should be
controlled from the button..
i know how to start the movie at a specific time but i dont know
how to stop it at a specific time. is this possible?
thanks for helping med out!

FLVPlayback class has a property playheadTime.You will need to read the value of it periodically - so when a desired time is reached, you implement required functionality.
To do that you will need to add either Event.ENTER_FRAME listener or instantiate Timer class or setInterval method for reading playheadTime.

Similar Messages

  • Hard drive starts and stops a few times

    I went to my parents for the Christmas holidays today and tried to use their older computer to put music on to my iPod. Since it's so old I couldn't use iTunes, so instead I used Ephpod. After it was done copying the files to the iPod I saved the changes and disconnected, but immediately afterwards instead of going straight to the menu, the hard drive started and stopped about 10-15 times with the Apple logo being displayed. Now I can't reach the menu, the hard drive will start and stop spinning until it gives up, and when I reconnect it to the computer it won't even recognize it as an external drive. Any ideas?
    eMac   Mac OS X (10.4.3)  

    I have the same issue and the iPod wont reset.

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

  • How get effect to start and stop at certain times in a layer

    i knoe this is so simple but the solution escapes me. thanks in advance

    burn1down wrote:
    thanks for the reply.
    this is only my second day using the product, so i need a bit more info.
    here is what i am trying to do.  I have a image, and 5 seconds into showing that image i want to apply the shatter effect.  When i select the shatter effect and drag it over to the image i have placed in the composition the effect gets rendered but it starts getting applied at the 1st second of the composition.
    i have attempted to set key frames and then drag over the effect with no luck. I dont see any 'time' properties in the effect so i can tell it when to run.
    thanks
    Oooh... You're all watching too many of Andrew's tutorials and always pick the most complicated and fancy ones. I've answered this one last week or so here: http://forums.adobe.com/thread/464655?tstart=30, so check there. If you need more specific help, just ask again.
    Mylenium

  • Starting and Stopping FMLE from command line yields corrupt .flv files

    I am using FMLE to record and live stream TV content. In order to this I am remotely calling FMLEcmd in order to start and stop encoding processes. The problem that I am running in to is that the .flv files generated are corrupt. The odd thing is that if I use the exact same profile XML from the GUI, then the encoding process works just fine and results appear as intended.
    Here is the way my workflow works:
    I start the process by calling
    FMLEcmd /p C:\lighttpd\htdocs\xml\default.xml /l C:\lighttpd\htdocs\logs\log.txt
    then at the conclusion of the recording I call
    FMLEcmd /s "C:\lighttpd\htdocs\files\default.flv"
    When I attempt to open the files using FFmpeg I get a codec error saying that no codecs were detected. When I attempt to open the files in VLC I get a error saying that the media types are "Undf". When I attempt to open or modify the files with flvtool2 I get an end-of-file error. My guess is that my stop command is incorrect and somehow abruptly stopping the stream, but I don't know another way to stop the stream. Do I need to specify a specific stream duration in the XML and make sure to call the stop command *after* the duration has been reached? What would cause this codec corruption when the same profile works properly from the GUI?
    Here is the profile I am attempting to use.
    <?xml version="1.0" encoding="UTF-16"?>
    <flashmedialiveencoder_profile>
        <preset>
            <name>Custom</name>
            <description></description>
        </preset>
        <capture>
            <video>
            <device>Osprey-440 Video Device 1A</device>
            <crossbar_input>0</crossbar_input>
            <frame_rate>20.00</frame_rate>
            <size>
                <width>640</width>
                <height>480</height>
            </size>
            </video>
            <audio>
            <device>SigmaTel Audio</device>
            <crossbar_input>0</crossbar_input>
            <sample_rate>22050</sample_rate>
            <channels>1</channels>
            <input_volume>75</input_volume>
            </audio>
        </capture>
        <process>
            <video>
            <preserve_aspect></preserve_aspect>
            <deinterlace></deinterlace>
            </video>
        </process>
        <encode>
            <video>
            <format>VP6</format>
            <datarate>650;</datarate>
            <outputsize>640x480;</outputsize>
            <advanced>
                <keyframe_frequency>5 Seconds</keyframe_frequency>
                <quality>Best Quality - Lower Framerate</quality>
                <noise_reduction>None</noise_reduction>
                <datarate_window>Medium</datarate_window>
                <cpu_usage>Dedicated</cpu_usage>
            </advanced>
            <autoadjust>
                <enable>false</enable>
                <maxbuffersize>1</maxbuffersize>
                <dropframes>
                <enable>false</enable>
                </dropframes>
                <degradequality>
                <enable>false</enable>
                <minvideobitrate></minvideobitrate>
                <preservepfq>false</preservepfq>
                </degradequality>
            </autoadjust>
            </video>
            <audio>
            <format>MP3</format>
            <datarate>48</datarate>
            </audio>
        </encode>
        <restartinterval>
            <days></days>
            <hours></hours>
            <minutes></minutes>
        </restartinterval>
        <reconnectinterval>
            <attempts></attempts>
            <interval></interval>
        </reconnectinterval>
        <output>
            <file>
            <limitbysize>
                <enable>false</enable>
                <size>10</size>
            </limitbysize>
            <limitbyduration>
                <enable>false</enable>
                <hours>0</hours>
                <minutes>60</minutes>
            </limitbyduration>
            <path>C:\lighttpd\htdocs\files\default.flv</path>
            </file>
        </output>
        <metadata>
            <entry>
            <key>author</key>
            <value></value>
            </entry>
            <entry>
            <key>copyright</key>
            <value></value>
            </entry>
            <entry>
            <key>description</key>
            <value></value>
            </entry>
            <entry>
            <key>keywords</key>
            <value></value>
            </entry>
            <entry>
            <key>rating</key>
            <value></value>
            </entry>
            <entry>
            <key>title</key>
            <value></value>
            </entry>
        </metadata>
        <preview>
            <video>
            <input>
                <zoom>100%</zoom>
            </input>
            </video>
            <audio></audio>
        </preview>
        <log>
            <level>100</level>
            <directory>C:\Documents and Settings\Administrator\My Documents\My Videos</directory>
        </log>
    </flashmedialiveencoder_profile>

    If issue of corrupt file after cmd line not in GUI mode. Are you using some automation to copy/paste output flv to someother location?
    AFAIK, after placing stop command, FMLE took some time to write proper EOF in FLV. wait ~10 sec for FMLE to complete file writing process and than play in FLV PLayer.
    I tried manually with steps you mentioned and it's working fine for me.I playerd file in Applian Flash PLayer. "http://www.applian.com/flvplayer/"

  • My ipod nano 7th gen. won't save the changes I make to a song's start and stop time. How do I fix this?

    So I have a few songs that I don't like the intro to or the end of it that I had cut to where I wanted on my previous ipod. When I try to do the ame thing with this one with the start and stop time, it will work for awhile and then randomly start and stop where it had originally. I have done it like 4 times now for some songs and I can't seem to get it to stick. Suggestions?

    If you use the Sync feature in iTunes, then it needs to be done to the song in your Music Library, then synced with the iPod.  If you do not use the Sync feature and are performing the changes to the song on your iPod specifically, then the setting may be getting overwritten when you drag the song that's already on the iPod back onto the iPod.  It will overwrite all local settings for the song on the iPod with the settings in your library. 
    Try performing the changes to the song in your music library, and then dragging it back over to your ipod (or Sync your iPod if you use that feature).  This will make sure that the setting are consistent in both your library and iPod in-case you were to ever overwrite the song once more.

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

  • I do not have the 'Advanced' tab on the menu bar. I am trying to change ringtone on my iphone 4s. Have done the following: Right cick on song, entered the start and stop times, but unable to proceed as need 'Advanced' tab in order to change to option.

    I do not have the 'Advanced' tab on the menu bar. I am trying to change ringtone on my iphone 4s. Have done the following: Right cick on song, entered the start and stop times, but unable to proceed as need 'Advanced' tab in order to change to option.

    You don't need to upgrade your software.  But if you're struggling with Spry, IMO you should cut your losses and switch to something better for the longrun.
    If you have a budget to work with, I highly recommend Project Seven's Pop-Menu Magic 3.  It's easy to use in DW CS4, 5, 6 or CC.  More importantly, it's bullet proof and works in all devices. 
    Pop-Menu  Magic3 by PVII (commercial DW extension)
    http://www.projectseven.com/products/menusystems/pmm3/index.htm
    If you don't have a budget to work with, you can roll your own menus with jQuery plugins.  A bit more effort on your part, but they perform better than Spry.
    jQuery Superfish
    http://users.tpg.com.au/j_birch/plugins/superfish/
    jQuery MegaMenu2
    DEMO:
    http://www.geektantra.com/projects/jquery-megamenu-2/
    DOWNLOAD:
    http://code.google.com/p/jquery-megamenu/
    Nancy O.

  • In Month View, showing start and stop times for appointments

    Hi, I want to show both the start and stop times for all appointments in my iCal Month view and have not been able to figure out how to do that. Any suggestions? - Dave

    I would also like to know how to do this if possible. I want to print month-view schedules with start and end times for events. Thought I'd bump this up to see if anyone has any ideas.

  • Printing event start and stop times

    In month view, is there any way to have both the start and stop times for an event show when you print the calendar so you can see the duration of an event - thanks.

    You might be able to use this script to reset the start/stop times to zero.  Try with a small selection and see if it works for you.
    http://dougscripts.com/itunes/scripts/ss.php?sp=batchtrimtime

  • Is there a DJ app for the Ipad that will read the "start" and "stop time" setting for each individual song, as they are set in the song Options screen in Itunes?

    Is there a DJ app for the Ipad that will read the "start" and "stop time" setting for each individual song, as they are set in the song Options screen in Itunes? The Ipod Touch, by itself does not allow cross-fading, therefore when the stop time is edited short, the song jusst truncates then goes to the next song. I tried the DJay ap and while it would crossfade, it would NOT read the song settings for the stop marker. So now I want to try and Ipad and see if there is an app that will READ the Itune stop settings within the song. I do NOT want an app that will allow me to DO the stop marker. I want an app that will READ the stop marker from the song as it is set in Itunes.

    Itunes provides the option for setting the Start and Stop times of each music track.  However, the start and stop times do not synchronize to the iPhone.  I don't understand why this option is even available as it doesn't work when listening to music on the phone.  I have not found another application that will support the start and stop time markets.  I have searched quite a bit for this but can't find anything.  I hope we can find something. 

  • Starting and Stopping a Timer in Java Card + GSM

    Hi,
    I seem to not be able to start a timer that my applet has
    allocated using the PRO_CMD_TIMER_MANAGEMENT
    pro active command. I want to for example set the timer
    interval to 5 seconds and I understand from the gsm
    specs that the TLV value should then be {(byte) 0x00,
    (byte) 0x00, (byte) 0x05} as the hour is zero, the minute is
    zero and the seconds = 5 .
    The command qualifier I set to 0x00 to start the timer and
    I set it to 0x02 to stop the timer. The start and stop I
    control from two menu items. From the GSM spec the first 2 bits
    control the timer and the remaining 6 are RFU (reserved for future use),
    now I assume I can then set the RFU bits to 0.
    I then have a EVENT_TIMER_EXPIRED in my processToolkit which then plays a tone.
    The tone proactive command works but I dont seem to be able to start the time or
    stop it ?
    HELP ?
    is there any suggestions or any error in my reasoning here ?

    I tried your solution but it seems to have no effect (?)
    This is the log entry of the comms during sneding of the timer start
    command:
    (Notice that where you have the Timer Identifier tag = A4, here it is
    24 and where you have Timer Value Tag = A5, here it is 25 - these tags and the APDU's are generated with the GSM java card libs in the development kit I'm using.....) It seems to go through but the TIMER_EVENT_EXPIRED never happens....Help ? Have a look at the source code I included (maybe I'm doing something wrong)....
    **THE APDU's
    //346:
    A0 12 00 00 13
    //Fetch
    //     RAPDU = D0 11 81 03 01 27 00 82 02 81 82 24 01 01 25 03 00 00 10
    //     SW = 9000
    //347:
    A0 14 00 00 0C 81 03 01 27 00 02 02 82 81 03 01 31
    //>>Terminal response
    //     SW = 9142
    **SOURCE CODE
    //IN A METHOD CALLED FROM A MENU ITEM SELECTED
    byte[] valCurrentCallUnit = {
    (byte)0x00, (byte)0x00, (byte)0x10
    }; //i.e. 1 second
    timerHandle = reg.allocateTimer();
    proHdlr.init(PRO_CMD_TIMER_MANAGEMENT,(byte)0x00,DEV_ID_ME);
    proHdlr.appendTLV((byte) TAG_TIMER_IDENTIFIER,timerHandle);
    proHdlr.appendTLV((byte) TAG_TIMER_VALUE,valCurrentCallUnit,
    (short) 0, (short) 3);
    result = proHdlr.send();
    //the following is not suppose to be required according to GSM 11.14
    reg.setEvent(EVENT_TIMER_EXPIRATION);
    //IN THE processToolkit method, I have:
    public void processToolkit(byte event) {
         EnvelopeHandler envHdlr = EnvelopeHandler.getTheHandler();
         ProactiveHandler proHdlr = ProactiveHandler.getTheHandler();
         ProactiveResponseHandler rspHdlr;
    switch(event) {
    case EVENT_TIMER_EXPIRATION:
    doSomething();
    proHdlr.init(PRO_CMD_TIMER_MANAGEMENT,
    (byte)0x00,DEV_ID_ME);
    proHdlr.appendTLV((byte) TAG_TIMER_IDENTIFIER,timerHandle);
    proHdlr.appendTLV((byte) TAG_TIMER_VALUE,valCurrentCallUnit,
    (short) 0, (short) 3);
    result = proHdlr.send();
    break;
    } /** switch event */
    }/** processToolkit */
    Any help would be appreciated....

  • Programmatically starting and stopping my vi at set times

    I have a vi that runs during every production shift, however the running and stopping of this vi is currently manual, requiring a user to start and stop the vi at the appropriate times. I would like a way of programming the vi so that it starts every weekday at 6:55am and stops every weekday at 15:05pm. All my while loops run if engine status is TRUE, so I wondered if starting/stopping the engine appropriately would be sufficient. I will need to reinitialise all my values from the previous day – does this happen automatically by stopping/restarting the engine? I would also like to ignore weekends if possible.
    I have attached the vi that I would like to automatically start and stop. If anyone knows the best way to program this (slightly messy) vi, then I would greatly appreciate the help.
    Thanks to all,
    Stuart
    Attachments:
    HC2 Efficiency Information SW Edit (rev 10).vi ‏1202 KB

    My LV8 is having issues this morning and does not want to open the VI I sent you, so I jsut created the loop that I had added.  It is very simple, but should get you started.  It does not ignore weekends I have not had time to work on that.  You could do something like every time the start time is triggered, increment a counter and when the counter hits 6 (saturday if you start counting on monday), do not start the engine and then when it hits 7 reset the counter.
    Good luck and post back if you have more issues.
    Kenny
    Kenny
    Attachments:
    start stop.vi ‏16 KB

  • Reset song start and stop times

    Resetting start and stop times for all songs.
    Hi. I recently trialled a DJ BPM matching software product and unknown to me, it scanned all my songs and in the majority of cases, put new start and stop times (in seconds) so now when I play my songs in iTunes, they either start to play early and/or stop playing before they are complete.
    I can go and reset these parameters manually but I have 5000 songs so wondered if there was a utility or a file I could edit that would do this for me as its really annoying that the DJ software didnt reset these when I uninstalled it at the end of the trial period.
    Thanks
    Jason

    You might be able to use this script to reset the start/stop times to zero.  Try with a small selection and see if it works for you.
    http://dougscripts.com/itunes/scripts/ss.php?sp=batchtrimtime

  • Starting and stopping timer using external inputs interfaced with labview

    hello,
    I have trouble finding how to start and stop the timer using external voltage or current pulse. we are interfacing a circuit to labview. so for that we need to count the time it takes between the two external voltages. We have to keep on comparing the voltages to some reference voltage. And when the external voltage crosses the reference voltage we have to start the timer and again we have to stop the timer using tha same logic. We need it for time calculation between the triggers.
    hope you can help.

    https://decibel.ni.com/content/docs/DOC-23334 is agood example to start. You need to modify it to include stop trigger.

Maybe you are looking for