CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 2 of 2 FirstFirst 12
Results 16 to 23 of 23
  1. #16
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,430

    Re: IS it possible to set Media Player control like this?

    Quote Originally Posted by OneEyeMan View Post
    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

  2. #17
    Join Date
    Aug 2002
    Posts
    757

    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.

  3. #18
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,633

    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

  4. #19
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,430

    Re: IS it possible to set Media Player control like this?

    Quote Originally Posted by Igor Vartanov View Post
    The article says:
    Good catch, Igor!
    And sorry, I missed this first paragraph of the Remark section!

    BTW, Windows Media Player 11 SDK IWMPPlayer:ut_uiMode doesn't mention "compact" as possible word either!
    Victor Nijegorodov

  5. #20
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,633

    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

  6. #21
    Join Date
    Aug 2002
    Posts
    757

    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;

  7. #22
    Join Date
    Aug 2002
    Posts
    757

    Re: IS it possible to set Media Player control like this?

    Just not to be confused, I'm working with C++.

    Thank you.

  8. #23
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,633

    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

Page 2 of 2 FirstFirst 12

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured