NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 53 54 55 56 57 … 93 Next »
Query live preview mode

 
  • 0 Vote(s) - 0 Average
Query live preview mode
fla
Offline

Posting Freak

Posts: 876
Threads: 45
Joined: Mar 2006
#1
2006-07-03, 01:39 PM
I want to write a plugin that will remind the user with an OSD overlay when in live preview mode and there has been no channel change for more than a specified time. To do this I need to query:

1) Are we in live preview mode
2) When was this channel selected (how long on current channel)

What API calls can I make to get this information?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#2
2006-07-03, 05:07 PM
I dont think it would be possible for you to do this.
fooman1
Offline

Member

Posts: 57
Threads: 2
Joined: Feb 2006
#3
2006-07-11, 12:38 PM
Hi,

I think this is possible (at least part 2 is). You need to use the IEventNotification (?) interface. This notifies you on various events. You will need to monitor the channel name/number change.

On a channel name/number notification, you will need to:
1. Check if this is a new channel or not by comparing to the variable that keeps track of the current channel; (If this is first channel, go to 2)
- If the same channel, do nothing.
- If a new channel, then:
2. Set the variable that keeps track of the current channel to the new channel. If needed, set a variable to the time we switched to this channel.
3. Set a timer event/reset the timer so that you can be notified to display the OSD if necessary.

4. On a videostopping event, clean-up (ie stop the timer, etc).

The above steps are what basically needs to be done for keeping track of when the channel was last selected.

I am not too sure about how to check if in live preview mode. I am guessing it may be possible to ask GB-PVR (or maybe even be notified) the name of the file it is currently writing to (if in timeshift mode). Thus we are in live preview mode if no file is being written to.
fla
Offline

Posting Freak

Posts: 876
Threads: 45
Joined: Mar 2006
#4
2006-07-12, 12:18 AM
Thanks for the tips. I'll give this a try.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Poor man's EPG mode. mvallevand 40 12,126 2022-10-15, 10:20 PM
Last Post: sgilani
  What is being sent when using /live?channel=3.1 scJohn 2 1,860 2020-01-30, 04:51 PM
Last Post: sub
  Stopping Live TV Vitenka 15 6,402 2014-12-19, 07:33 PM
Last Post: Vitenka
  Stopping live tv mvallevand 3 2,260 2014-03-11, 04:19 AM
Last Post: mvallevand
  What causes a new tuner to be used services/live?channel= psycik 2 2,254 2014-02-04, 05:32 PM
Last Post: psycik
  Need help with some real-world SQL query results bgowland 17 5,534 2013-02-01, 02:12 PM
Last Post: mvallevand
  Problem with preview image for Pending Recordings Northpole 2 1,967 2012-08-14, 02:56 AM
Last Post: Northpole
  Tracking Live TV status imilne 2 2,204 2011-07-13, 07:04 PM
Last Post: imilne
  Live GBPVR CD/DVD/Thumb drive :D pBS 101 28,203 2010-01-03, 06:22 AM
Last Post: pBS
  vlc as live TV Source theGressier 4 2,731 2008-09-13, 12:35 AM
Last Post: drlava

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode