@mux/mux-audio 0.9.1 → 0.9.2-canary.0-e7d6b3f

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/CHANGELOG.md ADDED
@@ -0,0 +1,195 @@
1
+ # Change Log
2
+
3
+ All notable changes to this project will be documented in this file.
4
+ See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
+
6
+ ## [0.9.2](https://github.com/muxinc/elements/compare/@mux/mux-audio@0.9.1...@mux/mux-audio@0.9.2) (2023-02-01)
7
+
8
+ **Note:** Version bump only for package @mux/mux-audio
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.9.1](https://github.com/muxinc/elements/compare/@mux/mux-audio@0.9.0...@mux/mux-audio@0.9.1) (2023-01-20)
15
+
16
+ **Note:** Version bump only for package @mux/mux-audio
17
+
18
+
19
+
20
+
21
+
22
+ # [0.9.0](https://github.com/muxinc/elements/compare/@mux/mux-audio@0.8.1...@mux/mux-audio@0.9.0) (2022-12-13)
23
+
24
+
25
+ ### Features
26
+
27
+ * allow video, audio and player elements to get any metadata-* attrs set ([#501](https://github.com/muxinc/elements/issues/501)) ([8ee139d](https://github.com/muxinc/elements/commit/8ee139d2bbd08e1e3c08d047f870c1dcf01dac7e))
28
+
29
+
30
+
31
+
32
+
33
+ ## [0.8.1](https://github.com/muxinc/elements/compare/@mux/mux-audio@0.8.0...@mux/mux-audio@0.8.1) (2022-11-21)
34
+
35
+
36
+ ### Bug Fixes
37
+
38
+ * add async effect for loading media ([#492](https://github.com/muxinc/elements/issues/492)) ([d2b250a](https://github.com/muxinc/elements/commit/d2b250a2d86e4e6a4c17fc34196e6468c4fedf1f))
39
+
40
+
41
+
42
+
43
+
44
+ # [0.8.0](https://github.com/muxinc/elements/compare/@mux/mux-audio@0.7.0...@mux/mux-audio@0.8.0) (2022-10-25)
45
+
46
+
47
+ ### Features
48
+
49
+ * **mux-audio:** Add disable cookies attr and prop. ([ef453ed](https://github.com/muxinc/elements/commit/ef453edf9cb9696150ae89f995a6af8472161153))
50
+
51
+
52
+
53
+
54
+
55
+ # [0.7.0](https://github.com/muxinc/elements/compare/@mux/mux-audio@0.6.4...@mux/mux-audio@0.7.0) (2022-10-05)
56
+
57
+ ### Bug Fixes
58
+
59
+ - preload for mux-audio, add tests ([e795fe0](https://github.com/muxinc/elements/commit/e795fe047af1feac832786aa03d8f419e57881b5))
60
+ - preload playback core change ([15313ea](https://github.com/muxinc/elements/commit/15313eaad81f748b5853a0fdaabfe141963f885e))
61
+
62
+ ### Features
63
+
64
+ - add `prefer-playback` attribute ([#402](https://github.com/muxinc/elements/issues/402)) ([8da36d6](https://github.com/muxinc/elements/commit/8da36d6b597ddbc4ae006873fee13a971b7ec2f3))
65
+ - remove deprecated .hls and .video props ([#408](https://github.com/muxinc/elements/issues/408)) ([2bd4861](https://github.com/muxinc/elements/commit/2bd48618d1b59d054e470ce9011c5c2f4904f8b6))
66
+
67
+ ### BREAKING CHANGES
68
+
69
+ - remove deprecated .hls and .video props.
70
+
71
+ ## [0.6.4](https://github.com/muxinc/elements/compare/@mux/mux-audio@0.6.3...@mux/mux-audio@0.6.4) (2022-09-16)
72
+
73
+ ### Bug Fixes
74
+
75
+ - mux-video & mux-audio memory leak ([#387](https://github.com/muxinc/elements/issues/387)) ([4a0d921](https://github.com/muxinc/elements/commit/4a0d921c49a3bf730ad86a77e46a085c44ef91ea))
76
+ - update PlaybackEngine types ([1873781](https://github.com/muxinc/elements/commit/187378165a83e70d62bd5ba954b4986d0ae50738))
77
+
78
+ ## [0.6.3](https://github.com/muxinc/elements/compare/@mux/mux-audio@0.6.2...@mux/mux-audio@0.6.3) (2022-08-31)
79
+
80
+ ### Bug Fixes
81
+
82
+ - polyfills mutating global ([#355](https://github.com/muxinc/elements/issues/355)) ([71d18a4](https://github.com/muxinc/elements/commit/71d18a427f0171bb214a0df7c1425d3d1bddc47a))
83
+
84
+ ## [0.6.2](https://github.com/muxinc/elements/compare/@mux/mux-audio@0.6.1...@mux/mux-audio@0.6.2) (2022-08-02)
85
+
86
+ ### Bug Fixes
87
+
88
+ - CustomVideo.nativeEl being null in some cases ([#316](https://github.com/muxinc/elements/issues/316)) ([0563c30](https://github.com/muxinc/elements/commit/0563c3041cccd9b985a9093a8c7c7cc80433147c)), closes [#314](https://github.com/muxinc/elements/issues/314)
89
+
90
+ ## [0.6.1](https://github.com/muxinc/elements/compare/@mux/mux-audio@0.6.0...@mux/mux-audio@0.6.1) (2022-07-21)
91
+
92
+ **Note:** Version bump only for package @mux/mux-audio
93
+
94
+ # 0.6.0 (2022-07-05)
95
+
96
+ ### Bug Fixes
97
+
98
+ - Add catches with error logging if mux-video or mux-audio fails to load or parse metadata from metadata-url. ([c53a9be](https://github.com/muxinc/elements/commit/c53a9be15b7a8ec8e7191ce1136152bf3d046a63))
99
+ - clear some state on playbackId change ([#174](https://github.com/muxinc/elements/issues/174)) ([af0738e](https://github.com/muxinc/elements/commit/af0738ea5ae5a75861f75fc2ae3809ada735f3e2))
100
+ - custom video events handling ([#203](https://github.com/muxinc/elements/issues/203)) ([a909f89](https://github.com/muxinc/elements/commit/a909f89a69ee0d4b67e9d9371ac0f80984016181))
101
+ - error message was not passed back to player ([ade8143](https://github.com/muxinc/elements/commit/ade81438834610a7bddfa158ff20ec671ccd508f))
102
+ - fix 3x init of playback-core if `src` used ([#213](https://github.com/muxinc/elements/issues/213)) ([1d3e465](https://github.com/muxinc/elements/commit/1d3e465f8cc40544f0fb2c17ff4fb435c9e9a807))
103
+ - keep .hls but have it log a warning saying to use .\_hls ([11e6c10](https://github.com/muxinc/elements/commit/11e6c102a7e238bc8104c52ae9b94e7e3c2c7e19))
104
+ - **mux-audio:** Fix mux-audio, add shadow & props ([c74a448](https://github.com/muxinc/elements/commit/c74a448347cf6585944a08c977b138c560229e4e))
105
+ - **mux-audio:** use generateInitTime() instead of Date.now. ([6b67651](https://github.com/muxinc/elements/commit/6b67651245ee32ee864c8c114cdf480c618e2d8a))
106
+ - **mux-audio:** Use window polyfill for CustomAudioElement browser dependencies. ([2afb742](https://github.com/muxinc/elements/commit/2afb742911a29e708283faaca5fc966b9493670a))
107
+ - point pkgjson#browser at mjs build for webpack 4 ([#191](https://github.com/muxinc/elements/issues/191)) ([a73a495](https://github.com/muxinc/elements/commit/a73a4951052bfc77cc24667b9bc0a05efbcbb355))
108
+ - prettier format all elements files ([741d607](https://github.com/muxinc/elements/commit/741d607521ca9578cfad9f0a9216a6565b4c56a1))
109
+ - switch cjs extension to .cjs.js ([30e83c3](https://github.com/muxinc/elements/commit/30e83c3ce0bd9bfda4817c30ffe0921e425619e4))
110
+
111
+ ### Features
112
+
113
+ - add beaconCollectionDomain option to replace beaconDomain ([a44b699](https://github.com/muxinc/elements/commit/a44b699ae3138590b9d953f693f95971694658df))
114
+ - add part=video/audio for mux-video/audio ([49e5b6f](https://github.com/muxinc/elements/commit/49e5b6f14fde14d429afae5c5a46d7595c4e027e)), closes [#125](https://github.com/muxinc/elements/issues/125)
115
+ - Extended autoplay options ([#116](https://github.com/muxinc/elements/issues/116)) ([475e838](https://github.com/muxinc/elements/commit/475e83884f641c578fa601c9501147d485fc1831))
116
+ - Initial immplementation of mux-audio. ([a33b2ea](https://github.com/muxinc/elements/commit/a33b2ea1ba5b0a3c2c684291f98b3071bc4267ba))
117
+ - rename hls to \_hls ([2d53bc2](https://github.com/muxinc/elements/commit/2d53bc2517840d65a8fd5e2bb2d979ce8b491116))
118
+ - support hls audio as first pass impl. Re-add playback-id support. ([d5229d2](https://github.com/muxinc/elements/commit/d5229d26be74338158a4037ff82f23123011cc6c))
119
+ - **support-media-types:** Add support for non hls media. Add (optional) type attribute. (refs [#23](https://github.com/muxinc/elements/issues/23)) ([fe4cdd5](https://github.com/muxinc/elements/commit/fe4cdd59f63188033d737c9166ef0522b6ef74d6))
120
+ - **support-media-types:** ignore case for shorthand types. (fixes [#23](https://github.com/muxinc/elements/issues/23)) ([64eb088](https://github.com/muxinc/elements/commit/64eb0888d3d41880ff26b471db0cb964b61350ad))
121
+ - Updates to make mux-audio and mux-video builds easy to use in next.js (fixes [#15](https://github.com/muxinc/elements/issues/15)) ([99b8ea7](https://github.com/muxinc/elements/commit/99b8ea74785903c5b300007cf8c3bc8a7601ae2d))
122
+
123
+ ## [0.5.6](https://github.com/muxinc/elements/compare/@mux-elements/mux-audio@0.5.5...@mux-elements/mux-audio@0.5.6) (2022-06-23)
124
+
125
+ **Note:** Version bump only for package @mux-elements/mux-audio
126
+
127
+ ## [0.5.5](https://github.com/muxinc/elements/compare/@mux-elements/mux-audio@0.5.4...@mux-elements/mux-audio@0.5.5) (2022-06-06)
128
+
129
+ **Note:** Version bump only for package @mux-elements/mux-audio
130
+
131
+ ## [0.5.4](https://github.com/muxinc/elements/compare/@mux-elements/mux-audio@0.5.3...@mux-elements/mux-audio@0.5.4) (2022-05-26)
132
+
133
+ **Note:** Version bump only for package @mux-elements/mux-audio
134
+
135
+ ## [0.5.3](https://github.com/muxinc/elements/compare/@mux-elements/mux-audio@0.5.2...@mux-elements/mux-audio@0.5.3) (2022-05-23)
136
+
137
+ **Note:** Version bump only for package @mux-elements/mux-audio
138
+
139
+ ## [0.5.2](https://github.com/muxinc/elements/compare/@mux-elements/mux-audio@0.5.1...@mux-elements/mux-audio@0.5.2) (2022-05-20)
140
+
141
+ ### Bug Fixes
142
+
143
+ - switch cjs extension to .cjs.js ([30e83c3](https://github.com/muxinc/elements/commit/30e83c3ce0bd9bfda4817c30ffe0921e425619e4))
144
+
145
+ ## [0.5.1](https://github.com/muxinc/elements/compare/@mux-elements/mux-audio@0.5.0...@mux-elements/mux-audio@0.5.1) (2022-05-10)
146
+
147
+ ### Bug Fixes
148
+
149
+ - error message was not passed back to player ([ade8143](https://github.com/muxinc/elements/commit/ade81438834610a7bddfa158ff20ec671ccd508f))
150
+ - fix 3x init of playback-core if `src` used ([#213](https://github.com/muxinc/elements/issues/213)) ([1d3e465](https://github.com/muxinc/elements/commit/1d3e465f8cc40544f0fb2c17ff4fb435c9e9a807))
151
+
152
+ # [0.5.0](https://github.com/muxinc/elements/compare/@mux-elements/mux-audio@0.4.4...@mux-elements/mux-audio@0.5.0) (2022-05-03)
153
+
154
+ ### Bug Fixes
155
+
156
+ - custom video events handling ([#203](https://github.com/muxinc/elements/issues/203)) ([a909f89](https://github.com/muxinc/elements/commit/a909f89a69ee0d4b67e9d9371ac0f80984016181))
157
+ - keep .hls but have it log a warning saying to use .\_hls ([11e6c10](https://github.com/muxinc/elements/commit/11e6c102a7e238bc8104c52ae9b94e7e3c2c7e19))
158
+
159
+ ### Features
160
+
161
+ - add part=video/audio for mux-video/audio ([49e5b6f](https://github.com/muxinc/elements/commit/49e5b6f14fde14d429afae5c5a46d7595c4e027e)), closes [#125](https://github.com/muxinc/elements/issues/125)
162
+ - rename hls to \_hls ([2d53bc2](https://github.com/muxinc/elements/commit/2d53bc2517840d65a8fd5e2bb2d979ce8b491116))
163
+
164
+ ## [0.4.4](https://github.com/muxinc/elements/compare/@mux-elements/mux-audio@0.4.3...@mux-elements/mux-audio@0.4.4) (2022-04-22)
165
+
166
+ ### Bug Fixes
167
+
168
+ - point pkgjson#browser at mjs build for webpack 4 ([#191](https://github.com/muxinc/elements/issues/191)) ([a73a495](https://github.com/muxinc/elements/commit/a73a4951052bfc77cc24667b9bc0a05efbcbb355))
169
+
170
+ ## [0.4.3](https://github.com/muxinc/elements/compare/@mux-elements/mux-audio@0.4.2...@mux-elements/mux-audio@0.4.3) (2022-04-18)
171
+
172
+ **Note:** Version bump only for package @mux-elements/mux-audio
173
+
174
+ ## [0.4.2](https://github.com/muxinc/elements/compare/@mux-elements/mux-audio@0.4.1...@mux-elements/mux-audio@0.4.2) (2022-04-12)
175
+
176
+ ### Bug Fixes
177
+
178
+ - clear some state on playbackId change ([#174](https://github.com/muxinc/elements/issues/174)) ([af0738e](https://github.com/muxinc/elements/commit/af0738ea5ae5a75861f75fc2ae3809ada735f3e2))
179
+
180
+ ## [0.4.1](https://github.com/muxinc/elements/compare/@mux-elements/mux-audio@0.4.0...@mux-elements/mux-audio@0.4.1) (2022-04-01)
181
+
182
+ **Note:** Version bump only for package @mux-elements/mux-audio
183
+
184
+ # [0.4.0](https://github.com/muxinc/elements/compare/@mux-elements/mux-audio@0.3.0...@mux-elements/mux-audio@0.4.0) (2022-03-28)
185
+
186
+ ### Bug Fixes
187
+
188
+ - **mux-audio:** Fix mux-audio, add shadow & props ([c74a448](https://github.com/muxinc/elements/commit/c74a448347cf6585944a08c977b138c560229e4e))
189
+ - **mux-audio:** use generateInitTime() instead of Date.now. ([6b67651](https://github.com/muxinc/elements/commit/6b67651245ee32ee864c8c114cdf480c618e2d8a))
190
+ - **mux-audio:** Use window polyfill for CustomAudioElement browser dependencies. ([2afb742](https://github.com/muxinc/elements/commit/2afb742911a29e708283faaca5fc966b9493670a))
191
+ - prettier format all elements files ([741d607](https://github.com/muxinc/elements/commit/741d607521ca9578cfad9f0a9216a6565b4c56a1))
192
+
193
+ ### Features
194
+
195
+ - add beaconCollectionDomain option to replace beaconDomain ([a44b699](https://github.com/muxinc/elements/commit/a44b699ae3138590b9d953f693f95971694658df))
package/dist/cjs.json ADDED
@@ -0,0 +1,66 @@
1
+ {
2
+ "inputs": {
3
+ "../../shared/polyfills/index.js": {
4
+ "bytes": 1440,
5
+ "imports": []
6
+ },
7
+ "src/env.ts": {
8
+ "bytes": 391,
9
+ "imports": []
10
+ },
11
+ "src/CustomAudioElement.js": {
12
+ "bytes": 8466,
13
+ "imports": [
14
+ {
15
+ "path": "../../shared/polyfills/index.js",
16
+ "kind": "import-statement"
17
+ }
18
+ ]
19
+ },
20
+ "src/index.ts": {
21
+ "bytes": 11011,
22
+ "imports": [
23
+ {
24
+ "path": "../../shared/polyfills/index.js",
25
+ "kind": "import-statement"
26
+ },
27
+ {
28
+ "path": "src/env.ts",
29
+ "kind": "import-statement"
30
+ },
31
+ {
32
+ "path": "src/CustomAudioElement.js",
33
+ "kind": "import-statement"
34
+ }
35
+ ]
36
+ }
37
+ },
38
+ "outputs": {
39
+ "dist/index.cjs.js.map": {
40
+ "imports": [],
41
+ "exports": [],
42
+ "inputs": {},
43
+ "bytes": 32383
44
+ },
45
+ "dist/index.cjs.js": {
46
+ "imports": [],
47
+ "exports": [],
48
+ "entryPoint": "src/index.ts",
49
+ "inputs": {
50
+ "src/index.ts": {
51
+ "bytesInOutput": 4810
52
+ },
53
+ "../../shared/polyfills/index.js": {
54
+ "bytesInOutput": 734
55
+ },
56
+ "src/env.ts": {
57
+ "bytesInOutput": 67
58
+ },
59
+ "src/CustomAudioElement.js": {
60
+ "bytesInOutput": 2938
61
+ }
62
+ },
63
+ "bytes": 9402
64
+ }
65
+ }
66
+ }
package/dist/esm.json ADDED
@@ -0,0 +1,70 @@
1
+ {
2
+ "inputs": {
3
+ "../../shared/polyfills/index.js": {
4
+ "bytes": 1440,
5
+ "imports": []
6
+ },
7
+ "src/env.ts": {
8
+ "bytes": 391,
9
+ "imports": []
10
+ },
11
+ "src/CustomAudioElement.js": {
12
+ "bytes": 8466,
13
+ "imports": [
14
+ {
15
+ "path": "../../shared/polyfills/index.js",
16
+ "kind": "import-statement"
17
+ }
18
+ ]
19
+ },
20
+ "src/index.ts": {
21
+ "bytes": 11011,
22
+ "imports": [
23
+ {
24
+ "path": "../../shared/polyfills/index.js",
25
+ "kind": "import-statement"
26
+ },
27
+ {
28
+ "path": "src/env.ts",
29
+ "kind": "import-statement"
30
+ },
31
+ {
32
+ "path": "src/CustomAudioElement.js",
33
+ "kind": "import-statement"
34
+ }
35
+ ]
36
+ }
37
+ },
38
+ "outputs": {
39
+ "dist/index.mjs.map": {
40
+ "imports": [],
41
+ "exports": [],
42
+ "inputs": {},
43
+ "bytes": 32483
44
+ },
45
+ "dist/index.mjs": {
46
+ "imports": [],
47
+ "exports": [
48
+ "AudioEvents",
49
+ "MediaError",
50
+ "default"
51
+ ],
52
+ "entryPoint": "src/index.ts",
53
+ "inputs": {
54
+ "../../shared/polyfills/index.js": {
55
+ "bytesInOutput": 734
56
+ },
57
+ "src/index.ts": {
58
+ "bytesInOutput": 4686
59
+ },
60
+ "src/env.ts": {
61
+ "bytesInOutput": 67
62
+ },
63
+ "src/CustomAudioElement.js": {
64
+ "bytesInOutput": 2936
65
+ }
66
+ },
67
+ "bytes": 8904
68
+ }
69
+ }
70
+ }
package/dist/iife.json ADDED
@@ -0,0 +1,108 @@
1
+ {
2
+ "inputs": {
3
+ "../../shared/polyfills/index.js": {
4
+ "bytes": 1440,
5
+ "imports": []
6
+ },
7
+ "../../node_modules/mux-embed/dist/mux.js": {
8
+ "bytes": 82954,
9
+ "imports": []
10
+ },
11
+ "../../node_modules/hls.js/dist/hls.js": {
12
+ "bytes": 1092238,
13
+ "imports": []
14
+ },
15
+ "../playback-core/dist/index.mjs": {
16
+ "bytes": 11686,
17
+ "imports": [
18
+ {
19
+ "path": "../../node_modules/mux-embed/dist/mux.js",
20
+ "kind": "import-statement"
21
+ },
22
+ {
23
+ "path": "../../node_modules/hls.js/dist/hls.js",
24
+ "kind": "import-statement"
25
+ },
26
+ {
27
+ "path": "../../node_modules/hls.js/dist/hls.js",
28
+ "kind": "import-statement"
29
+ },
30
+ {
31
+ "path": "../../node_modules/hls.js/dist/hls.js",
32
+ "kind": "import-statement"
33
+ }
34
+ ]
35
+ },
36
+ "src/env.ts": {
37
+ "bytes": 391,
38
+ "imports": []
39
+ },
40
+ "src/CustomAudioElement.js": {
41
+ "bytes": 8466,
42
+ "imports": [
43
+ {
44
+ "path": "../../shared/polyfills/index.js",
45
+ "kind": "import-statement"
46
+ }
47
+ ]
48
+ },
49
+ "src/index.ts": {
50
+ "bytes": 11011,
51
+ "imports": [
52
+ {
53
+ "path": "../../shared/polyfills/index.js",
54
+ "kind": "import-statement"
55
+ },
56
+ {
57
+ "path": "../playback-core/dist/index.mjs",
58
+ "kind": "import-statement"
59
+ },
60
+ {
61
+ "path": "src/env.ts",
62
+ "kind": "import-statement"
63
+ },
64
+ {
65
+ "path": "src/CustomAudioElement.js",
66
+ "kind": "import-statement"
67
+ }
68
+ ]
69
+ }
70
+ },
71
+ "outputs": {
72
+ "dist/mux-audio.js.map": {
73
+ "imports": [],
74
+ "exports": [],
75
+ "inputs": {},
76
+ "bytes": 1824313
77
+ },
78
+ "dist/mux-audio.js": {
79
+ "imports": [],
80
+ "exports": [],
81
+ "entryPoint": "src/index.ts",
82
+ "inputs": {
83
+ "../../node_modules/mux-embed/dist/mux.js": {
84
+ "bytesInOutput": 83736
85
+ },
86
+ "../../node_modules/hls.js/dist/hls.js": {
87
+ "bytesInOutput": 403567
88
+ },
89
+ "../../shared/polyfills/index.js": {
90
+ "bytesInOutput": 767
91
+ },
92
+ "../playback-core/dist/index.mjs": {
93
+ "bytesInOutput": 11170
94
+ },
95
+ "src/env.ts": {
96
+ "bytesInOutput": 72
97
+ },
98
+ "src/CustomAudioElement.js": {
99
+ "bytesInOutput": 3002
100
+ },
101
+ "src/index.ts": {
102
+ "bytesInOutput": 4665
103
+ }
104
+ },
105
+ "bytes": 508217
106
+ }
107
+ }
108
+ }
package/dist/index.cjs.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var S=Object.defineProperty;var G=Object.getOwnPropertyDescriptor;var H=Object.getOwnPropertyNames;var q=Object.prototype.hasOwnProperty;var z=(t,s)=>{for(var e in s)S(t,e,{get:s[e],enumerable:!0})},V=(t,s,e,r)=>{if(s&&typeof s=="object"||typeof s=="function")for(let i of H(s))!q.call(t,i)&&i!==e&&S(t,i,{get:()=>s[i],enumerable:!(r=G(s,i))||r.enumerable});return t};var W=t=>V(S({},"__esModule",{value:!0}),t);var x=(t,s,e)=>{if(!s.has(t))throw TypeError("Cannot "+e)};var o=(t,s,e)=>(x(t,s,"read from private field"),e?e.call(t):s.get(t)),d=(t,s,e)=>{if(s.has(t))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(t):s.set(t,e)},c=(t,s,e,r)=>(x(t,s,"write to private field"),r?r.call(t,e):s.set(t,e),e);var b=(t,s,e)=>(x(t,s,"access private method"),e);var ne={};z(ne,{AudioEvents:()=>D,MediaError:()=>a.MediaError,default:()=>re});module.exports=W(ne);var E=class{addEventListener(){}removeEventListener(){}dispatchEvent(s){return!0}};if(typeof DocumentFragment=="undefined"){class t extends E{}globalThis.DocumentFragment=t}var T=class extends E{},I=class extends E{},$={get(t){},define(t,s,e){},upgrade(t){},whenDefined(t){return Promise.resolve(T)}},P,v=class{constructor(s,e={}){d(this,P,void 0);c(this,P,e==null?void 0:e.detail)}get detail(){return o(this,P)}initCustomEvent(){}};P=new WeakMap;function J(t,s){return new T}var K={document:{createElement:J},DocumentFragment,customElements:$,CustomEvent:v,EventTarget:E,HTMLElement:T,HTMLVideoElement:I},Y=typeof window=="undefined"||typeof globalThis.customElements=="undefined",h=Y?K:globalThis,R=Y?K.document:globalThis.document;var a=require("@mux/playback-core");var Q=()=>{try{return"0.9.1"}catch{}return"UNKNOWN"},X=Q(),w=()=>X;var D=["abort","canplay","canplaythrough","durationchange","emptied","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],U=R.createElement("template");U.innerHTML=`
1
+ "use strict";var S=Object.defineProperty;var G=Object.getOwnPropertyDescriptor;var H=Object.getOwnPropertyNames;var q=Object.prototype.hasOwnProperty;var z=(t,s)=>{for(var e in s)S(t,e,{get:s[e],enumerable:!0})},V=(t,s,e,r)=>{if(s&&typeof s=="object"||typeof s=="function")for(let i of H(s))!q.call(t,i)&&i!==e&&S(t,i,{get:()=>s[i],enumerable:!(r=G(s,i))||r.enumerable});return t};var W=t=>V(S({},"__esModule",{value:!0}),t);var x=(t,s,e)=>{if(!s.has(t))throw TypeError("Cannot "+e)};var o=(t,s,e)=>(x(t,s,"read from private field"),e?e.call(t):s.get(t)),d=(t,s,e)=>{if(s.has(t))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(t):s.set(t,e)},c=(t,s,e,r)=>(x(t,s,"write to private field"),r?r.call(t,e):s.set(t,e),e);var b=(t,s,e)=>(x(t,s,"access private method"),e);var ne={};z(ne,{AudioEvents:()=>D,MediaError:()=>a.MediaError,default:()=>re});module.exports=W(ne);var E=class{addEventListener(){}removeEventListener(){}dispatchEvent(s){return!0}};if(typeof DocumentFragment=="undefined"){class t extends E{}globalThis.DocumentFragment=t}var T=class extends E{},I=class extends E{},$={get(t){},define(t,s,e){},upgrade(t){},whenDefined(t){return Promise.resolve(T)}},P,v=class{constructor(s,e={}){d(this,P,void 0);c(this,P,e==null?void 0:e.detail)}get detail(){return o(this,P)}initCustomEvent(){}};P=new WeakMap;function J(t,s){return new T}var K={document:{createElement:J},DocumentFragment,customElements:$,CustomEvent:v,EventTarget:E,HTMLElement:T,HTMLVideoElement:I},Y=typeof window=="undefined"||typeof globalThis.customElements=="undefined",h=Y?K:globalThis,R=Y?K.document:globalThis.document;var a=require("@mux/playback-core");var Q=()=>{try{return"0.9.2"}catch{}return"UNKNOWN"},X=Q(),w=()=>X;var D=["abort","canplay","canplaythrough","durationchange","emptied","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],U=R.createElement("template");U.innerHTML=`
2
2
  <style>
3
3
  :host {
4
4
  /* display:inline (like the native el) makes it so you can't fill
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- var S=(t,n,e)=>{if(!n.has(t))throw TypeError("Cannot "+e)};var a=(t,n,e)=>(S(t,n,"read from private field"),e?e.call(t):n.get(t)),l=(t,n,e)=>{if(n.has(t))throw TypeError("Cannot add the same private member more than once");n instanceof WeakSet?n.add(t):n.set(t,e)},d=(t,n,e,s)=>(S(t,n,"write to private field"),s?s.call(t,e):n.set(t,e),e);var m=(t,n,e)=>(S(t,n,"access private method"),e);var p=class{addEventListener(){}removeEventListener(){}dispatchEvent(n){return!0}};if(typeof DocumentFragment=="undefined"){class t extends p{}globalThis.DocumentFragment=t}var y=class extends p{},x=class extends p{},j={get(t){},define(t,n,e){},upgrade(t){},whenDefined(t){return Promise.resolve(y)}},T,I=class{constructor(n,e={}){l(this,T,void 0);d(this,T,e==null?void 0:e.detail)}get detail(){return a(this,T)}initCustomEvent(){}};T=new WeakMap;function G(t,n){return new y}var N={document:{createElement:G},DocumentFragment,customElements:j,CustomEvent:I,EventTarget:p,HTMLElement:y,HTMLVideoElement:x},B=typeof window=="undefined"||typeof globalThis.customElements=="undefined",c=B?N:globalThis,v=B?N.document:globalThis.document;import{initialize as W,teardown as $,generatePlayerInitTime as J,PlaybackTypes as k,toMuxVideoURL as Q,MediaError as me}from"@mux/playback-core";var H=()=>{try{return"0.9.1"}catch{}return"UNKNOWN"},q=H(),K=()=>q;var Y=["abort","canplay","canplaythrough","durationchange","emptied","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],w=v.createElement("template");w.innerHTML=`
1
+ var S=(t,n,e)=>{if(!n.has(t))throw TypeError("Cannot "+e)};var a=(t,n,e)=>(S(t,n,"read from private field"),e?e.call(t):n.get(t)),l=(t,n,e)=>{if(n.has(t))throw TypeError("Cannot add the same private member more than once");n instanceof WeakSet?n.add(t):n.set(t,e)},d=(t,n,e,s)=>(S(t,n,"write to private field"),s?s.call(t,e):n.set(t,e),e);var m=(t,n,e)=>(S(t,n,"access private method"),e);var p=class{addEventListener(){}removeEventListener(){}dispatchEvent(n){return!0}};if(typeof DocumentFragment=="undefined"){class t extends p{}globalThis.DocumentFragment=t}var y=class extends p{},x=class extends p{},j={get(t){},define(t,n,e){},upgrade(t){},whenDefined(t){return Promise.resolve(y)}},T,I=class{constructor(n,e={}){l(this,T,void 0);d(this,T,e==null?void 0:e.detail)}get detail(){return a(this,T)}initCustomEvent(){}};T=new WeakMap;function G(t,n){return new y}var N={document:{createElement:G},DocumentFragment,customElements:j,CustomEvent:I,EventTarget:p,HTMLElement:y,HTMLVideoElement:x},B=typeof window=="undefined"||typeof globalThis.customElements=="undefined",c=B?N:globalThis,v=B?N.document:globalThis.document;import{initialize as W,teardown as $,generatePlayerInitTime as J,PlaybackTypes as k,toMuxVideoURL as Q,MediaError as me}from"@mux/playback-core";var H=()=>{try{return"0.9.2"}catch{}return"UNKNOWN"},q=H(),K=()=>q;var Y=["abort","canplay","canplaythrough","durationchange","emptied","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],w=v.createElement("template");w.innerHTML=`
2
2
  <style>
3
3
  :host {
4
4
  /* display:inline (like the native el) makes it so you can't fill
@@ -0,0 +1,112 @@
1
+ {
2
+ "inputs": {
3
+ "../../shared/polyfills/index.js": {
4
+ "bytes": 1440,
5
+ "imports": []
6
+ },
7
+ "../../node_modules/mux-embed/dist/mux.js": {
8
+ "bytes": 82954,
9
+ "imports": []
10
+ },
11
+ "../../node_modules/hls.js/dist/hls.js": {
12
+ "bytes": 1092238,
13
+ "imports": []
14
+ },
15
+ "../playback-core/dist/index.mjs": {
16
+ "bytes": 11686,
17
+ "imports": [
18
+ {
19
+ "path": "../../node_modules/mux-embed/dist/mux.js",
20
+ "kind": "import-statement"
21
+ },
22
+ {
23
+ "path": "../../node_modules/hls.js/dist/hls.js",
24
+ "kind": "import-statement"
25
+ },
26
+ {
27
+ "path": "../../node_modules/hls.js/dist/hls.js",
28
+ "kind": "import-statement"
29
+ },
30
+ {
31
+ "path": "../../node_modules/hls.js/dist/hls.js",
32
+ "kind": "import-statement"
33
+ }
34
+ ]
35
+ },
36
+ "src/env.ts": {
37
+ "bytes": 391,
38
+ "imports": []
39
+ },
40
+ "src/CustomAudioElement.js": {
41
+ "bytes": 8466,
42
+ "imports": [
43
+ {
44
+ "path": "../../shared/polyfills/index.js",
45
+ "kind": "import-statement"
46
+ }
47
+ ]
48
+ },
49
+ "src/index.ts": {
50
+ "bytes": 11011,
51
+ "imports": [
52
+ {
53
+ "path": "../../shared/polyfills/index.js",
54
+ "kind": "import-statement"
55
+ },
56
+ {
57
+ "path": "../playback-core/dist/index.mjs",
58
+ "kind": "import-statement"
59
+ },
60
+ {
61
+ "path": "src/env.ts",
62
+ "kind": "import-statement"
63
+ },
64
+ {
65
+ "path": "src/CustomAudioElement.js",
66
+ "kind": "import-statement"
67
+ }
68
+ ]
69
+ }
70
+ },
71
+ "outputs": {
72
+ "dist/mux-audio.mjs.map": {
73
+ "imports": [],
74
+ "exports": [],
75
+ "inputs": {},
76
+ "bytes": 1824313
77
+ },
78
+ "dist/mux-audio.mjs": {
79
+ "imports": [],
80
+ "exports": [
81
+ "AudioEvents",
82
+ "MediaError",
83
+ "default"
84
+ ],
85
+ "entryPoint": "src/index.ts",
86
+ "inputs": {
87
+ "../../node_modules/mux-embed/dist/mux.js": {
88
+ "bytesInOutput": 83736
89
+ },
90
+ "../../node_modules/hls.js/dist/hls.js": {
91
+ "bytesInOutput": 403567
92
+ },
93
+ "../../shared/polyfills/index.js": {
94
+ "bytesInOutput": 767
95
+ },
96
+ "../playback-core/dist/index.mjs": {
97
+ "bytesInOutput": 11170
98
+ },
99
+ "src/env.ts": {
100
+ "bytesInOutput": 72
101
+ },
102
+ "src/CustomAudioElement.js": {
103
+ "bytesInOutput": 3002
104
+ },
105
+ "src/index.ts": {
106
+ "bytesInOutput": 4665
107
+ }
108
+ },
109
+ "bytes": 508251
110
+ }
111
+ }
112
+ }