- Moderator
- #21
Outstrippedand please replace geshi/csharp.php with attached one
C#:
/// <summary>
/// Catch GUI to full screen toggle, set property #mvCentral.isPlaying to enable pop-up
/// </summary>
void GUIGraphicsContext_OnVideoWindowChanged()
{
// make sure we are playing some video and the video source is us
if (GUIGraphicsContext.IsPlayingVideo && (GUIPropertyManager.GetProperty("#mvCentral.isPlaying") == "true"))
{
if (GUIWindowManager.IsSwitchingToNewWindow)
{
if (GUIGraphicsContext.IsFullScreenVideo)
{
if (GUIPropertyManager.GetProperty("#mvCentral.Play.Started") == "false")
{
clearPropertyTimer.Enabled = true;
logger.Debug("Set #mvCentral.Play.Started = true");
GUIPropertyManager.SetProperty("#mvCentral.Play.Started", "true");
}
}
}
}
}
Comments are merged with the rest of the text. It is necessary to change the color of the main text.
Last edited by a moderator: