Retired Document
Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
QTStreamMsg.h
////////// |
// |
// File: QTStreamMsg.h |
// |
// Contains: Sample code for intercepting and issuing messages to the streaming controller bar. |
// |
// Written by: Tim Monroe |
// |
// Copyright: © 1999 by Apple Computer, Inc., all rights reserved. |
// |
// Change History (most recent first): |
// |
// <1> 06/11/99 rtm first file |
// |
////////// |
#ifndef __MOVIES__ |
#include <Movies.h> |
#endif |
#include <stdlib.h> |
#include <string.h> |
////////// |
// |
// constants |
// |
////////// |
#define MESSAGE_ARRAY { \ |
"Establishing connection", \ |
"Talking to server", \ |
"Filling buffer" \ |
} |
#define kConnectingMsgIndex 0 |
#define kNegotiatingMsgIndex 1 |
#define kBufferingMsgIndex 2 |
#define kMaxMessageSize 256 // largest streaming message we expect to receive |
////////// |
// |
// function prototypes |
// |
////////// |
void QTStreamMsg_IssueMessage (MovieController theMC, char *theMessage); |
PASCAL_RTN Boolean QTStreamMsg_ActionFilterProc (MovieController theMC, short theAction, void *theParams, long theRefCon); |
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-01-14