[TV] [solved] 4994: Automatically Change Channel on Program Reminder (1 Viewer)

vapourEyes

Portal Pro
July 31, 2013
138
41
United Kingdom United Kingdom
Country flag
--- Post updated ---
It may not be as clean as it should be. I hope this helps though

Thanks for your quick response.
--- Post updated ---
I thought I posted the code here an hour ago.
Will pastebin the code.

It is client side only. It exists within TvNotifyManager.cs

The code can be found on pastebin, here: http://pastebin.com/bU5MLgeP

private bool NotifyChannelChange(TVProgramDescription tvProg) {}

Is a new method added to TvNotifyManager.cs.
 

HTPCSourcer

MP2 Product Manager
  • Team MediaPortal
  • May 16, 2008
    11,431
    2,333
    Germany Germany
    Country flag
    If it's client only, I believe that an addition could be made to the client GUI.
     

    vapourEyes

    Portal Pro
    July 31, 2013
    138
    41
    United Kingdom United Kingdom
    Country flag
    Yes, thank you HTPCSourcer.

    I think a UI choice can be surfaced to the user. Then they would have the choice of behaviors.
     

    vapourEyes

    Portal Pro
    July 31, 2013
    138
    41
    United Kingdom United Kingdom
    Country flag
    I just had another thought. I could set a bookmark, at the program change.
    That way someone who wants to go back in the buffer to a previous 'switched to' program can use the skip buttons...
     

    regeszter

    Retired Team Member
  • Premium Supporter
  • October 29, 2005
    5,335
    4,954
    Hungary Hungary
    I just had another thought. I could set a bookmark, at the program change.
    That way someone who wants to go back in the buffer to a previous 'switched to' program can use the skip buttons...
    Buffer for live tv is an interesting thing.
     

    vapourEyes

    Portal Pro
    July 31, 2013
    138
    41
    United Kingdom United Kingdom
    Country flag
    I was hoping to extend the current experiment by showing a real-time countdown to the channel change.
    Using tvNotifyDlg.DoModal(), in the current implementation does not appear to support this ?

    Also, to get the 'Pause on channel change' functionality working, I need to register for an OnChannelChanged() fired event.
    Right now I implement a crude thread-yielding method with a timeout to wait for the channel change, with mixed results.
    Switching from an HD channel to SD channel or vice-versa, struggles to pause correctly. If I could register for the official OnChannelChanged() event I could pause at the right time ?

    Thanks.
     

    vapourEyes

    Portal Pro
    July 31, 2013
    138
    41
    United Kingdom United Kingdom
    Country flag
    I have updated the code.
    I now call a thread sleeping method, with a g_player.Process() call within to pause properly after program change, if a user has left the system paused.

    I have submitted this code to pastebin again.

    Thanks.

    http://pastebin.com/tqjyuaEw
     

    vapourEyes

    Portal Pro
    July 31, 2013
    138
    41
    United Kingdom United Kingdom
    Country flag
    I should modify the UI to surface this option to the user.
    I'm very newbie on the MediaPortal codebase, so you may have to bear with me.
     

    Users Who Are Viewing This Thread (Users: 0, Guests: 1)

    OP Similar threads Forum Replies Date
    S TV-Server MP1 - Automatic search doesn't work Installation, configuration support 2
    vapourEyes Automatically Re-Tune Periodically Improvement Suggestions 1
    vapourEyes Automatically Tune to Strongest Duplicate Channel Improvement Suggestions 99
    W [solved] [FIXED] Survivor season 40 not automatically matching My TVSeries 1
    G Switch to new channel at begining of program automatically Feature Requests 0
    C How do I get MediaPortal to separate recording files by channel and month? General 2
    H MP1.21F video database scan, can it be scheduled to automatically run in background General Support 5
    Steve.Rayner61 Online Videos - Automatic Updates fails 'Automatic update disabled. Check your internet connection' OnlineVideos 10
    greybox 1.20 final does not update video duration automatically 1.20 10
    greybox 1.20 final does not update video duration automatically 1.20 Pre Release 1
    Scheibes MP2 - V2.1 Meta-Data import not complete by automatic import Older releases 3
    T Client / Server slow channel-to-channel change (zapping) General Support 1
    framug [solved] Some changes/fix in MP1 configuration client and server Submit: code patches (MediaPortal/TV-Server/etc.) 14
    catavolt [WiP] When changing theme in my skins, I always get this error message in logs MediaPortal 1 9
    azzuro [WiP] MP1-4999 - Big changes with many related change at once by Sebastiii MediaPortal 1 12
    J How to change y position of subtitles General 2
    D [solved] Changed username in Win10, now TV Server config crashes on fresh install Installation, configuration support 1
    M Change size of the splash screen Skins and Plugins Installer (MPEI) 2
    S Remote button to change audio and subtitle on / off General 10
    BenGonGon chaine qui change aléatoirement Support Général 2
    R [solved] Command / Shortcut for changing subtitles or audio Archive 5
    ge2301 New forum design together with change to XF2.x Online Facilities 4
    doskabouter [Evaluate] Changing SecurityProtocol Developer Discussions 1
    O [Help Me!] How to change 'release' status in Jira? Developer Discussions 9
    cbr954rr [fixed] Movie db refresh on changes of nfo and correct spelling of words in titles 2.2 Archive 33
    Similar threads

























    Top Bottom