Opened 12 months ago

Last modified 5 months ago

#13338 infoneeded_new Patch - Feature

Add support for playback of requested Live TV channel from Frontend Services API

Reported by: Justin Randall Owned by:
Priority: minor Milestone: needs_triage
Component: MythTV - General Version: Master Head
Severity: medium Keywords: frontend services API
Cc: Ticket locked: no

Description

The pull request URL is https://github.com/MythTV/mythtv/pull/173

Needs code review and independent testing.

This is a simple change to extend the Frontend Services API with a new POST method for requesting Live TV playback tuned to a specific channel ID.

  • Makes sure requested ChanID is "valid" i.e. non-negative, non-zero.
  • Checks current state of frontend GUI and attempts to change to Live TV.
  • If current state is Live TV then requested channel identifier passed to network control for tuning.

PlayLiveTV

The PlayLiveTV API takes the following arguments:

ChanId? (Required)

Parameter Type: Integer

Parameter Description: The database channel id for tuning.

Example Query:

http://FrontendIP:6547/Frontend/PlayLiveTV?ChanId=1234

Attachments (1)

frontend-services-playLiveTV.patch (3.7 KB) - added by Justin Randall 5 months ago.
New version of patch compatible with recent changes to trunk.

Download all attachments as: .zip

Change History (3)

Changed 5 months ago by Justin Randall

New version of patch compatible with recent changes to trunk.

comment:1 Changed 5 months ago by Bill Meek

Hi,

The above attachment doesn't build.

I appears that the most recent pull request was merged (perhaps in your own tree?) In any case, I can't find it.

Please attach a diff of the code that builds (and works) here. Thanks.

It might help to define your use case. Note that Frontend/GetStatus plus Frontend/SendKey _may_ do what you want.

comment:2 Changed 5 months ago by Bill Meek

Status: newinfoneeded_new
Note: See TracTickets for help on using tickets.