I dont even know what that means , "if it is present". As said before, everything directx and so on is pretty much just me trying everything i can think of until it works. MP1 uses surfaces, so thats what i was looking for in MP2. If you know of a better solution (im sure you do), please, go for it. Implement it and either provide me with a patch, or i can give you the rights on GitHub so you can just push it. But giving me hints on how to make it better is not going to give us any results, as i dont have the background in all this render stuff and currently using my free time for other things .why do you take the video surface if it is present?
I was refering to the existing code parts.I dont even know what that means , "if it is present".
I was refering to the existing code parts.I dont even know what that means , "if it is present".
Here you take the VideoPlayer's frame surface as source: https://github.com/ambilight-4-medi...er/AtmoLight.MediaPortal2/Plugin.cs#L438-L445.
And if no player is active you take the back buffer (full rendered frame): https://github.com/ambilight-4-medi.../master/AtmoLight.MediaPortal2/Plugin.cs#L448
A generic solution in all case (no video, 1 or 2 video players) is the latter one, the finished rendered back buffer frame.