Results 1 to 4 of 4

Thread: AxWinsowsMediaPlayer mouse and keyboard input problem

  1. #1
    jcardana's Avatar
    jcardana is offline VB.NET Forum Newbie
    .NET Framework
    .NET 4.5
    Join Date
    Oct 2015
    Location
    RR, NM
    Posts
    18
    Reputation
    18

    AxWinsowsMediaPlayer mouse and keyboard input problem

    I'm working on a video portfolio to demonstrate my video editing abilities.

    I have the program starting with frmBlank and opening wmpBlank with fullscreen playing a little production title. Keyboard events don't get trapped, but mouse events do, so I can get the video to terminate and display frmMain which, sure, that's what I want.

    But, from frmMain, when I use wmpMain with fullscreen, mouse events don't get trapped but keyboard events do.

    I'm still switching from VB6 to .net so there are a lot of settings still new to me.

    Why do the two players work reversed from each other while in fullscreen?

    VBNet-WMP_Properties.jpg
    Fig1. Properties of wmpMain & wmpBlank

    Thank you for your time,
    Joe
    20yr VB6 veteran.. switching to .NET

    Microsoft Visual Studio Community 2015 v14.0.25431.01 Update 3
    Microsoft .NET Framework v4.6.01590
    View Installed products HERE
    View DX Diagnostics HERE

  2. #2
    JohnH's Avatar
    JohnH is offline VB.NET Forum Moderator
    .NET Framework
    .NET 4.5
    Join Date
    Dec 2005
    Location
    Norway
    Posts
    15,069
    Reputation
    2801
    AxWindowsMediaPlayer.uiMode property (Windows)
    During full-screen playback, Windows Media Player hides the mouse cursor when enableContextMenu equals false and uiMode equals "none".
    Maybe because of that?

    I think also WMP uses DirectShow, this article indicates differences in keyboard/mouse events for windowlessVideo that is it possible WMP handles differently also:
    Using Windowless Mode (Windows)

    These are settings that you have different, so maybe experiment with those and see if you can find more information if you find these to be the cause.

  3. #3
    jcardana's Avatar
    jcardana is offline VB.NET Forum Newbie
    .NET Framework
    .NET 4.5
    Join Date
    Oct 2015
    Location
    RR, NM
    Posts
    18
    Reputation
    18
    Quote Originally Posted by JohnH View Post
    AxWindowsMediaPlayer.uiMode property (Windows)
    During full-screen playback, Windows Media Player hides the mouse cursor when enableContextMenu equals false and uiMode equals "none".
    Maybe because of that?
    I changed the settings on wmpBlank so that
    enableContextMenu=False
    windowlessVideo=False
    As stated, the mouse does disappear, but the WMP still traps mouse events but not keyboard events. I'll keep tinkering.
    20yr VB6 veteran.. switching to .NET

    Microsoft Visual Studio Community 2015 v14.0.25431.01 Update 3
    Microsoft .NET Framework v4.6.01590
    View Installed products HERE
    View DX Diagnostics HERE

  4. #4
    jcardana's Avatar
    jcardana is offline VB.NET Forum Newbie
    .NET Framework
    .NET 4.5
    Join Date
    Oct 2015
    Location
    RR, NM
    Posts
    18
    Reputation
    18
    So on my main form, in fullscreen, the media player will not respond to any mouse clicks. The play/pause button, stop button... nothing works. This is unacceptable. I can only conclude I'm doing something wrong.

    Is there a better thread to put this?
    20yr VB6 veteran.. switching to .NET

    Microsoft Visual Studio Community 2015 v14.0.25431.01 Update 3
    Microsoft .NET Framework v4.6.01590
    View Installed products HERE
    View DX Diagnostics HERE

Bookmarks

Posting Permissions

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