Apple Developer Connection
Member Login Log In | Not a Member? Contact ADC

< Previous PageNext Page > Hide TOC

Movie Controller Actions

mcActionDoScript allows a movie to send requests to execute scripts of various sorts to a host application. The parameter is of type QTDoScriptPtr.

struct QTDoScriptRecord {
        long scriptTypeFlags;
        char *command;
        char *arguments;
};
typedef QTDoScriptRecord *QTDoScriptPtr;

These are the constants currently defined for the scriptTypeFlags field:

enum {
        kScriptIsUnknownType = 1L << 0
        kScriptIsJavaScript = 1L << 1,
        kScriptIsLingoEvent = 1L << 2,
        kScriptIsVBEvent = 1L << 3,
        kScriptIsProjectorCommand = 1L << 4
};

For more information, see the explanation above of the new wired action kActionDoScript.

mcActionRestartAtTime

This allows a movie to be restarted at a particular time and rate.

The parameter is a QTRestartAtTimePtr.

struct QTRestartAtTimeRecord {
    TimeValue       startTime;  /* time scale is the movie timescale*/
    Fixed           rate;       /* if rate is 0, the movie's current
                                rate is maintained*/
};
typedef struct QTRestartAtTimeRecord QTRestartAtTimeRecord;
typedef QTRestartAtTimeRecord *QTRestartAtTimePtr;

For more information, see the explanation above of the new wired action kActionMovieRestartAtTime.



< Previous PageNext Page > Hide TOC


Last updated: 2002-10-01




Did this document help you?
Yes: Tell us what works for you.

It’s good, but: Report typos, inaccuracies, and so forth.

It wasn’t helpful: Tell us what would have helped.
Get information on Apple products.
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Copyright © 2007 Apple Inc.
All rights reserved. | Terms of use | Privacy Notice