|
-
August 2nd, 2012, 12:25 PM
#16
Re: IS it possible to set Media Player control like this?
 Originally Posted by OneEyeMan
If I uncomment the first line it returns E_INVALIDARG.
Well, that means that the value returned by
Code:
wxBasicString(wxT("compact")).Get()
is not a valid parameter for IWMPPlayer: ut_uiMode method.
Did you try some other parameters?
Victor Nijegorodov
-
August 2nd, 2012, 04:56 PM
#17
Re: IS it possible to set Media Player control like this?
For the reference here is the link to the MS Q&A: http://answers.microsoft.com/en-us/w...1-2e680a4684bb
Thank you.
-
August 3rd, 2012, 12:42 AM
#18
Re: IS it possible to set Media Player control like this?
The article says:
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.
Best regards,
Igor
-
August 3rd, 2012, 01:15 AM
#19
Re: IS it possible to set Media Player control like this?
Victor Nijegorodov
-
August 3rd, 2012, 01:23 AM
#20
Re: IS it possible to set Media Player control like this?
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.
Best regards,
Igor
-
August 3rd, 2012, 01:44 AM
#21
Re: IS it possible to set Media Player control like this?
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;
-
August 3rd, 2012, 01:47 AM
#22
Re: IS it possible to set Media Player control like this?
Just not to be confused, I'm working with C++.
Thank you.
-
August 3rd, 2012, 05:17 AM
#23
Re: IS it possible to set Media Player control like this?
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.
Best regards,
Igor
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|