@scarlett-player/media-session 1.6.0 → 1.8.0
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.
- package/dist/index.cjs +6 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +4 -1
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -24,6 +24,11 @@ __export(index_exports, {
|
|
|
24
24
|
default: () => index_default
|
|
25
25
|
});
|
|
26
26
|
module.exports = __toCommonJS(index_exports);
|
|
27
|
+
|
|
28
|
+
// src/version.ts
|
|
29
|
+
var PKG_VERSION = true ? "1.7.1" : "0.0.0-dev";
|
|
30
|
+
|
|
31
|
+
// src/index.ts
|
|
27
32
|
var DEFAULT_CONFIG = {
|
|
28
33
|
enablePlayPause: true,
|
|
29
34
|
enableSeek: true,
|
|
@@ -171,7 +176,7 @@ function createMediaSessionPlugin(config) {
|
|
|
171
176
|
const plugin = {
|
|
172
177
|
id: "media-session",
|
|
173
178
|
name: "Media Session",
|
|
174
|
-
version:
|
|
179
|
+
version: PKG_VERSION,
|
|
175
180
|
type: "feature",
|
|
176
181
|
description: "Media Session API integration for system-level media controls",
|
|
177
182
|
async init(pluginApi) {
|
package/dist/index.d.cts
CHANGED
|
@@ -124,9 +124,10 @@ interface IMediaSessionPlugin extends Plugin<MediaSessionPluginConfig> {
|
|
|
124
124
|
*
|
|
125
125
|
* @example
|
|
126
126
|
* ```ts
|
|
127
|
+
* import { createPlayer } from '@scarlett-player/core';
|
|
127
128
|
* import { createMediaSessionPlugin } from '@scarlett-player/media-session';
|
|
128
129
|
*
|
|
129
|
-
* const player =
|
|
130
|
+
* const player = await createPlayer({
|
|
130
131
|
* container: document.getElementById('player'),
|
|
131
132
|
* plugins: [
|
|
132
133
|
* createMediaSessionPlugin({
|
package/dist/index.d.ts
CHANGED
|
@@ -124,9 +124,10 @@ interface IMediaSessionPlugin extends Plugin<MediaSessionPluginConfig> {
|
|
|
124
124
|
*
|
|
125
125
|
* @example
|
|
126
126
|
* ```ts
|
|
127
|
+
* import { createPlayer } from '@scarlett-player/core';
|
|
127
128
|
* import { createMediaSessionPlugin } from '@scarlett-player/media-session';
|
|
128
129
|
*
|
|
129
|
-
* const player =
|
|
130
|
+
* const player = await createPlayer({
|
|
130
131
|
* container: document.getElementById('player'),
|
|
131
132
|
* plugins: [
|
|
132
133
|
* createMediaSessionPlugin({
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
// src/version.ts
|
|
2
|
+
var PKG_VERSION = true ? "1.7.1" : "0.0.0-dev";
|
|
3
|
+
|
|
1
4
|
// src/index.ts
|
|
2
5
|
var DEFAULT_CONFIG = {
|
|
3
6
|
enablePlayPause: true,
|
|
@@ -146,7 +149,7 @@ function createMediaSessionPlugin(config) {
|
|
|
146
149
|
const plugin = {
|
|
147
150
|
id: "media-session",
|
|
148
151
|
name: "Media Session",
|
|
149
|
-
version:
|
|
152
|
+
version: PKG_VERSION,
|
|
150
153
|
type: "feature",
|
|
151
154
|
description: "Media Session API integration for system-level media controls",
|
|
152
155
|
async init(pluginApi) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scarlett-player/media-session",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"description": "Media Session Plugin for Scarlett Player - Lock screen controls, media keys, and system media UI integration",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -22,14 +22,14 @@
|
|
|
22
22
|
"dist"
|
|
23
23
|
],
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"@scarlett-player/core": "^1.0
|
|
25
|
+
"@scarlett-player/core": "^1.7.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"tsup": "^8.0.0",
|
|
29
29
|
"typescript": "^5.3.0",
|
|
30
30
|
"vitest": "^1.6.0",
|
|
31
31
|
"jsdom": "^24.0.0",
|
|
32
|
-
"@scarlett-player/core": "1.
|
|
32
|
+
"@scarlett-player/core": "1.8.0"
|
|
33
33
|
},
|
|
34
34
|
"keywords": [
|
|
35
35
|
"video",
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
},
|
|
54
54
|
"homepage": "https://scarlettplayer.com",
|
|
55
55
|
"scripts": {
|
|
56
|
-
"build": "tsup
|
|
57
|
-
"dev": "tsup
|
|
56
|
+
"build": "tsup",
|
|
57
|
+
"dev": "tsup --watch",
|
|
58
58
|
"test": "vitest --run",
|
|
59
59
|
"test:watch": "vitest",
|
|
60
60
|
"typecheck": "tsc --noEmit"
|