Werbung: SecurityConsole.de verwaltet Ihre Computer mit Security Essentails aus der Cloud!
30 Tage kostenfrei testen und 20% Rabatt für Ihre Bestellung mit Promocode: WBF2685582
(Promocode gültig bis 31.12.2011)

Group:  English: Entertainment » microsoft.public.windowsmedia.sdk
Thread: Setting AxWindowsMediaPlayer.windowlessVideo to true generates an exception...

HTVi
TV Discussion Newsgroups

Setting AxWindowsMediaPlayer.windowlessVideo to true generates an exception...
jcak77 <julien.cayzac[ at ]gmail.com> 12/18/2008 1:18:04 AM
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";
// I gave the control a parent before setting the
// property, but it doesn't change anything...
Controls.Add(mp);
// I added this, just in case, but it doesn't change anything....
mp.ParentContainer = this;
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.

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net
Suche nach Orten, Städten, Postleitzahlen, Vorwahlen, Kfz-Kennzeichen