Embedded webbrowser choppy fullscreen flash video (1 Viewer)

Brownard

Development Group
  • Team MediaPortal
  • March 21, 2007
    2,306
    1,884
    Home Country
    United Kingdom United Kingdom
    Hi,

    I'm attempting to create a plugin for watching tv catchup services. I'm trying to use the same method as NeverMissTV and TunerFreeMCE whereby I load the web page in an embedded browser control and use a Clickhandler to control the flash player.

    The Problem:

    When the flash player enters full screen the video playback becomes choppy, I believe this is a focus issue with MP as when I right click the video to bring up the flash context menu (giving the video focus??) playback becomes smooth but returns to choppy when the menu is dismissed. Playback is always smooth when using the same method in a simple WinForm.

    Anyone know of a way round this? All ideas welcome.

    Attached is a simple demo plugin to illustrate the issue.

    Thanks
     

    Attachments

    • MPflashdemo.rar
      1.4 MB

    DieBagger

    Retired Team Member
  • Premium Supporter
  • September 11, 2007
    2,516
    1,276
    40
    Austria
    Home Country
    Austria Austria
    can't test since I can't watch the streams in Austria.

    If you can compile MediaPortal yourself you can try to remove

    Code:
             //if we dont got the focus, then dont use all the CPU
            if (ActiveForm != this || (GUIGraphicsContext.SaveRenderCycles))
            {
              Thread.Sleep(100);
            }

    in d3dapp.cs (Ln 1472) in the MediaPortal project.
     

    Brownard

    Development Group
  • Team MediaPortal
  • March 21, 2007
    2,306
    1,884
    Home Country
    United Kingdom United Kingdom
    • Thread starter
    • Moderator
    • #3
    Thanks for reply but I still get the same behaviour with the above removed :(
     

    Brownard

    Development Group
  • Team MediaPortal
  • March 21, 2007
    2,306
    1,884
    Home Country
    United Kingdom United Kingdom
    • Thread starter
    • Moderator
    • #4
    I fixed this by setting

    GUIGraphicsContext.Vmr9Active = true;

    whilst in fullscreen
     

    Users who are viewing this thread

    Top Bottom