Determining if a player is showing an image or movie.

Monte Goulding monte at sweattechnologies.com
Sun Aug 17 22:00:00 EDT 2003


>
> Well,
>
> You could look at the fileName of the player and check the extension
> (assuming it has one - I try to always put one in). The other way is to
> check the duration of the player. It seems that images always have a
> duration of 40 (or so it looks like from my limited vantage point).
>

Thanks Ken

I have an image in a player here with a duration of 120 so I guess that's
out. It would be good if there was a read only property of a player called
fileType or something. I'm sure the info could be obtained via the QuickTime
API.

Cheers

Monte




More information about the use-livecode mailing list