Indigo Rose Software

Go Back   Indigo Rose Software Forums > Old Versions > AutoPlay Media Studio 4.0 > AutoPlay Media Studio 4.0 Examples

 
 
Thread Tools Display Modes
  #1  
Old 10-31-2003
Desmond's Avatar
Desmond Desmond is offline
Indigo Rose Staff Member
 
Join Date: Jul 2003
Posts: 628
PROBLEM: Invalid State Error with the Media Player Object

PROBLEM: Invalid State Error with the Media Player Object

PROBLEM: Invalid State Error with the Media Player Object

Document ID: IR04049
The information in this article applies to:
  • AutoPlay Media Studio 4.0

SUMMARY

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

DISCUSSION

If 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")
MediaPlayerObject[MediaPlayer1].Play

The above actions will produce the following error:
"The Media Player's state was incompatible with the action."

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:

  1. Remove the MediaPlayerObject.Play action.

    OR

  2. Keep the MediaPlayerObject.Play action, and ensure that your Media Player Object is not set to Automatically Start Playing Media.

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On



All times are GMT -6. The time now is 01:30 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software