Setting AxWindowsMediaPlayer.windowlessVideo to true generate anexception...

  • Thread starter Thread starter jcak77
  • Start date Start date
J

jcak77

In my numerous attempts to get some video playback capabilities in my
CF3.5/WM6.1 application, I finally managed to get something working by
using the "Hosting a native windows control" sample from MS.

However, when I set the windowlessVideo property of my
AxWindowsMediaPlayer control to true, I get an ArgumentException.

mp = new AxWindowsMediaPlayer();
mp.uiMode="none";
Controls.Add(mp); // I gave the control a parent before setting the
property, but it doesn't change anything...
mp.ParentContainer = this; // I added this, just in case, but it
doesn't change anything....
mp.windowslessVideo=true; // throws ArgumentException :-(

Is there a workaround to this? The AxHost class, from which
AxWindowsMediaPlayer derives, has several flags related to this, like
fOwnWindow, fFakedWindow, ... but I can't get anything to work.
Thank you,
Julien.
 
Back
Top