|
#1
|
||||
|
||||
|
PROBLEM: Invalid State Error with the Media Player Object
PROBLEM: Invalid State Error with the Media Player ObjectDocument ID: IR04049The information in this article applies to:
SUMMARYThis article explains the problem where your application will generate invalid state errors when you use a MediaPlayerObject.Load action followed by a MediaPlayerObject.Play action on a Media Player Object. DISCUSSIONIf you have a Media Player Object which is set to Automatically Start Playing Media, and you proceed to perform a MediaPlayerObject.Load action followed by a MediaPlayerObject.Play action on it, AutoPlay Media Studio 4.0 will generate an invalid state error (see the following code): MediaPlayerObject[MediaPlayer1].Load("%SrcDir%\movie.mpg") The above actions will produce the following error: Basically, when you load a file into a Media Player Object which is set to Automatically Start Playing Media, your video will automatically play. There is no need for the MediaPlayerObject.Play action. There are two solutions to this problem. Either:
KEYWORDS: AutoPlay Media Studio 4.0, Bug, Invalid, State, Play, Load, Media, Player, Object Last reviewed: October 31, 2003 Copyright © 2003 Indigo Rose Corporation. All rights reserved. |
| Thread Tools | |
| Display Modes | |
|
|






Linear Mode
