S M Abrar Jahin
S M Abrar Jahin

Reputation: 14598

AxWMPLib - Played video playing state get flipped after exiting from full screen

I am trying to create a video player using AxWMPLib.

But I am getting a problem when I am exiting full screen from media player using double click on media player.

If user double clicks on windows media player in full screen:

  1. If then the video was playing, it becomes paused.
  2. If the video was paused, it becomes playing.

In minimum screen mode (not full screen).

I don't use any advanced options in it, it is a simple media player.

My code is like this-

using System;
using System.Windows.Forms;
using WMPLib;

namespace VideoPlayer
{
    public partial class VideoPlayer : Form
    {
        public VideoPlayer()
        {
            InitializeComponent();
            player_VideoPlayer.uiMode = "none";
            player_VideoPlayer.URL= "C:\\try.mp4";
            player_VideoPlayer.Ctlcontrols.play();
        }
    }
}

Upvotes: 1

Views: 95

Answers (0)

Related Questions