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
MediaPortal 1
Development
Improvement Suggestions
4994: Automatically Change Channel on Program Reminder
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="vapourEyes" data-source="post: 1269836" data-attributes="member: 143065"><p>[CODE=csharp] tvNotifyDlg.SetDefaultToYes(true);</p><p> tvNotifyDlg.DoModal(GUIWindowManager.ActiveWindow);</p><p></p><p> if (tvNotifyDlg.IsConfirmed)</p><p> {</p><p> try</p><p> {</p><p> MediaPortal.Player.g_Player.Stop();</p><p> if (c.IsTv)</p><p> {</p><p> MediaPortal.GUI.Library.GUIWindowManager.ActivateWindow((int)MediaPortal.GUI.Library.GUIWindow.Window.WINDOW_TV);</p><p> TVHome.ViewChannelAndCheck(c);</p><p> if (TVHome.Card.IsTimeShifting && TVHome.Card.IdChannel == c.IdChannel)</p><p> {</p><p> g_Player.ShowFullScreenWindow();</p><p> }</p><p> }</p><p> else if (c.IsRadio)</p><p> {</p><p> MediaPortal.GUI.Library.GUIWindowManager.ActivateWindow((int)MediaPortal.GUI.Library.GUIWindow.Window.WINDOW_RADIO);</p><p> Radio.CurrentChannel = c;</p><p> Radio.Play();</p><p> }</p><p> }</p><p> catch (Exception e)</p><p> {</p><p> Log.Error("TVHome: TVNotification: Error on starting channel {0} after notification: {1} {2} {3}", notify.Channel.DisplayName, e.Message, e.Source, e.StackTrace);</p><p> }</p><p> }</p><p> break;</p><p> }[/CODE]</p><p></p><p>Setting default to true should satisfy if (tvNotifyDlg.IsConfirmed) and enable the change.</p></blockquote><p></p>
[QUOTE="vapourEyes, post: 1269836, member: 143065"] [CODE=csharp] tvNotifyDlg.SetDefaultToYes(true); tvNotifyDlg.DoModal(GUIWindowManager.ActiveWindow); if (tvNotifyDlg.IsConfirmed) { try { MediaPortal.Player.g_Player.Stop(); if (c.IsTv) { MediaPortal.GUI.Library.GUIWindowManager.ActivateWindow((int)MediaPortal.GUI.Library.GUIWindow.Window.WINDOW_TV); TVHome.ViewChannelAndCheck(c); if (TVHome.Card.IsTimeShifting && TVHome.Card.IdChannel == c.IdChannel) { g_Player.ShowFullScreenWindow(); } } else if (c.IsRadio) { MediaPortal.GUI.Library.GUIWindowManager.ActivateWindow((int)MediaPortal.GUI.Library.GUIWindow.Window.WINDOW_RADIO); Radio.CurrentChannel = c; Radio.Play(); } } catch (Exception e) { Log.Error("TVHome: TVNotification: Error on starting channel {0} after notification: {1} {2} {3}", notify.Channel.DisplayName, e.Message, e.Source, e.StackTrace); } } break; }[/CODE] Setting default to true should satisfy if (tvNotifyDlg.IsConfirmed) and enable the change. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
Improvement Suggestions
4994: Automatically Change Channel on Program Reminder
Contact us
RSS
Top
Bottom