NextPVR Forums
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 4 5 6 7 8 … 93 Next »
Stopping Live TV

 
  • 0 Vote(s) - 0 Average
Stopping Live TV
Vitenka
Offline

Junior Member

Posts: 31
Threads: 4
Joined: Apr 2013
#11
2014-12-07, 07:34 PM
The code I'm using for starting playback is:
PluginHelperFactory.GetPluginHelper().PlayLiveTV©;

And for stopping is:
PluginHelperFactory.GetPluginHelper().GetPlaybackProxy() {just checks that is non NULL}
EventBus.GetInstance().Notify("HANDLE_COMMAND", "Stop");

The stop is done in the context of a time callback, which likely makes a difference. (I also have an unblock screensaver after that; but removing it made no difference.)
Vitenka
Offline

Junior Member

Posts: 31
Threads: 4
Joined: Apr 2013
#12
2014-12-18, 07:34 PM
I'm still stuck with this; and can also provoke a vareity of different crashes if the screen has gone to sleep (windows main screensaver timeout, or closing the lid on the laptop)

How can I progress this?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 102,394
Threads: 741
Joined: Nov 2003
#13
2014-12-18, 07:45 PM
Sorry, somehow I'd missed your replies above to this thread.

I'm wondering if your problems somehow stem from using Timers, which leads to things being executed on different threads. I think you should try to modify things to happen on the main execution thread once the timers expire.
Vitenka
Offline

Junior Member

Posts: 31
Threads: 4
Joined: Apr 2013
#14
2014-12-18, 09:00 PM
I'm not entirely sure how to do this; as I don't have any 'main thread' - just the contstructor, Initialise(), Activate() etc.

My code is indeed run while another page is in front (usually the guide view) but that's what I want to happen.

Is there some function I can guarantee is called regularly (say, every minute?) where I could check whether the alarm should go off?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 102,394
Threads: 741
Joined: Nov 2003
#15
2014-12-18, 11:43 PM
Hmmm, it's a difficult one if you're not the active plugin.

You could see if the attached makes any difference. It attempts to force this "HANDLE_COMMAND" call on to the main thread. It also adds a log message that might help diagnosis if this doesn't work.

Please note though, there is a chance this version of nextpvr.exe wont be compatible with your version of NextPVR, so make sure you backup the original file in case you need to go back.
Vitenka
Offline

Junior Member

Posts: 31
Threads: 4
Joined: Apr 2013
#16
2014-12-19, 07:33 PM
At startup:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.TypeLoadException: Could not load type 'NUtility.ISwipe' from assembly 'NUtility, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
at NextPVR.ControllerForm.Form1_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at NextPVR.ControllerForm.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)



Thn repeatedly:


************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at NextPVR.ControllerForm.OnMouseMove(Object sender, MouseEventArgs e)
at NextPVR.VideoWindow.OnMouseMove(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseMove(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at NextPVR.VideoWindow.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

(Had to kill the process to exit the loop of that)

Dunno what ISwipe is, or where it ought to be, but I guess it's something new that I don't have yet.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): « Previous 1 2


Possibly Related Threads…
Thread Author Replies Views Last Post
  What is being sent when using /live?channel=3.1 scJohn 2 1,185 2020-01-30, 04:51 PM
Last Post: sub
  Stopping live tv mvallevand 3 1,710 2014-03-11, 04:19 AM
Last Post: mvallevand
  What causes a new tuner to be used services/live?channel= psycik 2 1,720 2014-02-04, 05:32 PM
Last Post: psycik
  Tracking Live TV status imilne 2 1,731 2011-07-13, 07:04 PM
Last Post: imilne
  Live GBPVR CD/DVD/Thumb drive :D pBS 101 20,767 2010-01-03, 06:22 AM
Last Post: pBS
  vlc as live TV Source theGressier 4 1,972 2008-09-13, 12:35 AM
Last Post: drlava
  Grabbing live TV video frame Snarky 1 968 2007-05-12, 05:30 AM
Last Post: sub
  stopping the screensaver taking focus idkpmiller 2 1,085 2007-01-21, 12:43 AM
Last Post: idkpmiller
  Query live preview mode fla 3 1,712 2006-07-12, 12:18 AM
Last Post: fla
  Displaying graphics over a live TV or recording picture funkybro_uk 3 1,262 2005-05-10, 05:18 PM
Last Post: sub

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

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

Linear Mode
Threaded Mode