Determining the current frame/time of video

I'm using AS2 and would like to create a function to monitor
the current
time of an FLV file in a swf. I'm using the swf in Director
and using the
format sprite (1).flvCode.flvPlay () where sprite (1) is the
location of the
swf, my AS2 code is in a movieClip with an instance name of
flvCode and I
have a function (just or illustration purposes) of flvPlay ()
I'v looked in the AS2 reference but it's strangely absent of
code that would
provide the current flv time or even the duration of the flv.
Craig

Thanks. I'm too much of a novice to even realize that I was
asking the same
question.
"Rothrock" <[email protected]> wrote in
message
news:g4dqhr$58e$[email protected]..
> Like David told you in your other thread you need to
look under the
> class(es)
> that you are using. Are you using the FLV playback
component? In that case
> you
> need to look in the Components Language Reference.
>
> From there scroll down to FLBPlayback Component.
>
> In there the FLVPlayback Class will have a listing of
everything that is
> available.
>
> I'm thinking that FLVPlayback.playheadTime and
FLVPlayback.totalTime are
> probably what you want.
>
> If you aren't using the playback component then you most
likely need to
> look
> at the ActionScript 2.0 language reference under the
NetStream Class. In
> that
> case you will need the onMetaData event to capture the
total time for the
> FLV
> when it loads and the time property to check the current
position.
>
> So I don't know where you were looking, but there is
plenty of code to
> help
> you along.
>

Similar Messages

  • When i pause a video in FCPX the current frame becomes clear but when i press play they become blurry?

    When i pause a video in FCPX the current frame becomes clear but when i press play they become blurry?

    I had this SAME EXACT problem for WEEKS! >_<
    It was so frustrating. I tried everything I could. I was even using uncompressed video files (+60GB in size!) to try to fix the problem, but nope. Nothing. Except this...
    Go to:
         Preferences -> Playback -> Playback Quality and select "High Quality"
    By default, FCPX uses the lower quality setting to save resources.
    "...Playback Quality pop-up menu to choose whether to always use the highest-quality video for playback or downsized video for better playback performance"
    http://help.apple.com/finalcutpro/mac/10.0/#verb8e60ab7

  • IWork Numbers -- how to determine the current selected column/row?

    I am trying to write a script that grabs some text from a Numbers spreadsheet based on the selected field. I just can't figure how to actually get the column and row in a way I can use. Here's my start:
    tell application "Numbers"
    tell document 1
    -- DETERMINE THE CURRENT SHEET
    set currentsheetindex to 0
    repeat with i from 1 to the count of sheets
    tell sheet i
    set x to the count of (tables whose selection range is not missing value)
    end tell
    if x is not 0 then
    set the currentsheetindex to i
    exit repeat
    end if
    end repeat
    if the currentsheetindex is 0 then error "No sheet has a selected table."
    -- GET THE VALUES OF THE SELECTED CELLS
    tell sheet currentsheetindex
    set the current_table to the first table whose selection range is not missing value
    tell the current_table
    set the range_values to the value of every cell of the selection range
    set therange to every cell of the selection range
    set thecol to column of first item of therange
    set therow to row of first item of therange
    end tell
    end tell
    end tell
    end tell
    It gives me a result like
    row "30" of table "table" of sheet "sheet 1" of document "Scheduler.numbers" of application "Numbers"
    but what I need is just "30" so I can use it for my scripts. I can't figure how to convert this to a string or some other useful format.
    Can anyone help? I like Numbers but I always run into little problems like this, something I can't figure how to do, compared with other scriptable programs.

    Search forGetSelParams or better for get_SelParams in the existing threads.
    I posted this handler more than 30 times !
    Yvan KOENIG (VALLAURIS, France) vendredi 18 mars 2011 17:03:05

  • Reading the current frame of an Event Structure

    Is there a way to read the current frame (or state?) of an Event Structure?
    Richard

    johnsold wrote:
    Normally a program would not stay in an event case for long enough for the phrase "current frame" to have much meaning.  What are you trying to do?
    Lynn
    Like tst assumed, it's for edit time use. Some events take a few seconds, and the progress would be nice to watch on the FP like you'd typically do with a state machine, and with dynamic events (as opposed to just user events), it would be nice to see where the structure is going.
    I have tried something with scripting as shown, but it's not much help. There's no property "Current Frame" or similar. Visible Frame (as shown) doesn't do it.
    Richard

  • How to get the current GMT time in java

    Hi,
    How to get the current GMT time in java
    Thanks

    System.getCurrentTimeMillis() or new Date().
    [url http://www.javaworld.com/jw-12-2000/jw-1229-dates.html]Calculating Java dates: Take the time to learn how to create and use dates
    [url http://www.javaalmanac.com/egs/java.text/FormatDate.html]Formatting a Date Using a Custom Format

  • How to compare the current system time with two timing?

    want to get the current system time and compare with the two different timing example startwindow time as 2:00:00AM and endWindowTime as 6:00:00AM. if my current system time falls between these window i have to execute my rest of the code.
    my below code works for fine for JAVA 1.6 version when i do the same code with JAVA 1.4 i am getting different date and time
    String starTime=(String) NightlyvendorStatus[0].getPropertyValue("startTime");
      String endTime=(String) NightlyvendorStatus[0].getPropertyValue("endTime");
      Date windowStarttime = new SimpleDateFormat("HH:mm:ss").parse(starTime);
      Date windowEndtime = new SimpleDateFormat("HH:mm:ss").parse(endTime);
      Date systemdate = new Date();
      SimpleDateFormat parser = new SimpleDateFormat("HH:mm:ss");
      String systemTime=parser.format(systemdate);
      Date currentTime = new SimpleDateFormat("HH:mm:ss").parse(systemTime);
      if (currentTime.after(windowStarttime) && currentTime.before(windowEndtime)){
    --- rest logic here---}
    the output from JAVA 1.4 IS Thu Jan 01 02:00:00 GMT 1970 Thu Jan 01 06:00:00 GMT 1970 Thu Jan 01 03:23:00 GMT 1970
    HOW TO DO this logic..

    Hi,
    You can try converting dates into timestamp and compare just like as comparing two integers variables.
    Regards,
    Anshul

  • How to determine the current update level of the system

    How can we determine the current update level of the system. uname -a shows the release but how to obtain the update level through a program?
    I have this sample program to display the version
    #include <iostream>
    #include <sys/utsname.h>
    #include <dirent.h>
    using namespace std;
    int main()
      struct utsname osinfo;
      // Call uname to get system info, then extract strings.
      uname(&osinfo);
      if (osinfo.machine)  {
        cout<<" Machine : "<<  osinfo.machine;
      if (osinfo.sysname)  {
        cout << "\nOS Name : " << osinfo.sysname;
    if (osinfo.release[0] != '\0')  {
        cout<<"\nRelease : " << osinfo.release;
    }My aim is to check if the Solaris box is 5.10 update 4 or not.
    Edited by: nidhish9 on Nov 27, 2007 5:11 AM

    nidhish9 wrote:
    How can we determine the current update level of the system. uname -a shows the release but how to obtain the update level through a program?
    I have this sample program to display the version
    #include <iostream>
    #include <sys/utsname.h>
    #include <dirent.h>
    using namespace std;
    int main()
    struct utsname osinfo;
    // Call uname to get system info, then extract strings.
    uname(&osinfo);
    if (osinfo.machine)  {
    cout<<" Machine : "<<  osinfo.machine;
    if (osinfo.sysname)  {
    cout << "\nOS Name : " << osinfo.sysname;
    if (osinfo.release[0] != '\0')  {
    cout<<"\nRelease : " << osinfo.release;
    }My aim is to check if the Solaris box is 5.10 update 4 or not.
    Edited by: nidhish9 on Nov 27, 2007 5:11 AMIt's in /etc/release...
    essapd020-u004$ cat /etc/release
                           Solaris 10 8/07 s10s_u4wos_12b SPARC
               Copyright 2007 Sun Microsystems, Inc.  All Rights Reserved.
                            Use is subject to license terms.
                                Assembled 16 August 2007
    essapd020-u004$ It can be processed with some simple commands:
    essapd020-u004$ cat /etc/release | head -1
                           Solaris 10 8/07 s10s_u4wos_12b SPARC
    essapd020-u004$ cat /etc/release | head -1 | cut -f2 -d_ | cut -c1,2
    u4
    essapd020-u004$ Best,

  • How to determine the creation date/time for a file?

    The important operating systems maintain both a creation date/time and last modified date/time for files. But in the File class there is only a lastModified() method. How does one determine the creation date/time for a file?

    As far as i know, there is no way to know creation time, since it is a OS dependant information.

  • Uix frameset - how to get the current frame name?

    I have a frameset with 3 different frames in it. a top, center and bottom.
    There is a menu in the top frame that changes the contents of the center or bottom frame.
    How can I get the value of the frame name for the current frame into a bound value like a httpsession or page?
    for example if I change the center frame to "listadmin.uix" how can I load a bound value with the frames new source?
    Is there a way to pass javascript to a boundvalue? I could get the frames new properties from javascript

    In Jdev 9.0.3 you could do something like this:<frameBorderLayout>
    <start>
       <frame name="sideFrame">
        <boundAttribute name="source">
         <ctrl:pageURL name="sideFramePage">
          <ctrl:properties>
           <ctrl:property key="currentFrame"
                          value="sideFrame"/>
          </
         </
        </
       </
    </
    </then in startFramePage.uix you can access the current frame name by doing:<styledText data:text="currentFrame@ctrl:page"/>

  • How can I make the current date/time be sent when emailing as XML?

    I'm creating a form for a customer to use for submitting print jobs. This customer will be emailing the XML form data, which will in turn be converted into a production order. I'd like to make the PDF form capture my customer's system time, so that I know when they filled out the form. I COULD just leave that up up the customer and use required current date and time fields, but that provides the ability for the customer to falsify that information.
    Is there any good way to capture the current date/time in the XML data, so that the customer doesn't need to nor has the ability to?
    Any suggestions would be great!

    You can use the following methods getHours(),getMinutes(), and getSeconds() from the date object to obtain the values for hour,minute,and second.
    Click here to see an example:
    http://66.34.186.88/LiveCycleSamples/.3bbc2f4b.pdf

  • How cost;ly it is to get the current system time

    I am using this call "System.currentTimeMillis()" to get the current system time. I need to now how costly it is to get the current system time.

    Why don't you time it -:) Run it 10000 times and print the first and last result. The difference is the time it took.

  • Determining the current viewId

    Hi, I need to determine the current view id, therefore I am using the following code:
    /* adf-settings.xml */
    <adf-settings xmlns="http://xmlns.oracle.com/adf/settings">
      <adfc-controller-config xmlns="http://xmlns.oracle.com/adf/controller/config">
        <lifecycle>
          <phase-listener>
            <listener-id>myPagePhaseListener</listener-id>
            <class>obasi.common.domain.myPagePhaseListener</class>
          </phase-listener>
        </lifecycle>
      </adfc-controller-config>
    </adf-settings>
    /* myPagePhaseListener */
        public void beforePhase(PagePhaseEvent pagePhaseEvent) {           
            try {           
                if (pagePhaseEvent.getPhaseId() == Lifecycle.PREPARE_MODEL_ID) {
                    for (Object child:FacesContext.getCurrentInstance().getViewRoot().getChildren())
                        if (child instanceof RichDocument)
                            System.out.println(FacesContext.getCurrentInstance().getViewRoot().getViewId());
            } catch (Exception ex)
                // ignore
        }But this doesn't seem to work accurately. Some viewId's are only "detected" after leaving a page...
    I noticed that this happens when the URL inside my browser also remains pointing to the previous page.
    Is there a way to solve this?
    Thanks in advance,
    Charles.

    Hi,
    Thanks for helping me out, Simon.
    I am not sure about what changes should be made to my web.xml in order to not have the resources as view id's.
    So here goes my web.xml - in the hope that you would be so kind to point me out where the problem lies.
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5" xmlns="http://java.sun.com/xml/ns/javaee">
        <description>Empty web.xml file for Web Application</description>
        <context-param>
            <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
            <param-value>client</param-value>
        </context-param>
        <context-param>
            <description>If this parameter is true, there will be an automatic check of the modification date of your JSPs, and saved state will be discarded when JSP's change. It will also automatically check if your skinning css files have changed without you having to restart the server. This makes development easier, but adds overhead. For this reason this parameter should be set to false when your application is deployed.</description>
            <param-name>org.apache.myfaces.trinidad.CHECK_FILE_MODIFICATION</param-name>
            <param-value>false</param-value>
        </context-param>
        <context-param>
            <param-name>RedirectToLogin</param-name>
            <param-value>login</param-value>
        </context-param>
        <context-param>
            <description>Whether the 'Generated by...' comment at the bottom of ADF Faces HTML pages should contain version number information.</description>
            <param-name>oracle.adf.view.rich.versionString.HIDDEN</param-name>
            <param-value>false</param-value>
        </context-param>
        <filter>
            <filter-name>JpsFilter</filter-name>
            <filter-class>oracle.security.jps.ee.http.JpsFilter</filter-class>
        </filter>
        <filter>
            <filter-name>trinidad</filter-name>
            <filter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilter</filter-class>
        </filter>
        <filter>
            <filter-name>adfBindings</filter-name>
    <!--
            <filter-class>oracle.adf.model.servlet.ADFBindingFilter</filter-class>
    -->
            <filter-class>obasi.instel.customlogin.DynamicJDBCBindingFilter</filter-class>
        </filter>
        <filter-mapping>
            <filter-name>JpsFilter</filter-name>
            <servlet-name>Faces Servlet</servlet-name>
            <dispatcher>FORWARD</dispatcher>
            <dispatcher>REQUEST</dispatcher>
            <dispatcher>INCLUDE</dispatcher>
        </filter-mapping>
        <filter-mapping>
            <filter-name>trinidad</filter-name>
            <servlet-name>Faces Servlet</servlet-name>
            <dispatcher>FORWARD</dispatcher>
            <dispatcher>REQUEST</dispatcher>
        </filter-mapping>
        <filter-mapping>
            <filter-name>adfBindings</filter-name>
            <servlet-name>Faces Servlet</servlet-name>
            <dispatcher>FORWARD</dispatcher>
            <dispatcher>REQUEST</dispatcher>
        </filter-mapping>
        <servlet>
            <servlet-name>Faces Servlet</servlet-name>
            <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
            <load-on-startup>1</load-on-startup>
        </servlet>
        <servlet>
            <servlet-name>resources</servlet-name>
            <servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet</servlet-class>
        </servlet>
        <servlet-mapping>
            <servlet-name>Faces Servlet</servlet-name>
            <url-pattern>/faces/*</url-pattern>
        </servlet-mapping>
        <servlet-mapping>
            <servlet-name>resources</servlet-name>
            <url-pattern>/adf/*</url-pattern>
        </servlet-mapping>
        <servlet-mapping>
            <servlet-name>resources</servlet-name>
            <url-pattern>/afr/*</url-pattern>
        </servlet-mapping>
        <session-config>
            <session-timeout>35</session-timeout>
        </session-config>
        <mime-mapping>
            <extension>html</extension>
            <mime-type>text/html</mime-type>
        </mime-mapping>
        <mime-mapping>
            <extension>txt</extension>
            <mime-type>text/plain</mime-type>
        </mime-mapping>
    </web-app>Please note that I am using Steve Muench's DynamicJDBCCredentials (http://radio.weblogs.com/0118231/stories/2004/09/23/notYetDocumentedAdfSampleApplications.html #129)

  • How to determine the kernel compilation time stamp ?

    Hi, all
    sorry of this is a miss post.
    I'm trying to find out the date (time stamp) using the
    "uname -a" command  , but I'm not sure this is the correct way , because the
    the output of the command returns the kernel release date and I'm not sure this is the
    correct time
    Any suggestions ?
    Victor

    I'm referring to the date the kernel was actually compiled .
    My question was if the output of the command "uname -a" contains the kernel compilation date, because
    the "man uname" and "info uname" says that the output contains kernel  release info.
    Or is there another way of determining the actual date(time) when the kernel was compiled.

  • Unable to allocate enough memory to render the current frame

    I am a bit of a novice at AE, just starting to learn. I have googled this, searched these forums and tried all I can think of. No luck. SO I will ask here. 
    I bought this AE file  http://videohive.net/item/-earth-zoom-customize/6451983 
    Here is the error message I get when trying to render
    After Effects error: Unable to allocate enough memory to render the current frame (18172 x 18172 @ 8 bpc). Either decrease the memory requirements for the rendering of this frame, or install more RAM. (12805). For more information, see adobe.com/learn_ae_mem (7 :: 66)
    I even tried to render the project without making any changes. No luck
    My info:
    Macbook pro 15” Mid 2012
    OSX 10.9.2
    Processor 2.6 ghz intel core i7
    Memory: 8 GB 1600 MHz DDR3
    Graphics  NVIDIA GeForce GT 650M 1024 MB
    Running AE CC 12.2.1.5
    First thought, Is my laptop inadequate for this type of work? 
    When it says - (18172 x 18172 @ 8 bpc) is that the resolution it's trying to output? The project is 6 seconds long and 1920x1080 resolution.
    I can render it at half resolution, but not at the 1080 res.
    Thanks for your help.

    Purged cache, set it to purge every 5 frames ... no luck. Purge every frame ... no luck.
    I tried disabling different parts of the clip to render. No luck until I disabled the inner shadow of the globe, and it seems to work.
    What should your purge setting be normally for this ap? I think it was set to "0". SHould I move it back to 0?
    Thanks for your help.

  • CALCULATE 6 MINS FROM THE CURRENT SYSTEM TIME....................?

    Hi
    I want to subtract few mins (say 5 min , 10 min ,15 mins , max to 55 mins) from the current system time,
    ex-current time 00:40:00
    Subtract 5 mins(means 5 mins backward)
    Final time 00:35:00
    ex-current time 01:20:00
    Subtract 30 mins(means 30 mins backward)
    Final time 00:50:00
    Pls help me with this with a appropriate logic or FM..
    Thanks a lot in advance
    Basic Date and Time questions are not allowed. They have been answered umpteen times. Please search for them.
    Edited by: kishan P on Sep 1, 2010 12:05 PM
    Edited by: Matt on Sep 1, 2010 9:01 AM - And please do not post in ALL CAPITALS

    May be you can do something like this!
    data: l_time like sy-uzeit.
    data: l_time1 like sy-uzeit value '06'. "6 hrs to be deducted from system time
    move sy-uzeit to l_time. "this is system time
    "write l_time.
    "write:/ l_time1.
    SUBTRACT l_time1 from l_time.
    write:/ l_time. "This is 6 hrs behind system time
    Rajasekhar

Maybe you are looking for

  • File-XI-File Scenario

    Hi there Should SXMB_MONI pick up a file to file scenario? I created a very simple setup where a text file gets picked up and droped in the same format. The file get picked up but then it stops. The communication channel monitor does not give any err

  • My itunes account doesnt recognise my phone when i plug it in . how do i get the phone icon to appear again in the right hand corner?

    Help

  • Audio Dropouts help!?

    Hi forum, Hope someone can help me out with this as I'm working on a big project with a deadline...  Strangely ceratin tracks are dropping out here and there for no apparent reason.  Unfortunately, I can't muck about with the buffer settings as East

  • Dropdown List Web dynpro Abap

    Hi All I am new to adobe forms.  I am having a problem with populating drop down list box on an adobe interactive form.  I have gone through this forum and I have tried a number of different things but nothing seems to work. When I run my web dynpro

  • Migration to New General Ledger Accounting

    < MODERATOR:  All points have been UNASSIGNED and the message locked.  Please do not share email addresses, documents, or links to copyrighted or company confidential information on these forums.  If you have some information, please consider posting