PlexLiveTvApi class
/livetv/* — Plex Live TV and DVR.
Wraps the consumer-facing slice (sessions, DVRs, subscriptions). Tuner / EPG / device-grabber configuration lives behind the escape hatch — those endpoints are admin-only and unlikely to belong in a music+video app.
Constructors
- PlexLiveTvApi(PlexConnection _http)
-
Construct from a
PlexConnection. Typically obtained via PlexClient.liveTv.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
cancelSubscription(
String key) → Future< void> -
DELETE /livetv/subscriptions/{key}— cancel a recording subscription. -
dvrChannels(
String dvrKey) → Future< List< PlexMetadata> > -
Helper to drill into the EPG inside a Live TV DVR. The id comes
from dvrs → entry's
keyfield. Returns the channel listing. -
dvrs(
) → Future< List< Map< >String, dynamic> > -
GET /livetv/dvrs— configured DVR backends. -
history(
{int start = 0, int size = 50}) → Future< List< Map< >String, dynamic> > -
GET /livetv/sessions/history/all— past Live TV viewing history. Same shape assessions.history()for VOD. -
liveSession(
String sessionId) → Future< Map< String, dynamic> > -
GET /livetv/sessions/{sessionId}— fetch a single live session (status, currently-tuned channel, decision). -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sessionPlaylistUrl(
{required String sessionId, required String consumerId}) → String -
GET /livetv/sessions/{sessionId}/{consumerId}/index.m3u8— URL for the HLS playlist of one consumer attached to a live session. -
sessions(
) → Future< List< Map< >String, dynamic> > -
GET /livetv/sessions— currently-streaming Live TV sessions. -
sessionSegmentUrl(
{required String sessionId, required String consumerId, required String segmentId}) → String -
GET /livetv/sessions/{sessionId}/{consumerId}/{segmentId}— URL for one HLS segment of the live session. -
subscriptions(
) → Future< List< Map< >String, dynamic> > -
GET /livetv/subscriptions— recording subscriptions (single + series). Each entry carries akey,type,subscriptionType, linked metadata, schedule info. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited