Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6706557
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:32:04+00:00 2026-05-26T07:32:04+00:00

I have a windows media player COM in my Windows Form project that plays

  • 0

I have a windows media player COM in my Windows Form project that plays and opens videos admirably. However, I would like to be able to grab the first frame of the loaded video so my program users can preview the video (and, ideally, recognize one video from another).

How can I update the frame displayed by the windows media player object?

I have tried using the following code at the end of my openFileDialog event response:

private void openFileDialog1_FileOk(object sender, CancelEventArgs e)
{
    Text = openFileDialog1.SafeFileName + " - MPlayer 2.0";
    //mediaPlayer1.openPlayer(openFileDialog1.FileName);
    mediaPlayer1.URL = openFileDialog1.FileName;
    //hopefully, this will load the first frame.
    mediaPlayer1.Ctlcontrols.play();
    mediaPlayer1.Ctlcontrols.pause();           
}

However, when I run this, the pause command gets ignored (Auto-play for video loading is turned off, so the video won’t start playing without calling .play(), above). If I had to guess, I’d say that this is because of some threading operation that calls play, moves on to call pause, calls pause, and then, finally, the play resolves, and the video starts – but because the .pause resolved before the .play, the net effect is the .pause is ultimately unheeded.

Firstly, is there a way other than .play(); .pause(); to snag a preview image of the video for the AxWindowsMediaPlayer object? If not, how can I make sure that my .pause() doesn’t get ignored?

(I know that .play(); .pause(); works in the general case, because I tested with a separate button that invoked those two methods after the video finished loading, and it worked as expected)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T07:32:04+00:00Added an answer on May 26, 2026 at 7:32 am

    While the Windows Media Player Com might not officially support a feature like this, its quite easy to ‘fake’ this. If you use a CtlControls2, you have access to the built-in “step(1)” function, which proceeds exactly one frame.

    I’ve discovered that if you call step(1) after calling pause(), searching on the trackbar will also update the video.

    It’s not pretty, but it works!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have written a plugin for Windows 7 Media Center, and I would like
I have added the Windows Media Player com control into my toolbox and then
I am using Windows Media Player control in a winforms app, I would like
i have windows media player in my application.i want to allow only the supported
I have HTML page where windows media player is embedded. It works very well
I'm using Windows Media Player in a web page. I have version 11 installed
I have a C# app, and I'm looking at using the Windows Media Player
I have a Windows Media Player with my application. And when I debug, it
I working on a distributed mediaplayer that uses the windows media player component. Now
Have you ever looked at the burn option in windows media player? The tabs

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.