- September 3, 2010
- 576
- 235
- Home Country
- Canada
I was pretty sure that I found the "Holy Grail" to help you @morpheus_xx nailed that problem. Not earing anything from you after my new discovery says it all.
Of course, it's my job !Can you test the attached version?
[2015-01-15 20:41:43,086] [25144 ] [AMQ 'ScreenManager'] [DEBUG] - ScreenManager: Disabling background screen rendering
[2015-01-15 20:41:43,087] [25145 ] [DX Render] [ERROR] - AtmoLight: Exception: Object reference not set to an instance of an object.
[2015-01-15 20:41:43,090] [25148 ] [AMQ 'ScreenManager'] [DEBUG] - ScreenManager: Disabling background screen rendering
[2015-01-15 20:41:43,092] [25150 ] [DX Render] [ERROR] - AtmoLight: Exception: Object reference not set to an instance of an object.
[2015-01-15 20:41:43,096] [25154 ] [AMQ 'SynchronizeToPrimaryPlayer'] [DEBUG] - RefreshRateChanger.SetDisplayConfig(...): Successfully switched to 24000/1001
[2015-01-15 20:41:43,117] [25175 ] [DX Render] [ERROR] - AtmoLight: Exception: Object reference not set to an instance of an object.
[2015-01-15 20:42:11,552] [53609 ] [GenericPCQueue] [DEBUG] - IrInputPlugin: Received Message 'RemoteEvent' Stop
[2015-01-15 20:42:11,553] [53610 ] [GenericPCQueue] [DEBUG] - IrInputPlugin: Mapped Key 'Stop' to '[Stop]'
[2015-01-15 20:42:11,556] [53613 ] [AMQ 'PlayerBackgroundManager'] [DEBUG] - ScreenManager: Setting background screen 'default-background'...
[2015-01-15 20:42:11,558] [53615 ] [AMQ 'PlayerBackgroundManager'] [DEBUG] - ScreenManager: Loading screen from file path 'C:\Program Files (x86)\Team MediaPortal\MP2-Client\Plugins\SkinBase\Skin\default\backgrounds\default-background.xaml'...
[2015-01-15 20:42:11,558] [53615 ] [AMQ 'ScreenManager'] [DEBUG] - ScreenManager: Enabling background screen rendering
[2015-01-15 20:42:11,557] [53614 ] [InputMgr ] [DEBUG] - VideoPlayer: Stop
[2015-01-15 20:42:11,565] [53622 ] [InputMgr ] [DEBUG] - VideoPlayer: Stop playing
[2015-01-15 20:42:11,935] [53992 ] [InputMgr ] [DEBUG] - VideoPlayer: Graph state after stop command: Stopped
[2015-01-15 20:42:12,014] [54071 ] [InputMgr ] [INFO ] - Releasing filter DirectShow.FilterGraph, remaining references: 1
[2015-01-15 20:42:12,018] [54075 ] [AMQ 'Plugin'] [INFO ] - AtmoLight: Playback stopped.
[2015-01-15 20:42:12,018] [54075 ] [AMQ 'SynchronizeToPrimaryPlayer'] [INFO ] - SkinEngine MainForm: SynchronizeToVideoPlayerFramerate: Restore default rendering, no new Player!
[2015-01-15 20:42:12,021] [54078 ] [AMQ 'Plugin'] [DEBUG] - AtmoLight: LEDs can be activated.
[2015-01-15 20:42:12,022] [54079 ] [AMQ 'Plugin'] [DEBUG] - AtmoLight: Effect "MediaPortalLiveMode" is already active. Nothing to do.
[2015-01-15 20:42:12,023] [54080 ] [AMQ 'PlayerContextManager'] [DEBUG] - ThreadPool.CheckThreadIncrementRequired(): Incrementing thread count 1 with 1
[2015-01-15 20:42:12,023] [54080 ] [AMQ 'SynchronizeToPrimaryPlayer'] [DEBUG] - RefreshRateChanger.SetDisplayConfig(...): SDC_VALIDATE of 60000/1001 succesful
...
[2015-01-15 20:42:12,166] [54223 ] [AMQ 'ScreenManager'] [DEBUG] - ScreenManager: Showing screen 'BrowseMediaNavigation'
[2015-01-15 20:42:12,558] [54615 ] [AMQ 'SynchronizeToPrimaryPlayer'] [DEBUG] - RefreshRateChanger.SetDisplayConfig(...): Successfully switched to 60000/1001
[2015-01-15 20:42:12,772] [54829 ] [DX Render] [DEBUG] - ScreenManager: Closing screen 'FullscreenContentVideo'
[2015-01-15 20:42:12,803] [54860 ] [AMQ 'SynchronizeToPrimaryPlayer'] [INFO ] - GraphicsDevice: DirectX initialized 1920x1080 (format: X8R8G8B8 25 Hz)
[2015-01-15 20:42:12,835] [54892 ] [AMQ 'SynchronizeToPrimaryPlayer'] [INFO ] - GraphicsDevice: DirectX initialized 1920x1080 (format: X8R8G8B8 59 Hz)
[2015-01-15 20:42:13,531] [55588 ] [AtmoLight GetAtmoLiveViewSource] [DEBUG] - AtmoLight: AtmoWinHandler - AtmoWin Liveview Source is not lvsExternal
[2015-01-15 20:42:13,533] [55590 ] [AtmoLight GetAtmoLiveViewSource] [DEBUG] - AtmoLight: AtmoWinHandler - Changing AtmoWin Liveview Source to: lvsExternal
[2015-01-15 20:42:13,580] [55637 ] [AtmoLight GetAtmoLiveViewSource] [INFO ] - AtmoLight: AtmoWinHandler - Successfully changed AtmoWin Liveview Source to: lvsExternal
if (ServiceRegistration.Get<IPlayerContextManager>().IsVideoContextActive)
{
player = ServiceRegistration.Get<IPlayerContextManager>().PrimaryPlayerContext.CurrentPlayer as ISharpDXVideoPlayer;
surfaceSource = player.Surface;
}
else
{
surfaceSource = SkinContext.Device.GetRenderTarget(0);
}
SkinContext.Device.GetRenderTarget(0)