Opened 5 years ago

Closed 2 years ago

#13338 closed Patch - Feature (Trac EOL)

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

Reported by: Justin Randall Owned by: Bill Meek
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 years ago.
New version of patch compatible with recent changes to trunk.

Download all attachments as: .zip

Change History (7)

Changed 5 years ago by Justin Randall

New version of patch compatible with recent changes to trunk.

comment:1 Changed 5 years 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 years ago by Bill Meek

Status: newinfoneeded_new

comment:3 Changed 4 years ago by paul-h

Milestone: needs_triageunknown
Owner: set to Bill Meek
Status: infoneeded_newassigned

Sound like a useful addition. Justin any chance of an updated patch?

comment:4 Changed 4 years ago by paul-h

Status: assignedinfoneeded

comment:5 Changed 4 years ago by Stuart Auchterlonie

Milestone: unknownneeds_triage

Bill,

Could you review please?

comment:6 Changed 2 years ago by Stuart Auchterlonie

Resolution: Trac EOL
Status: infoneededclosed

We have moved all bug tracking to github [1]

If you continue to have this issue, please open a new issue at github, referencing this ticket.

[1] - https://github.com/MythTV/mythtv/issues

Note: See TracTickets for help on using tickets.