dcsimg
Results 1 to 5 of 5

Thread: Seeking Media Player

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2016
    Posts
    101

    Seeking Media Player

    Hi Dear friends
    I want to make a time Seekbar with a "Slider" or "HScroll" for my sound player. How can I code it. I used "Windowsmediaplayer1" but I want to hide its control and make my own controls. I want to make this look at picture below:

    Name:  mns.png
Views: 361
Size:  7.1 KB

  2. #2
    PowerPoster
    Join Date
    Jun 2013
    Posts
    4,317

    Re: Seeking Media Player

    It'd be relatively easy with vbRichClient5 - but before I put an example together,
    you'd have to tell me, whether you want to introduce this dependency (your App
    would become about 2.5MB larger, when you ship it).

    Olaf

  3. #3
    Sinecure devotee
    Join Date
    Aug 2013
    Location
    Southern Tier NY
    Posts
    5,269

    Re: Seeking Media Player

    That is a pretty wide open request.
    What part are you needing help with...
    Hiding Windowsmediaplayer1's controls?
    Controlling Windowsmediaplayer1 position with your control?
    Getting state information from the player, e.g. Media Duration, Current Position, etc...
    Making the Control GUI look like your image?

    One thing I notice about the image you provided is that the "Slider" looks like it indicates two things, i.e. the current position of the playback, and a "downloaded" progress indication.
    I've only played local content so have never had to consider a media download progress indication. I don't even know if that is part of the Windows MediaPlayer state data, but perhaps it is.

    I believe you'll need to be more specific about what you need help with.
    If you want to know how to code the whole project then I think that is beyond the scope of the help the forum is expected to supply.
    Last edited by passel; Feb 18th, 2017 at 06:36 PM.

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Aug 2016
    Posts
    101

    Re: Seeking Media Player

    I need this "HScroll1" to move while I push "Play Button"
    1-Is My Mediaplayer Controls
    2-Is HScroll1, which i need to code !
    something like this but it does not work in my project.
    ----------------------------
    HScroll1.Value = WindowsMediaPlayer1.Controls.currentPosition

    And

    HScroll1.Max = WindowsMediaPlayer1.currentMedia.duration
    ----------------------------------------------------------------
    I don't know how and where can I put this lines of code, These are ture (correct) Or Not
    --------------------------------------------------------

    Name:  mnfd.GIF
Views: 287
Size:  28.7 KB

  5. #5
    Frenzied Member
    Join Date
    Jan 2010
    Posts
    1,103

    Re: Seeking Media Player

    You can use MCI or directshow. PSC has lots of samples.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width