INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Media Player Options BCB6

Media Player Options BCB6

(OP)
Hi,

This is question about MediaPlayer component from System tab in BorlandBuilder 6.0 for C++.

I am curious is there any member function of MediaPlayer that allows us to check is MediaPlayer playing something or not? For example by returning a bool variable as true for playing, and false for not playing.

Thank you!

RE: Media Player Options BCB6

MrEARTHSHAcKER,

    Did you get your question answered?

James P. Cottingham
I'm number 1,229!
I'm number 1,229!

RE: Media Player Options BCB6

(OP)
Hi 2ffat, thanks for asking!

I couldn't find the answer so I used another component - WindowsMediaPlayer, ActiveX component.

Nevertheless, there ain't such function for that component too, but there is an alternative!

You have "playState" member variable, and here you got list of its possible values: Link

Then you can use PlayStateChange event ( I'm not sure if name is 100% correct) to put switch which will check if playState has reached value of 8 ( just ended playing media), afterwards you can decide what will you do with WMPlayer.

( 2ffat, by the way, I have successfully solved my problem with iterating through audio files too!)


Greets! I hope someone finds my answer useful!

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close