@scarlett-player/native 0.1.0 → 0.1.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 +44 -0
  2. package/package.json +2 -2
package/README.md ADDED
@@ -0,0 +1,44 @@
1
+ # @scarlett-player/native
2
+
3
+ Native video playback plugin for Scarlett Player. Supports MP4, WebM, MOV, MKV, and OGV formats.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install @scarlett-player/core @scarlett-player/native
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```typescript
14
+ import { ScarlettPlayer } from '@scarlett-player/core';
15
+ import { createNativePlugin } from '@scarlett-player/native';
16
+
17
+ const player = new ScarlettPlayer({
18
+ container: document.getElementById('player'),
19
+ plugins: [createNativePlugin()],
20
+ });
21
+
22
+ await player.init();
23
+ await player.load('https://example.com/video.mp4');
24
+ ```
25
+
26
+ ## Supported Formats
27
+
28
+ - **MP4** - H.264/AAC (most common)
29
+ - **WebM** - VP8/VP9/Opus
30
+ - **MOV** - QuickTime (H.264/AAC)
31
+ - **MKV** - Matroska (browser support varies)
32
+ - **OGV/OGG** - Theora/Vorbis
33
+
34
+ ## Configuration
35
+
36
+ ```typescript
37
+ createNativePlugin({
38
+ preload: 'metadata', // 'none' | 'metadata' | 'auto'
39
+ });
40
+ ```
41
+
42
+ ## License
43
+
44
+ MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scarlett-player/native",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Native Video Provider Plugin for Scarlett Player (MP4, WebM, MOV, MKV)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -49,5 +49,5 @@
49
49
  "bugs": {
50
50
  "url": "https://github.com/Hackney-Enterprises-Inc/scarlett-player/issues"
51
51
  },
52
- "homepage": "https://github.com/Hackney-Enterprises-Inc/scarlett-player#readme"
52
+ "homepage": "https://scarlettplayer.com"
53
53
  }