SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Studio
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Studio Discussion related to the SageTV Studio application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the Studio software application should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-24-2007, 04:13 AM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
Warning: ApplicationStartedHook and Placeshifter

I have just got bitten by this issue and would like to let others know about it:

Do not rely on ApplicationStartedHook to start any background tasks when using Placeshifter over an internet connection.

The reason for this problem is that ApplicationStartedHook is launched when the *first* STV is loaded, and when Placeshifter is run over the internet, the *first* STV to be loaded is the SecureLogin.xml, not the users' custom STV.

So this means that ApplicationStarted Hook is triggered in SecureLogin.xml only...

This created a problem that only showed up when logging in over the internet, but I could not reproduce when logging in locally (caused lots of head banging on desk!)


Related: one should not rely on ApplicationExiting hook either, because a user can change STVs before exiting...

I am going to ask Sage for new global hooks: STVLoaded STVUnloaded which might be a better place to put STV-related initialization/shutdown routines...
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki

Last edited by nielm; 09-24-2007 at 04:28 AM.
Reply With Quote
  #2  
Old 09-24-2007, 05:12 AM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
Nielm,

If you set: miniclient/authenticate_local_connections=true you should be able to replicate the internet connection experience. Right?

B
Reply With Quote
  #3  
Old 09-24-2007, 07:06 AM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
yes (apart from the speed)
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki
Reply With Quote
  #4  
Old 09-24-2007, 09:15 AM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
BTW: I posted some info about this initilization issue here: STV Initializations vs. ApplicationStarted hook. The same solution could be applied here for startup, but not as easily for code to run when the STV is unloaded.

- Andy
__________________
SageTV Open Source v9 is available.
- Read the SageTV FAQ. Older PDF User's Guides mostly still apply: SageTV V7.0 & SageTV Studio v7.1.
- Hauppauge remote help: 1) Basics/Extending it 2) Replace it 3) Use it w/o needing focus
- HD Extenders: A) FAQs B) URC MX-700 remote setup
Note: This is a users' forum; see the Rules. For official tech support fill out a Support Request.
Reply With Quote
  #5  
Old 09-24-2007, 09:26 AM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
From the other thread...
Quote:
Originally Posted by nielm View Post
I think I wrote it so that the contents of the BeforeMenuLoad hook from the original main menu still get executed...
Ah. uh. that must have been the other nielm posting there, because this nielm had no recollection of that post, even after fixing a bug where the dynamic menu does not execute the contents of the BML hook of the original main menu...
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows XP placeshifter - will not connect using LocatorID dwalton22 SageTV Placeshifter 12 08-10-2007 09:31 AM
Two placeshifter clients on one PC? Fountainhead SageTV Placeshifter 2 01-08-2007 04:08 PM
Improve Placeshifter PQ over LAN? zubblwump SageTV Placeshifter 7 11-06-2006 04:21 PM
A Couple Placeshifter Questions zubblwump SageTV Placeshifter 0 09-24-2006 08:42 AM
SageTV V4.1.11 Beta Is Available - Better Placeshifting! Narflex SageTV Beta Test Software 81 04-04-2006 09:39 PM


All times are GMT -6. The time now is 02:28 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.