@rajeev02/media 0.2.0 → 0.2.1

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 +24 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -17,6 +17,30 @@ Part of [Rajeev SDK](https://github.com/Rajeev02/rajeev-sdk) — cross-platform
17
17
  - **Resume playback** — Automatic resume from last position across sessions
18
18
  - **Playback speed** — 0.5x to 3x speed with pitch correction
19
19
 
20
+ ## ⚠️ Important: Native Media Player Required
21
+
22
+ This library provides the **playback state machine, download manager, and quality selection logic**. It does **NOT** render video/audio or decode media formats.
23
+
24
+ You need a native media player to pair with:
25
+
26
+ | Environment | Recommended library |
27
+ | ----------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
28
+ | Expo | [`expo-av`](https://docs.expo.dev/versions/latest/sdk/av/) |
29
+ | Bare React Native | [`react-native-video`](https://github.com/react-native-video/react-native-video) |
30
+ | Web | HTML5 `<video>` with [`hls.js`](https://github.com/video-dev/hls.js) / [`dash.js`](https://github.com/Dash-Industry-Forum/dash.js) |
31
+
32
+ **DRM:** If you use DRM-protected content, you must provide a license server URL:
33
+
34
+ - **Android/Web:** Widevine license server
35
+ - **iOS:** FairPlay license server
36
+ - **Providers:** [PallyCon](https://pallycon.com), [BuyDRM](https://www.buydrm.com), [Axinom](https://www.axinom.com)
37
+
38
+ **Casting:** Chromecast/AirPlay config types are provided, but actual casting requires native cast SDK setup in your app.
39
+
40
+ **Streaming:** Your HLS/DASH streams need a media server or CDN (AWS CloudFront, Mux, Cloudflare Stream, etc.).
41
+
42
+ **What this library provides:** Player state management (play/pause/seek/quality), download tracking with pause/resume, resume-from-last-position, and subtitle/audio track selection. Your native player handles the actual media rendering.
43
+
20
44
  ## Platform Support
21
45
 
22
46
  | Platform | Engine | Status |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rajeev02/media",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Unified Media Player Engine — adaptive streaming, PiP, offline download, DRM, Hotstar/Netflix style",
5
5
  "main": "lib/index.js",
6
6
  "author": "Rajeev Kumar Joshi <rajeevjoshi91@gmail.com> (https://rajeev02.github.io)",