@xapp/stentor-media-manager
v1.86.8
Published
PLACEHOLDER DESCRIPTION OF PACKAGE
Readme
@xapp/stentor-media-manager
A collection of MediaManager classes that track playback state (current track, offset, history) and playlist navigation (next/previous/first/latest) for the media types a Stentor app can play: PlaylistManager (generic playlists), LiveStreamManager/VideoLiveStreamManager (audio and video live streams), RSSFeedManager/ScanRSSFeedManager (podcast RSS feeds, via @xapp/stentor-service-rss-feed), and SocialRadioManager/OnDemandManager (social radio channels, via @xapp/stentor-service-social-radio). It also includes reporters (SocialRadioReporter, SimpleReporter) that implement ReportingService to report track starts, updates, and completions.
Usage
import { PlaylistManager } from "@xapp/stentor-media-manager";
const manager = new PlaylistManager({ source }, history);
const playlist = await manager.load();
const track = playlist.next();MediaManagerFactory in @xapp/stentor-handler-media picks the correct manager for a given handler/media type at runtime.
