Modify

Ticket #4501 (closed enhancement: fixed)

You must read the TicketHowTo before creating a new ticket or commenting on an existing ticket.

Opened 4 years ago

Last modified 3 years ago

Allow browsing across tuners

Reported by: Ron Frazier <ron@…> Owned by: danielk
Priority: minor Milestone: unknown
Component: mythtv Version: head
Severity: medium Keywords:
Cc: stuartm Ticket locked: no

Description

I've put together a set of patches that allow users to view channels from all tuners in the LiveTV browse mode. It has the following features:

  • Enabled via a toggle in TV Settings -> Playback OSD (disabled by default)
  • Adds 2 extra attributes to the infoMap for use in the OSD

1) tuner = "Current Tuner", "Tuner #", or empty if no tuner is available for that channel 2) notuner = "No Tuners Available", or empty if a tuner is available for that channel

  • Allows textarea objects in osd.xml (which maps to the OSDTypeText class) to support a fcnfont option. This allows you to do things like make the program title appear in red if there are no tuners available to watch the program.

I'm attaching 3 patches:

Patch 1: Implements the fcnfont support for OSD textarea objects.

Patch 2: Implements the actual tuner browsing featuers.

Patch 3: Demonstrates how to support the fcnfont in the blueosd theme. I am not necessarily proposing that this patch be applied as is...just providing an example of how the new UI features can be implemented in a theme.

Attachments

osd_fcnfont.patch Download (10.3 KB) - added by Ron Frazier <ron@…> 4 years ago.
fcnfont support for OSD textarea objects
browse_tuners.patch Download (8.6 KB) - added by Ron Frazier <ron@…> 4 years ago.
allows browsing across multiple tuners
browse_tuners_theme_example.patch Download (1.4 KB) - added by Ron Frazier <ron@…> 4 years ago.
example of how to implement in a theme
mythtv_browseall_03.diff Download (8.1 KB) - added by Shane Shrybman <gnome42@…> 4 years ago.
Browse across all tuners
mythtv_browseall_03-trunk.patch Download (8.4 KB) - added by skerit@… 3 years ago.
Browse across all tuners patch for trunk (QT4)
4501-v1.patch Download (8.5 KB) - added by danielk 3 years ago.
Updated patch to trunk, not tested or reviewed

Change History

Changed 4 years ago by Ron Frazier <ron@…>

fcnfont support for OSD textarea objects

Changed 4 years ago by Ron Frazier <ron@…>

allows browsing across multiple tuners

Changed 4 years ago by Ron Frazier <ron@…>

example of how to implement in a theme

comment:1 Changed 4 years ago by stuartm

  • Cc stuartm added

comment:2 Changed 4 years ago by Shane Shrybman <gnome42@…>

Hi,

I'm also looking into this issue and came across your patches. I tried the browse_tuners.patch on its own, (with a few small mods needed to compile without the font patch), and it worked well. :)

There's always concern about additional network traffic and DB load generated by the channel checking and input groups checking stuff so I was experimenting trying to minimize that.

Came up with a patch with these changes for the browse_tuners.patch:

  • Add TV::GetChanIDAnyTuner(const QString &chan) to avoid GetChanNum?() DB query.
  • Constify new functions.

Changed 4 years ago by Shane Shrybman <gnome42@…>

Browse across all tuners

comment:3 Changed 3 years ago by skerit@…

I'd love to use this patch, as the people I'm building a mythbox for don't want to switch to the channel guide just to switch 1 channel.

There appears to be a problem with the ":BROWSETS" variable in some query:

2008-09-25 22:49:14.023 Query contains bind value ":BROWSETS" twice: SELECT DISTINCT program.chanid, program.starttime, program.endtime, program.title, program.subtitle, program.description, program.category, channel.channum, channel.callsign, channel.name, program.previouslyshown, channel.commmethod, channel.outputfilters, program.seriesid, program.programid, program.airdate, program.stars, program.originalairdate, program.category_type, oldrecstatus.recordid, oldrecstatus.rectype, oldrecstatus.recstatus, oldrecstatus.findid FROM program LEFT JOIN channel ON program.chanid = channel.chanid LEFT JOIN oldrecorded AS oldrecstatus ON program.title = oldrecstatus.title AND channel.callsign = oldrecstatus.station AND program.starttime = oldrecstatus.starttime WHERE program.chanid = :CHANID AND program.starttime <= :BROWSETS AND program.endtime > :BROWSETS GROUP BY program.starttime, channel.channum, channel.callsign, program.title ORDER BY program.starttime, atsc_major_chan,atsc_minor_chan,channum,callsign LIMIT 1000

comment:4 Changed 3 years ago by skerit@…

I forgot to mention I'm using the latest trunk, not the fixes release. The patch does not cleanly apply to it, but with some tweaking I got it right.

Changed 3 years ago by skerit@…

Browse across all tuners patch for trunk (QT4)

comment:5 Changed 3 years ago by danielk

  • Owner changed from ijr to danielk
  • Status changed from new to assigned

Changed 3 years ago by danielk

Updated patch to trunk, not tested or reviewed

comment:6 Changed 3 years ago by danielk

  • Status changed from assigned to closed
  • Resolution set to fixed

(In [19483]) Fixes #4501. Allow browsing across tuners.

View

Add a comment

Modify Ticket

Action
as closed
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.