@videojs/mux-audio 10.1.0 → 10.2.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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MuxMixin } from "@videojs/mux-video/spf";
|
|
2
|
-
import { HlsAudioAdapter } from "@videojs/spf/hls-audio";
|
|
2
|
+
import { HlsAudioAdapter } from "@videojs/spf/adapters/hls-audio";
|
|
3
3
|
//#region src/spf/adapter.ts
|
|
4
4
|
/**
|
|
5
5
|
* The Mux Media over the SPF audio-only HLS engine.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MuxAdapterProps } from "@videojs/mux-video/spf";
|
|
2
|
-
import { HlsAudioAdapter, HlsAudioAdapterProps } from "@videojs/spf/hls-audio";
|
|
2
|
+
import { HlsAudioAdapter, HlsAudioAdapterProps } from "@videojs/spf/adapters/hls-audio";
|
|
3
3
|
//#region src/spf/adapter.d.ts
|
|
4
|
-
declare const MuxAudioAdapter_base: import("@videojs/utils/types").Constructor<Omit<HlsAudioAdapter, "source"> & import("@videojs/mux-video/spf").MuxAdapterAPI, [options?: import("@videojs/spf/hls-audio").HlsAudioAdapterOptions]> & Omit<typeof HlsAudioAdapter, "defaultProps" | "prototype"> & {
|
|
4
|
+
declare const MuxAudioAdapter_base: import("@videojs/utils/types").Constructor<Omit<HlsAudioAdapter, "source"> & import("@videojs/mux-video/spf").MuxAdapterAPI, [options?: import("@videojs/spf/adapters/hls-audio").HlsAudioAdapterOptions]> & Omit<typeof HlsAudioAdapter, "defaultProps" | "prototype"> & {
|
|
5
5
|
readonly alternativeMediaSuggestion: string | undefined;
|
|
6
6
|
readonly defaultProps: MuxAdapterProps;
|
|
7
7
|
};
|
package/dist/dev/spf/adapter.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MuxMixin } from "@videojs/mux-video/spf";
|
|
2
|
-
import { HlsAudioAdapter } from "@videojs/spf/hls-audio";
|
|
2
|
+
import { HlsAudioAdapter } from "@videojs/spf/adapters/hls-audio";
|
|
3
3
|
//#region src/spf/adapter.ts
|
|
4
4
|
/**
|
|
5
5
|
* The Mux Media over the SPF audio-only HLS engine.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.js","names":[],"sources":["../../../src/spf/adapter.ts"],"sourcesContent":["// Only the mixin is used from `@videojs/mux-video/spf`. Its `MuxVideoAdapter` (and the full HLS engine behind it) is\n// left for the consumer's bundler to drop, which `sideEffects: false` on that package allows, so this entry stays\n// audio-only.\nimport { type MuxAdapterProps, MuxMixin } from '@videojs/mux-video/spf';\nimport { HlsAudioAdapter, type HlsAudioAdapterProps } from '@videojs/spf/hls-audio';\n\n/**\n * The Mux Media over the SPF audio-only HLS engine.\n *\n * Same Mux surface as the video flavor — `src`, the structured `source`, and the derived `contentData` all come from\n * the shared mixin — over the subtractive engine, so only the audio renditions of whatever the playback ID names are\n * fetched. That is the one place this diverges from the hls.js-backed `<mux-audio>`, which runs the full engine and\n * downloads video renditions it never shows.\n *\n * `source.drm` is accepted but inert, unlike on the video flavor: the audio-only engine composes no EME. Mux encrypts\n * video renditions and leaves audio clear, so a protected playback ID still plays here.\n *\n * `contentData` is kept rather than dropped, for the same reason its hls.js counterpart has it: a playback ID played as\n * audio is usually a _video_ asset, whose poster and storyboard exist and which an audio skin may well want. The\n * element ignores it either way. Mux publishes neither for a genuinely audio-only asset, so those URLs 404 — see the\n * known shortcoming on the video flavor, which shares the derivation.\n */\nexport class MuxAudioAdapter extends MuxMixin(HlsAudioAdapter) {\n static override readonly defaultProps: Omit<HlsAudioAdapterProps, 'src' | 'source'> & MuxAdapterProps = {\n ...HlsAudioAdapter.defaultProps,\n src: '',\n source: null,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAsBA,IAAa,kBAAb,cAAqC,SAAS,eAAe,CAAC,CAAC;;EAC2C,KAAA,eAAA;GACtG,GAAG,gBAAgB;GACnB,KAAK;GACL,QAAQ;EACV;;AACF"}
|
|
1
|
+
{"version":3,"file":"adapter.js","names":[],"sources":["../../../src/spf/adapter.ts"],"sourcesContent":["// Only the mixin is used from `@videojs/mux-video/spf`. Its `MuxVideoAdapter` (and the full HLS engine behind it) is\n// left for the consumer's bundler to drop, which `sideEffects: false` on that package allows, so this entry stays\n// audio-only.\nimport { type MuxAdapterProps, MuxMixin } from '@videojs/mux-video/spf';\nimport { HlsAudioAdapter, type HlsAudioAdapterProps } from '@videojs/spf/adapters/hls-audio';\n\n/**\n * The Mux Media over the SPF audio-only HLS engine.\n *\n * Same Mux surface as the video flavor — `src`, the structured `source`, and the derived `contentData` all come from\n * the shared mixin — over the subtractive engine, so only the audio renditions of whatever the playback ID names are\n * fetched. That is the one place this diverges from the hls.js-backed `<mux-audio>`, which runs the full engine and\n * downloads video renditions it never shows.\n *\n * `source.drm` is accepted but inert, unlike on the video flavor: the audio-only engine composes no EME. Mux encrypts\n * video renditions and leaves audio clear, so a protected playback ID still plays here.\n *\n * `contentData` is kept rather than dropped, for the same reason its hls.js counterpart has it: a playback ID played as\n * audio is usually a _video_ asset, whose poster and storyboard exist and which an audio skin may well want. The\n * element ignores it either way. Mux publishes neither for a genuinely audio-only asset, so those URLs 404 — see the\n * known shortcoming on the video flavor, which shares the derivation.\n */\nexport class MuxAudioAdapter extends MuxMixin(HlsAudioAdapter) {\n static override readonly defaultProps: Omit<HlsAudioAdapterProps, 'src' | 'source'> & MuxAdapterProps = {\n ...HlsAudioAdapter.defaultProps,\n src: '',\n source: null,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAsBA,IAAa,kBAAb,cAAqC,SAAS,eAAe,CAAC,CAAC;;EAC2C,KAAA,eAAA;GACtG,GAAG,gBAAgB;GACnB,KAAK;GACL,QAAQ;EACV;;AACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@videojs/mux-audio",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.2.0",
|
|
4
4
|
"description": "Mux audio playback adapter for Video.js, over hls.js",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"hls",
|
|
@@ -40,17 +40,16 @@
|
|
|
40
40
|
"access": "public"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@videojs/mux-video": "10.
|
|
44
|
-
"@videojs/spf": "10.
|
|
45
|
-
"@videojs/utils": "10.
|
|
43
|
+
"@videojs/mux-video": "10.2.0",
|
|
44
|
+
"@videojs/spf": "10.2.0",
|
|
45
|
+
"@videojs/utils": "10.2.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"jsdom": "^26.1.0",
|
|
49
|
-
"vite-plus": "1.
|
|
49
|
+
"vite-plus": "1.1.0"
|
|
50
50
|
},
|
|
51
51
|
"scripts": {
|
|
52
|
-
"
|
|
53
|
-
"dev": "pnpm run build:watch",
|
|
52
|
+
"dev": "vp pack --watch ./src --no-clean",
|
|
54
53
|
"test": "vp test run",
|
|
55
54
|
"test:watch": "vp test",
|
|
56
55
|
"clean": "rimraf --glob dist types '*.tsbuildinfo'"
|