Set the WMR9 ExlusiveMode from plugin (1 Viewer)

NoFear23m

MP Donator
  • Premium Supporter
  • December 11, 2008
    518
    146
    Home Country
    Austria Austria
    Hy @all devs.

    Sorry for my bad english but my mainlanguage is german.

    I have made a new plugin to cut videos over VideoRedo.
    Here: https://forum.team-mediaportal.com/...edo-cut-your-recordings-frame-accurate-90053/
    and here in german: https://forum.team-mediaportal.com/plugins-erweiterungen-178/neues-plugin-myvideoredo-89995/

    The problem is, i must render my own Controls to show the cuts and the Thumbnails of the video.
    But XP User have the problem that my WinForm Controls flicker if the "Use ExclusiveMode"-option in the MP Config ist set to "True"

    I have try to set this option to "false" on Pluginstart and on PageDestroy i have to set it back to "true", but only with edit the Config and save the Cache it will not work. If i set the Exclusivemode to "false" ("no" in the MediaPortal.xml) the mode is still on until i restart MP.

    Here a log from my Plugin (a have Translate the log because my plugin logging in german):

    I SET THE EXCLUSIVE MODE TO 'FALSE"
    Code:
    2010-12-29 16:26:05.328125 [Info.][MPMain(1)]: [MyVideoReDo] :: Set the EVR ExclusiveMode to False
    2010-12-29 16:26:05.328125 [Debug][MPMain(1)]: [MyVideoReDo] :: Save Configstring in Key 'exclusivemode' with value 'no'...
    2010-12-29 16:26:05.328125 [Info.][MPMain(1)]: [MyVideoReDo] :: Get the EVR ExclusiveMode from Config ab...
    2010-12-29 16:26:05.328125 [Debug][MPMain(1)]: [MyVideoReDo] :: Return:no

    But it does not work.
    Can anyone help me to fix my problem or is there anywhere a dokumentation how i can make my own MP Control?
    perhaps is there a way to make Winform Controls to MP Controls.

    Many thanks in advance:D
    Sascha
     

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    Exclusive mode change requires DirectX device to be reseted - this basicly requires whole MP to be restarted (unless there would be bigger code changes).

    Is there no way you could use the MP GUI controls for rendering the data?
     

    NoFear23m

    MP Donator
  • Premium Supporter
  • December 11, 2008
    518
    146
    Home Country
    Austria Austria
    • Thread starter
    • Moderator
    • #3
    AW: Set the WMR9 ExlusiveMode from plugin

    Many thanks for your answere.

    No, i cant use MP Controls. If i use a lot of image-controls i have not this performance that i need.

    Is there a way to make a new GUIcontrol??
    Or a other way to clear the flickerproblem with WinForm-Controls?

    Many thank again.
    Sascha
     

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    Re: AW: Set the WMR9 ExlusiveMode from plugin

    No, i cant use MP Controls. If i use a lot of image-controls i have not this performance that i need.

    Is there a way to make a new GUIcontrol??

    I assume it should be possible to derive own GUIControl and then at least you should be able to draw a directx texture inside the skin engine. It should give the required speed you need (that is how the video is rendered for example).

    Or a other way to clear the flickerproblem with WinForm-Controls?

    No, flickering issue is OS level issue. Basicly you cannot draw anything on top of the exclusive mode DirectX application since it owns the screen. Flickering is the result if you try to draw.
     

    NoFear23m

    MP Donator
  • Premium Supporter
  • December 11, 2008
    518
    146
    Home Country
    Austria Austria
    • Thread starter
    • Moderator
    • #5
    AW: Re: AW: Set the WMR9 ExlusiveMode from plugin

    No, i cant use MP Controls. If i use a lot of image-controls i have not this performance that i need.

    Is there a way to make a new GUIcontrol??

    I assume it should be possible to derive own GUIControl and then at least you should be able to draw a directx texture inside the skin engine. It should give the required speed you need (that is how the video is rendered for example).

    Or a other way to clear the flickerproblem with WinForm-Controls?

    No, flickering issue is OS level issue. Basicly you cannot draw anything on top of the exclusive mode DirectX application since it owns the screen. Flickering is the result if you try to draw.

    Thanks for yur answere. I have a idea. On the OnPaint of me WinFormControl i can save my control in an image objekt.
    This objekt i can use then, but how i can use an imageobjekt with the GUIimagecontrol. The GUIimage Control can only use a stream or a file. Is there a way to use an imageObjekt??? I hope so.

    Many thanks in Advance.
    Sascha
     

    NoFear23m

    MP Donator
  • Premium Supporter
  • December 11, 2008
    518
    146
    Home Country
    Austria Austria
    • Thread starter
    • Moderator
    • #6
    AW: Set the WMR9 ExlusiveMode from plugin

    Hy again

    Ani ideas? Please :oops:

    Greets
    Sascha
     

    Users who are viewing this thread

    Top Bottom