Well, that means that the value returned byis not a valid parameter for IWMPPlayer::put_uiMode method.Code:wxBasicString(wxT("compact")).Get()
Did you try some other parameters?
Printable View
For the reference here is the link to the MS Q&A: http://answers.microsoft.com/en-us/w...1-2e680a4684bb
Thank you.
The article says:
Quote:
Remarks
This method specifies the appearance of the embedded Windows Media Player. When the BSTR specified in put_uiMode is set to "none", "mini", or "full", a window is present for the display of video clips and audio visualizations. This window can be hidden in mini or full mode by setting the height attribute of the OBJECT tag to 40, which is measured from the bottom, and leaves the controls portion of the user interface visible. If no embedded interface is desired, set both the width and height attributes to zero.
Good catch, Igor! :thumb:
And sorry, I missed this first paragraph of the Remark section! :blush:
BTW, Windows Media Player 11 SDK IWMPPlayer::put_uiMode doesn't mention "compact" as possible word either!
No doubt, from the very beginning that "compact" mode was something artificial and not implemented natively by player control itself. Besides, in WMP application it might be a sort of custom UI mode alright, and therefore, having nothing comparable in embedded control.
Hi, guys,
@Igor,
Please refer to the beginning of this thread - the very first message contains the link which talks about compact mode. But it talk about it from the player user point of view. Maybe this is the catch?
Also 1 more questions:
The OBJECT the quote is talking about is IWMPPlayer interface, right? So in my case the code will look like:
Code:m_pWMPPlayer->set_uiMode( "full" );
m_pWMPPlayer->height = 40;
Just not to be confused, I'm working with C++.
Thank you.
The mentioned compact mode exists in WMP application and has nothing to do with UI modes of the embeddable control explained in the article. Whatever language you use, you are to control the video rendering area visibility by the control's height.