<None Include="Configuration\dxplay.en">\r
<CopyToOutputDirectory>Always</CopyToOutputDirectory>\r
</None>\r
- <None Include="Configuration\dxplay.json1">\r
+ <None Include="Configuration\dxplay.json">\r
<CopyToOutputDirectory>Always</CopyToOutputDirectory>\r
</None>\r
<None Include="packages.config">\r
playerHeight = (int)Math.Ceiling(rc.Right * x); ;\r
}\r
\r
- hr = graph.VideoWindow.SetWindowPosition((rc.Right - playerWidth) / 2, (rc.Bottom - playerHeight) / 2, playerWidth, playerHeight);\r
- DsError.ThrowExceptionForHR(hr);\r
+ if (graph != null) {\r
+ hr = graph.VideoWindow.SetWindowPosition((rc.Right - playerWidth) / 2, (rc.Bottom - playerHeight) / 2, playerWidth, playerHeight);\r
+ DsError.ThrowExceptionForHR(hr);\r
+ }\r
}\r
\r
public void ToggleFullscreen() {\r
}\r
\r
public void Update(TargetUpdateTrafficMessage message) {\r
- logger.Info("Now update!!!!!!!!!");\r
+ //logger.Info("Now update!!!!!!!!!");\r
selector.trafficAPI.UpdateTrafficInformation(message.VariantID, message.Ready, message.MetadataType, message.Segments);\r
}\r
}\r
i--;\r
}\r
c.disconnect();\r
- //c.getMediabase().getProtocol().setDescription("%0000205", "VALAMI");\r
}\r
\r
@Test\r