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 03-31-2010, 09:15 AM
redondo_se redondo_se is offline
Sage Advanced User
 
Join Date: May 2007
Posts: 191
FilePlaybackFinished not called in Live TV transition

I use R5000 modified Dish Vip211 boxes with Sage. The channel changes take about 15-20 seconds. I want to give some feedback to indicate that the system is loading a show during that wait period.

I have modified my SageMC STV to show an options dialog during this period using the MediaPlayerFileLoadComplete hook. This works well when a show is picked from the guide. The dialog appears immediately and gives good feedback.

However, when watching Live TV, and a transition from one show to another occurs, the MediaPlayerFileLoadComplete hook does not get executed until near the end of that 15-20 second period. So, you see the frozen last image of the show for roughly 12-17 seconds, then my dialog shows for about 3 seconds.

I thought I might be able to use the FilePlaybackFinished hook to be notified when the transition happens, but it does not get called. I have added debug to all occurences of the hook in the STV, i.e. in the OSD menu and the global hook. And, the SageMC STV sets videoframe/always_call_fileplaybackfinished to true and I've verified that it's still set true throughout execution with debug.

The studio documentation says:

Quote:
This hook will also not be called when SageTV is
capable of automatically switching to the next file for playback (i.e. during playlists,
music and live TV); but that behavior can be overridden with a property setting.
I assume that's talking about videoframe/always_call_fileplaybackfinished, but that doesn't seem to have any affect here. Is there a different setting?

I also tried using the MediaPlayerPlayStateChanged to see if I could use that, but that does not get called at all during the transition.

Is there any way I can make this happen earlier in the process? I'm tired of hearing "something's wrong with the TV."
Reply With Quote
  #2  
Old 03-31-2010, 09:23 AM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
One quick question: are you sure that property is true? The default STV always sets it to false, so if you've loaded the default STV since you last set it...

- 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
  #3  
Old 03-31-2010, 09:30 AM
redondo_se redondo_se is offline
Sage Advanced User
 
Join Date: May 2007
Posts: 191
Quote:
Originally Posted by Opus4 View Post
One quick question: are you sure that property is true? The default STV always sets it to false, so if you've loaded the default STV since you last set it...

- Andy
Yeah, I printed the value in a debug statement in MediaPlayerFileLoadComplete. It's always true there, so unless it's getting set to false and then back to true in between somewhere, it should always be true. The SageMC STV sets it to true in the ApplicationStarted hook, and I'm not loading any part of the default STV during my development/testing. And I've searched through the STV, and it's not referenced anywhere besids the ApplicationStarted hook. I've restarted Sage many times during the process.
Reply With Quote
  #4  
Old 03-31-2010, 11:44 AM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
I found out that the Studio docs for that hook are not entirely correct -- the hook won't fire for live TV (as the PDF says) and the property won't override that (not what the PDF says).

It was suggested to me that you consider a forked thread to monitor the status for your customization.

- 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 03-31-2010, 12:11 PM
redondo_se redondo_se is offline
Sage Advanced User
 
Join Date: May 2007
Posts: 191
Quote:
Originally Posted by Opus4 View Post
It was suggested to me that you consider a forked thread to monitor the status for your customization.

- Andy
Ok, thanks for the info. Any idea what property(ies) I can check in my thread to determine when the transition is happening? I noticed in the FilePlaybackFinished hook from the SageMC OSD menu they are checking to see if GetCurrentPlaylist() returns null. Does the Sage core add the next upcoming live show to a playlist when that transition is about to happen?
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
FilePlaybackFinished nathanm SageTV Studio 4 03-30-2007 03:52 PM
FilePlaybackFinished hook dflachbart SageTV Studio 2 09-06-2006 03:05 PM
Hook which gets called periodically ? dflachbart SageTV Studio 5 02-10-2006 12:58 PM


All times are GMT -6. The time now is 12:57 PM.


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