home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
General Forums
Website/Forum/Wiki Feedback
syntax highlighting for C# and C++ is falling back to C
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="ajs" data-source="post: 1165169" data-attributes="member: 68833"><p>Test for diferences:</p><p>[code=csharp] /// <summary></p><p> /// Catch GUI to full screen toggle, set property #mvCentral.isPlaying to enable pop-up</p><p> /// </summary></p><p> void GUIGraphicsContext_OnVideoWindowChanged()</p><p> {</p><p> // make sure we are playing some video and the video source is us</p><p> if (GUIGraphicsContext.IsPlayingVideo && (GUIPropertyManager.GetProperty("#mvCentral.isPlaying") == "true"))</p><p> {</p><p> if (GUIWindowManager.IsSwitchingToNewWindow)</p><p> {</p><p> if (GUIGraphicsContext.IsFullScreenVideo)</p><p> {</p><p> if (GUIPropertyManager.GetProperty("#mvCentral.Play.Started") == "false")</p><p> {</p><p> clearPropertyTimer.Enabled = true;</p><p> logger.Debug("Set #mvCentral.Play.Started = true");</p><p> GUIPropertyManager.SetProperty("#mvCentral.Play.Started", "true");</p><p> }</p><p> }</p><p> }</p><p> }</p><p> }[/code]</p><p>[code=cpp] /// <summary></p><p> /// Catch GUI to full screen toggle, set property #mvCentral.isPlaying to enable pop-up</p><p> /// </summary></p><p> void GUIGraphicsContext_OnVideoWindowChanged()</p><p> {</p><p> // make sure we are playing some video and the video source is us</p><p> if (GUIGraphicsContext.IsPlayingVideo && (GUIPropertyManager.GetProperty("#mvCentral.isPlaying") == "true"))</p><p> {</p><p> if (GUIWindowManager.IsSwitchingToNewWindow)</p><p> {</p><p> if (GUIGraphicsContext.IsFullScreenVideo)</p><p> {</p><p> if (GUIPropertyManager.GetProperty("#mvCentral.Play.Started") == "false")</p><p> {</p><p> clearPropertyTimer.Enabled = true;</p><p> logger.Debug("Set #mvCentral.Play.Started = true");</p><p> GUIPropertyManager.SetProperty("#mvCentral.Play.Started", "true");</p><p> }</p><p> }</p><p> }</p><p> }</p><p> }[/code]</p><p>[code=C#] /// <summary></p><p> /// Catch GUI to full screen toggle, set property #mvCentral.isPlaying to enable pop-up</p><p> /// </summary></p><p> void GUIGraphicsContext_OnVideoWindowChanged()</p><p> {</p><p> // make sure we are playing some video and the video source is us</p><p> if (GUIGraphicsContext.IsPlayingVideo && (GUIPropertyManager.GetProperty("#mvCentral.isPlaying") == "true"))</p><p> {</p><p> if (GUIWindowManager.IsSwitchingToNewWindow)</p><p> {</p><p> if (GUIGraphicsContext.IsFullScreenVideo)</p><p> {</p><p> if (GUIPropertyManager.GetProperty("#mvCentral.Play.Started") == "false")</p><p> {</p><p> clearPropertyTimer.Enabled = true;</p><p> logger.Debug("Set #mvCentral.Play.Started = true");</p><p> GUIPropertyManager.SetProperty("#mvCentral.Play.Started", "true");</p><p> }</p><p> }</p><p> }</p><p> }</p><p> }[/code]</p></blockquote><p></p>
[QUOTE="ajs, post: 1165169, member: 68833"] Test for diferences: [code=csharp] /// <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"); } } } } }[/code] [code=cpp] /// <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"); } } } } }[/code] [code=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"); } } } } }[/code] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
General Forums
Website/Forum/Wiki Feedback
syntax highlighting for C# and C++ is falling back to C
Contact us
RSS
Top
Bottom