Link to home
Start Free TrialLog in
Avatar of tuchfeld
tuchfeld

asked on

How to make Windows Media Player Control display still images permanently in a C#.NET

Hi, I use AxWMPLib.AxWindowsMediaPlayer to view google drive videos
e.g.
axWindowsMediaPlayer1.URL = "https://drive.google.com/uc?id=1Wr5Nsd_ulD6YgUBS7oM85lSVVNmDYUDL&export=download";

Open in new window

, and it works fine.
But once the link is an Image, the MediaPlayer displays it for few seconds and then it dissapears.
How can I keep it displayed?
p.s. this question was asked here, but the solution was not actually found..
ASKER CERTIFIED SOLUTION
Avatar of Zvonko
Zvonko
Flag of North Macedonia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tuchfeld
tuchfeld

ASKER

Nice, Thanks Zvonko,
p.s. also this way is appropriate:

if (e.newState == (int)WMPLib.WMPPlayState.wmppsPlaying)
{
    if (is_image)
    {
        axWindowsMediaPlayer1.Ctlcontrols.pause();
    }
}

Open in new window

Fine.

So you can close this Question?


Thanks Zvonko for the assistance.

You are welcome  :  )