@xapp/stentor-media-manager 1.86.6 → 1.86.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +15 -1
  2. package/package.json +9 -9
package/README.md CHANGED
@@ -1 +1,15 @@
1
- Copy this to create a new package under `/packages`
1
+ ## @xapp/stentor-media-manager
2
+
3
+ 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.
4
+
5
+ ### Usage
6
+
7
+ ```ts
8
+ import { PlaylistManager } from "@xapp/stentor-media-manager";
9
+
10
+ const manager = new PlaylistManager({ source }, history);
11
+ const playlist = await manager.load();
12
+ const track = playlist.next();
13
+ ```
14
+
15
+ `MediaManagerFactory` in `@xapp/stentor-handler-media` picks the correct manager for a given handler/media type at runtime.
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
- "version": "1.86.6",
7
+ "version": "1.86.8",
8
8
  "description": "PLACEHOLDER DESCRIPTION OF PACKAGE",
9
9
  "types": "lib/index",
10
10
  "main": "lib/index",
@@ -21,18 +21,18 @@
21
21
  "mocha": "11.8.0",
22
22
  "sinon": "21.0.0",
23
23
  "sinon-chai": "3.7.0",
24
- "stentor-constants": "1.74.5",
25
- "stentor-history": "1.74.5",
26
- "stentor-media": "1.74.9",
27
- "stentor-models": "1.79.0",
28
- "stentor-utils": "1.75.4",
24
+ "stentor-constants": "1.74.7",
25
+ "stentor-history": "1.74.7",
26
+ "stentor-media": "1.74.14",
27
+ "stentor-models": "1.81.0",
28
+ "stentor-utils": "1.76.2",
29
29
  "ts-node": "10.9.2",
30
30
  "typescript": "5.9.3"
31
31
  },
32
32
  "dependencies": {
33
- "@xapp/stentor-service-rss-feed": "1.86.6",
34
- "@xapp/stentor-service-social-radio": "1.86.5",
35
- "@xapp/stentor-text-to-speech": "1.86.5",
33
+ "@xapp/stentor-service-rss-feed": "1.86.8",
34
+ "@xapp/stentor-service-social-radio": "1.86.7",
35
+ "@xapp/stentor-text-to-speech": "1.86.7",
36
36
  "date-fns": "4.1.0"
37
37
  },
38
38
  "peerDependencies": {