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 10-31-2010, 03:54 PM
broconne broconne is offline
Sage Aficionado
 
Join Date: Feb 2009
Location: Cary, NC
Posts: 306
Understanding Browser Videos

I feel like I understand 70% of how studio actually works - but that 30% seems to have a steep learning curve.

When I am looking at Browser - Videos (As if I went to Videos -> Titles) - I see where the table is created to display the videos - but I don't see how that gets populated? I see in the script part of it where it checks the size of AllVideos and I see down below where AllVideos = AllVideos. I also see where it sets "TheVideoList to TheVideoList" but once again, I am missing the actual connection to the list of videos?

Lastly, if I follow the references all the way down to "REM Display the video list table." I see where there is another table (I guess nested in the original table?) and it has a video item - but I can't seem to wrap my head around how the video item gets translated into the list of actual videos on the system.

I am clearly missing something obvious, but can't quite figure out what that is.
__________________
Host: ESXi 6.5 w/ Intel Core i7 2.8GHZ 8GB Ram
Guest: Ubuntu 16.04 with Sage v9 in Docker
Tuners: 2 HDHR (OTA);
Extenders: HD300 connected to a Samsung 56" DLP HDTV; HD300 connected to a Sharp 42" LCD
Storage: OmniOS w/6 1TB Samsung Spinpoint in a RaidZ2 configuration in a 20 bay SATA hotswap case.
Reply With Quote
  #2  
Old 10-31-2010, 04:39 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
The Table widget at BASE-87457 is under a Theme and does not contribute to populating the table with data. It just serves as a template for specifying properties common to all tables in the VideoBrowserPanel subtree. (See the Themes tutorial in the Studio manual for more info.)

The active Table widget is the one at OPUS4A-178356. Like all one-dimensional tables, it takes its data from its parent Action widget, in this case from TheVideoList.

If you're asking how TheVideoList gets assigned, I haven't traced out the complete execution flow, but doing a Search on TheVideoList would be a good place to start. (If you haven't already discovered it, my Studio Tools plugin has a fairly flexible Search feature as well as a List Variable References command.)
__________________
-- Greg
Reply With Quote
  #3  
Old 10-31-2010, 05:04 PM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
Using gregs tools search for GetMediaFiles

That should be the start of getting data with filtering/grouping following that.
Reply With Quote
  #4  
Old 10-31-2010, 06:03 PM
broconne broconne is offline
Sage Aficionado
 
Join Date: Feb 2009
Location: Cary, NC
Posts: 306
Quote:
Originally Posted by GKusnick View Post
The Table widget at BASE-87457 is under a Theme and does not contribute to populating the table with data. It just serves as a template for specifying properties common to all tables in the VideoBrowserPanel subtree. (See the Themes tutorial in the Studio manual for more info.)

The active Table widget is the one at OPUS4A-178356. Like all one-dimensional tables, it takes its data from its parent Action widget, in this case from TheVideoList.

If you're asking how TheVideoList gets assigned, I haven't traced out the complete execution flow, but doing a Search on TheVideoList would be a good place to start. (If you haven't already discovered it, my Studio Tools plugin has a fairly flexible Search feature as well as a List Variable References command.)
Thanks for the tips.. I have been using your studio tools plugin - total lifesaver.. What I wasn't understanding is that at no point do you really iterate over a list of media items and set them as row elements - instead the table takes its data from the action widget which references the data set before load..
__________________
Host: ESXi 6.5 w/ Intel Core i7 2.8GHZ 8GB Ram
Guest: Ubuntu 16.04 with Sage v9 in Docker
Tuners: 2 HDHR (OTA);
Extenders: HD300 connected to a Samsung 56" DLP HDTV; HD300 connected to a Sharp 42" LCD
Storage: OmniOS w/6 1TB Samsung Spinpoint in a RaidZ2 configuration in a 20 bay SATA hotswap case.
Reply With Quote
  #5  
Old 10-31-2010, 06:04 PM
broconne broconne is offline
Sage Aficionado
 
Join Date: Feb 2009
Location: Cary, NC
Posts: 306
Quote:
Originally Posted by PLUCKYHD View Post
Using gregs tools search for GetMediaFiles

That should be the start of getting data with filtering/grouping following that.
As always - thanks a ton plucky. That did help me narrow down and figure out what was going on.
__________________
Host: ESXi 6.5 w/ Intel Core i7 2.8GHZ 8GB Ram
Guest: Ubuntu 16.04 with Sage v9 in Docker
Tuners: 2 HDHR (OTA);
Extenders: HD300 connected to a Samsung 56" DLP HDTV; HD300 connected to a Sharp 42" LCD
Storage: OmniOS w/6 1TB Samsung Spinpoint in a RaidZ2 configuration in a 20 bay SATA hotswap case.
Reply With Quote
  #6  
Old 10-31-2010, 08:51 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
Quote:
Originally Posted by broconne View Post
What I wasn't understanding is that at no point do you really iterate over a list of media items and set them as row elements - instead the table takes its data from the action widget which references the data set before load..
That should be covered by the Tables tutorial in the Studio manual. If you haven't already worked through those tutorials (or didn't understand them the first time), I highly recommend doing so.
__________________
-- Greg
Reply With Quote
  #7  
Old 11-01-2010, 03:56 AM
broconne broconne is offline
Sage Aficionado
 
Join Date: Feb 2009
Location: Cary, NC
Posts: 306
Quote:
Originally Posted by GKusnick View Post
That should be covered by the Tables tutorial in the Studio manual. If you haven't already worked through those tutorials (or didn't understand them the first time), I highly recommend doing so.
I did work through them - thought I had a decent grasp. Been trying to delve deeper by understanding how the tables work in the V7.xml - which is obviously a lot more complex.

Thanks!
__________________
Host: ESXi 6.5 w/ Intel Core i7 2.8GHZ 8GB Ram
Guest: Ubuntu 16.04 with Sage v9 in Docker
Tuners: 2 HDHR (OTA);
Extenders: HD300 connected to a Samsung 56" DLP HDTV; HD300 connected to a Sharp 42" LCD
Storage: OmniOS w/6 1TB Samsung Spinpoint in a RaidZ2 configuration in a 20 bay SATA hotswap case.
Reply With Quote
  #8  
Old 11-01-2010, 09:07 PM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
Are you trying to figure out the concept of using Table widgets, or are you trying to figure out where the list of videos is created in the specific table you mentioned that uses TheVideoList?

For learning about tables & viewing examples of tables, I strongly suggest that you check out some menus other than the imported media browsers.

The data in the media browsers isn't created in the UI chain of widgets -- it is manipulated and/or filtered in the UI chain, but the basic creation of the data for all the various media browser views is done in code under the Before/AfterMenuLoad hooks. It is designed to keep the slower code that builds those lists out of the UI chain and it loads the current view before the menu loads, then preloads the remaining views after the menu loads.

- 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
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
UPnP Browser showing no videos found jpaddock3000 SageTV v7 Customizations 1 05-20-2010 01:29 PM
understanding install paths snoopy SageTV Customizations 3 03-14-2010 12:27 AM
Fanart works, but no covers in My Videos browser matt91 SageMC Custom Interface 3 04-14-2009 01:27 AM
Not understanding focus PLUCKYHD SageTV Studio 4 04-07-2009 08:18 PM
understanding placeshifter tvmaster2 SageTV Placeshifter 14 09-01-2006 11:11 PM


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


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