Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

TMediaplayer - notify message bug?

133 views
Skip to first unread message

Sanne Schaap

unread,
Mar 1, 2003, 8:42:06 PM3/1/03
to
Does anyone know why the Notify action of the Tmediaplayer only gives the
message "mpPlaying"?

When you play a file, a message called "mpPlaying" is being send. When you
press stop or the file ends, I get the same message. And I need "mpStopped"
to know WHEN the file playing ends!

Is this a bug? Using D7.

Regards Sheep


jacob muntner

unread,
Mar 3, 2003, 11:31:31 AM3/3/03
to
hi,
i noticed that behaviour too, a while ago, and still confused if
it's a bug, or a timing issue. i read an old thread somewhere that
eventually the mode changes(?). anyway, i bypassed the problem
by checking the Position too:
procedure TForm1.MPNotify(sender: TObject);
<snip>
begin
if ((MP.Mode=mpPlaying) or Resumed) and //Resumed->2nd Pause
(MP.Position >= MP.Length) then
// File Ended- do your stuff
</snip>
end.
----------
jacob

"Sanne Schaap" <s...@sdf.sad> wrote in message
news:3e61...@newsgroups.borland.com...

0 new messages