@mux/mux-audio 0.10.6 → 0.10.7-canary.0-e90e096

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,312 @@
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.10.7](https://github.com/muxinc/elements/compare/@mux/mux-audio@0.10.6...@mux/mux-audio@0.10.7) (2023-08-15)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * Reverting packages type (defaults to cjs) for accuracy per node … ([#745](https://github.com/muxinc/elements/issues/745)) ([9e7a171](https://github.com/muxinc/elements/commit/9e7a17113e14b711c8da9b1bdafe65ee86454b3b))
12
+
13
+
14
+
15
+
16
+
17
+ ## [0.10.6](https://github.com/muxinc/elements/compare/@mux/mux-audio@0.10.5...@mux/mux-audio@0.10.6) (2023-08-14)
18
+
19
+ **Note:** Version bump only for package @mux/mux-audio
20
+
21
+
22
+
23
+
24
+
25
+ ## [0.10.5](https://github.com/muxinc/elements/compare/@mux/mux-audio@0.10.4...@mux/mux-audio@0.10.5) (2023-07-07)
26
+
27
+ **Note:** Version bump only for package @mux/mux-audio
28
+
29
+
30
+
31
+
32
+
33
+ ## [0.10.4](https://github.com/muxinc/elements/compare/@mux/mux-audio@0.10.3...@mux/mux-audio@0.10.4) (2023-06-29)
34
+
35
+ **Note:** Version bump only for package @mux/mux-audio
36
+
37
+
38
+
39
+
40
+
41
+ ## [0.10.3](https://github.com/muxinc/elements/compare/@mux/mux-audio@0.10.2...@mux/mux-audio@0.10.3) (2023-06-12)
42
+
43
+
44
+ ### Bug Fixes
45
+
46
+ * **playback-core, mux-video:** Handle native playback edge cases wher… ([#705](https://github.com/muxinc/elements/issues/705)) ([16f8941](https://github.com/muxinc/elements/commit/16f8941799a5186f28205a70105b26764f39b295))
47
+
48
+
49
+
50
+
51
+
52
+ ## [0.10.2](https://github.com/muxinc/elements/compare/@mux/mux-audio@0.10.1...@mux/mux-audio@0.10.2) (2023-06-06)
53
+
54
+
55
+ ### Bug Fixes
56
+
57
+ * use custom-media-element pkg ([#697](https://github.com/muxinc/elements/issues/697)) ([71c3341](https://github.com/muxinc/elements/commit/71c334157cbb16f88d57b020425534e9dde2b4ca))
58
+
59
+
60
+
61
+
62
+
63
+ ## [0.10.1](https://github.com/muxinc/elements/compare/@mux/mux-audio@0.10.0...@mux/mux-audio@0.10.1) (2023-05-08)
64
+
65
+
66
+ ### Bug Fixes
67
+
68
+ * upgrade to hls.js 1.4.1 ([#685](https://github.com/muxinc/elements/issues/685)) ([15ca4ac](https://github.com/muxinc/elements/commit/15ca4acc3b5093a409baa938429d9afaa30c80bd))
69
+
70
+
71
+
72
+
73
+
74
+ # [0.10.0](https://github.com/muxinc/elements/compare/@mux/mux-audio@0.9.6...@mux/mux-audio@0.10.0) (2023-04-14)
75
+
76
+
77
+ ### Features
78
+
79
+ * add currentPdt getter and getStartDate() method ([#661](https://github.com/muxinc/elements/issues/661)) ([530170b](https://github.com/muxinc/elements/commit/530170b789d7734d2b70fde7d59abb1ebf8a582c))
80
+
81
+
82
+
83
+
84
+
85
+ ## [0.9.6](https://github.com/muxinc/elements/compare/@mux/mux-audio@0.9.5...@mux/mux-audio@0.9.6) (2023-03-31)
86
+
87
+
88
+ ### Bug Fixes
89
+
90
+ * update typedefs, disable skipLibChecks in tsconfig ([#601](https://github.com/muxinc/elements/issues/601)) ([1664aec](https://github.com/muxinc/elements/commit/1664aec20e4cf4a59779848b298d4504eef24080))
91
+
92
+
93
+
94
+
95
+
96
+ ## [0.9.5](https://github.com/muxinc/elements/compare/@mux/mux-audio@0.9.4...@mux/mux-audio@0.9.5) (2023-02-15)
97
+
98
+ **Note:** Version bump only for package @mux/mux-audio
99
+
100
+
101
+
102
+
103
+
104
+ ## [0.9.4](https://github.com/muxinc/elements/compare/@mux/mux-audio@0.9.3...@mux/mux-audio@0.9.4) (2023-02-14)
105
+
106
+
107
+ ### Bug Fixes
108
+
109
+ * **playback-core:** Typescript + min acrobatics to make svelte and others happy ([fdf34bb](https://github.com/muxinc/elements/commit/fdf34bb8fd409f0c2b5945802251ed2e6ffafd7e))
110
+
111
+
112
+
113
+
114
+
115
+ ## [0.9.3](https://github.com/muxinc/elements/compare/@mux/mux-audio@0.9.2...@mux/mux-audio@0.9.3) (2023-02-02)
116
+
117
+ **Note:** Version bump only for package @mux/mux-audio
118
+
119
+
120
+
121
+
122
+
123
+ ## [0.9.2](https://github.com/muxinc/elements/compare/@mux/mux-audio@0.9.1...@mux/mux-audio@0.9.2) (2023-02-01)
124
+
125
+ **Note:** Version bump only for package @mux/mux-audio
126
+
127
+
128
+
129
+
130
+
131
+ ## [0.9.1](https://github.com/muxinc/elements/compare/@mux/mux-audio@0.9.0...@mux/mux-audio@0.9.1) (2023-01-20)
132
+
133
+ **Note:** Version bump only for package @mux/mux-audio
134
+
135
+
136
+
137
+
138
+
139
+ # [0.9.0](https://github.com/muxinc/elements/compare/@mux/mux-audio@0.8.1...@mux/mux-audio@0.9.0) (2022-12-13)
140
+
141
+
142
+ ### Features
143
+
144
+ * 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))
145
+
146
+
147
+
148
+
149
+
150
+ ## [0.8.1](https://github.com/muxinc/elements/compare/@mux/mux-audio@0.8.0...@mux/mux-audio@0.8.1) (2022-11-21)
151
+
152
+
153
+ ### Bug Fixes
154
+
155
+ * add async effect for loading media ([#492](https://github.com/muxinc/elements/issues/492)) ([d2b250a](https://github.com/muxinc/elements/commit/d2b250a2d86e4e6a4c17fc34196e6468c4fedf1f))
156
+
157
+
158
+
159
+
160
+
161
+ # [0.8.0](https://github.com/muxinc/elements/compare/@mux/mux-audio@0.7.0...@mux/mux-audio@0.8.0) (2022-10-25)
162
+
163
+
164
+ ### Features
165
+
166
+ * **mux-audio:** Add disable cookies attr and prop. ([ef453ed](https://github.com/muxinc/elements/commit/ef453edf9cb9696150ae89f995a6af8472161153))
167
+
168
+
169
+
170
+
171
+
172
+ # [0.7.0](https://github.com/muxinc/elements/compare/@mux/mux-audio@0.6.4...@mux/mux-audio@0.7.0) (2022-10-05)
173
+
174
+ ### Bug Fixes
175
+
176
+ - preload for mux-audio, add tests ([e795fe0](https://github.com/muxinc/elements/commit/e795fe047af1feac832786aa03d8f419e57881b5))
177
+ - preload playback core change ([15313ea](https://github.com/muxinc/elements/commit/15313eaad81f748b5853a0fdaabfe141963f885e))
178
+
179
+ ### Features
180
+
181
+ - add `prefer-playback` attribute ([#402](https://github.com/muxinc/elements/issues/402)) ([8da36d6](https://github.com/muxinc/elements/commit/8da36d6b597ddbc4ae006873fee13a971b7ec2f3))
182
+ - remove deprecated .hls and .video props ([#408](https://github.com/muxinc/elements/issues/408)) ([2bd4861](https://github.com/muxinc/elements/commit/2bd48618d1b59d054e470ce9011c5c2f4904f8b6))
183
+
184
+ ### BREAKING CHANGES
185
+
186
+ - remove deprecated .hls and .video props.
187
+
188
+ ## [0.6.4](https://github.com/muxinc/elements/compare/@mux/mux-audio@0.6.3...@mux/mux-audio@0.6.4) (2022-09-16)
189
+
190
+ ### Bug Fixes
191
+
192
+ - mux-video & mux-audio memory leak ([#387](https://github.com/muxinc/elements/issues/387)) ([4a0d921](https://github.com/muxinc/elements/commit/4a0d921c49a3bf730ad86a77e46a085c44ef91ea))
193
+ - update PlaybackEngine types ([1873781](https://github.com/muxinc/elements/commit/187378165a83e70d62bd5ba954b4986d0ae50738))
194
+
195
+ ## [0.6.3](https://github.com/muxinc/elements/compare/@mux/mux-audio@0.6.2...@mux/mux-audio@0.6.3) (2022-08-31)
196
+
197
+ ### Bug Fixes
198
+
199
+ - polyfills mutating global ([#355](https://github.com/muxinc/elements/issues/355)) ([71d18a4](https://github.com/muxinc/elements/commit/71d18a427f0171bb214a0df7c1425d3d1bddc47a))
200
+
201
+ ## [0.6.2](https://github.com/muxinc/elements/compare/@mux/mux-audio@0.6.1...@mux/mux-audio@0.6.2) (2022-08-02)
202
+
203
+ ### Bug Fixes
204
+
205
+ - 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)
206
+
207
+ ## [0.6.1](https://github.com/muxinc/elements/compare/@mux/mux-audio@0.6.0...@mux/mux-audio@0.6.1) (2022-07-21)
208
+
209
+ **Note:** Version bump only for package @mux/mux-audio
210
+
211
+ # 0.6.0 (2022-07-05)
212
+
213
+ ### Bug Fixes
214
+
215
+ - 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))
216
+ - clear some state on playbackId change ([#174](https://github.com/muxinc/elements/issues/174)) ([af0738e](https://github.com/muxinc/elements/commit/af0738ea5ae5a75861f75fc2ae3809ada735f3e2))
217
+ - custom video events handling ([#203](https://github.com/muxinc/elements/issues/203)) ([a909f89](https://github.com/muxinc/elements/commit/a909f89a69ee0d4b67e9d9371ac0f80984016181))
218
+ - error message was not passed back to player ([ade8143](https://github.com/muxinc/elements/commit/ade81438834610a7bddfa158ff20ec671ccd508f))
219
+ - 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))
220
+ - keep .hls but have it log a warning saying to use .\_hls ([11e6c10](https://github.com/muxinc/elements/commit/11e6c102a7e238bc8104c52ae9b94e7e3c2c7e19))
221
+ - **mux-audio:** Fix mux-audio, add shadow & props ([c74a448](https://github.com/muxinc/elements/commit/c74a448347cf6585944a08c977b138c560229e4e))
222
+ - **mux-audio:** use generateInitTime() instead of Date.now. ([6b67651](https://github.com/muxinc/elements/commit/6b67651245ee32ee864c8c114cdf480c618e2d8a))
223
+ - **mux-audio:** Use window polyfill for CustomAudioElement browser dependencies. ([2afb742](https://github.com/muxinc/elements/commit/2afb742911a29e708283faaca5fc966b9493670a))
224
+ - 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))
225
+ - prettier format all elements files ([741d607](https://github.com/muxinc/elements/commit/741d607521ca9578cfad9f0a9216a6565b4c56a1))
226
+ - switch cjs extension to .cjs.js ([30e83c3](https://github.com/muxinc/elements/commit/30e83c3ce0bd9bfda4817c30ffe0921e425619e4))
227
+
228
+ ### Features
229
+
230
+ - add beaconCollectionDomain option to replace beaconDomain ([a44b699](https://github.com/muxinc/elements/commit/a44b699ae3138590b9d953f693f95971694658df))
231
+ - 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)
232
+ - Extended autoplay options ([#116](https://github.com/muxinc/elements/issues/116)) ([475e838](https://github.com/muxinc/elements/commit/475e83884f641c578fa601c9501147d485fc1831))
233
+ - Initial immplementation of mux-audio. ([a33b2ea](https://github.com/muxinc/elements/commit/a33b2ea1ba5b0a3c2c684291f98b3071bc4267ba))
234
+ - rename hls to \_hls ([2d53bc2](https://github.com/muxinc/elements/commit/2d53bc2517840d65a8fd5e2bb2d979ce8b491116))
235
+ - support hls audio as first pass impl. Re-add playback-id support. ([d5229d2](https://github.com/muxinc/elements/commit/d5229d26be74338158a4037ff82f23123011cc6c))
236
+ - **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))
237
+ - **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))
238
+ - 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))
239
+
240
+ ## [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)
241
+
242
+ **Note:** Version bump only for package @mux-elements/mux-audio
243
+
244
+ ## [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)
245
+
246
+ **Note:** Version bump only for package @mux-elements/mux-audio
247
+
248
+ ## [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)
249
+
250
+ **Note:** Version bump only for package @mux-elements/mux-audio
251
+
252
+ ## [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)
253
+
254
+ **Note:** Version bump only for package @mux-elements/mux-audio
255
+
256
+ ## [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)
257
+
258
+ ### Bug Fixes
259
+
260
+ - switch cjs extension to .cjs.js ([30e83c3](https://github.com/muxinc/elements/commit/30e83c3ce0bd9bfda4817c30ffe0921e425619e4))
261
+
262
+ ## [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)
263
+
264
+ ### Bug Fixes
265
+
266
+ - error message was not passed back to player ([ade8143](https://github.com/muxinc/elements/commit/ade81438834610a7bddfa158ff20ec671ccd508f))
267
+ - 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))
268
+
269
+ # [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)
270
+
271
+ ### Bug Fixes
272
+
273
+ - custom video events handling ([#203](https://github.com/muxinc/elements/issues/203)) ([a909f89](https://github.com/muxinc/elements/commit/a909f89a69ee0d4b67e9d9371ac0f80984016181))
274
+ - keep .hls but have it log a warning saying to use .\_hls ([11e6c10](https://github.com/muxinc/elements/commit/11e6c102a7e238bc8104c52ae9b94e7e3c2c7e19))
275
+
276
+ ### Features
277
+
278
+ - 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)
279
+ - rename hls to \_hls ([2d53bc2](https://github.com/muxinc/elements/commit/2d53bc2517840d65a8fd5e2bb2d979ce8b491116))
280
+
281
+ ## [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)
282
+
283
+ ### Bug Fixes
284
+
285
+ - 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))
286
+
287
+ ## [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)
288
+
289
+ **Note:** Version bump only for package @mux-elements/mux-audio
290
+
291
+ ## [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)
292
+
293
+ ### Bug Fixes
294
+
295
+ - clear some state on playbackId change ([#174](https://github.com/muxinc/elements/issues/174)) ([af0738e](https://github.com/muxinc/elements/commit/af0738ea5ae5a75861f75fc2ae3809ada735f3e2))
296
+
297
+ ## [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)
298
+
299
+ **Note:** Version bump only for package @mux-elements/mux-audio
300
+
301
+ # [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)
302
+
303
+ ### Bug Fixes
304
+
305
+ - **mux-audio:** Fix mux-audio, add shadow & props ([c74a448](https://github.com/muxinc/elements/commit/c74a448347cf6585944a08c977b138c560229e4e))
306
+ - **mux-audio:** use generateInitTime() instead of Date.now. ([6b67651](https://github.com/muxinc/elements/commit/6b67651245ee32ee864c8c114cdf480c618e2d8a))
307
+ - **mux-audio:** Use window polyfill for CustomAudioElement browser dependencies. ([2afb742](https://github.com/muxinc/elements/commit/2afb742911a29e708283faaca5fc966b9493670a))
308
+ - prettier format all elements files ([741d607](https://github.com/muxinc/elements/commit/741d607521ca9578cfad9f0a9216a6565b4c56a1))
309
+
310
+ ### Features
311
+
312
+ - add beaconCollectionDomain option to replace beaconDomain ([a44b699](https://github.com/muxinc/elements/commit/a44b699ae3138590b9d953f693f95971694658df))
package/dist/cjs.json ADDED
@@ -0,0 +1,61 @@
1
+ {
2
+ "inputs": {
3
+ "src/polyfills/index.ts": {
4
+ "bytes": 2117,
5
+ "imports": []
6
+ },
7
+ "src/env.ts": {
8
+ "bytes": 391,
9
+ "imports": []
10
+ },
11
+ "../../node_modules/custom-media-element/custom-media-element.js": {
12
+ "bytes": 10645,
13
+ "imports": []
14
+ },
15
+ "src/index.ts": {
16
+ "bytes": 11631,
17
+ "imports": [
18
+ {
19
+ "path": "src/polyfills/index.ts",
20
+ "kind": "import-statement"
21
+ },
22
+ {
23
+ "path": "src/env.ts",
24
+ "kind": "import-statement"
25
+ },
26
+ {
27
+ "path": "../../node_modules/custom-media-element/custom-media-element.js",
28
+ "kind": "import-statement"
29
+ }
30
+ ]
31
+ }
32
+ },
33
+ "outputs": {
34
+ "dist/index.cjs.js.map": {
35
+ "imports": [],
36
+ "exports": [],
37
+ "inputs": {},
38
+ "bytes": 38675
39
+ },
40
+ "dist/index.cjs.js": {
41
+ "imports": [],
42
+ "exports": [],
43
+ "entryPoint": "src/index.ts",
44
+ "inputs": {
45
+ "src/index.ts": {
46
+ "bytesInOutput": 5080
47
+ },
48
+ "src/polyfills/index.ts": {
49
+ "bytesInOutput": 739
50
+ },
51
+ "src/env.ts": {
52
+ "bytesInOutput": 72
53
+ },
54
+ "../../node_modules/custom-media-element/custom-media-element.js": {
55
+ "bytesInOutput": 5139
56
+ }
57
+ },
58
+ "bytes": 12031
59
+ }
60
+ }
61
+ }
package/dist/esm.json ADDED
@@ -0,0 +1,65 @@
1
+ {
2
+ "inputs": {
3
+ "src/polyfills/index.ts": {
4
+ "bytes": 2117,
5
+ "imports": []
6
+ },
7
+ "src/env.ts": {
8
+ "bytes": 391,
9
+ "imports": []
10
+ },
11
+ "../../node_modules/custom-media-element/custom-media-element.js": {
12
+ "bytes": 10645,
13
+ "imports": []
14
+ },
15
+ "src/index.ts": {
16
+ "bytes": 11631,
17
+ "imports": [
18
+ {
19
+ "path": "src/polyfills/index.ts",
20
+ "kind": "import-statement"
21
+ },
22
+ {
23
+ "path": "src/env.ts",
24
+ "kind": "import-statement"
25
+ },
26
+ {
27
+ "path": "../../node_modules/custom-media-element/custom-media-element.js",
28
+ "kind": "import-statement"
29
+ }
30
+ ]
31
+ }
32
+ },
33
+ "outputs": {
34
+ "dist/index.mjs.map": {
35
+ "imports": [],
36
+ "exports": [],
37
+ "inputs": {},
38
+ "bytes": 38908
39
+ },
40
+ "dist/index.mjs": {
41
+ "imports": [],
42
+ "exports": [
43
+ "AudioEvents",
44
+ "MediaError",
45
+ "default"
46
+ ],
47
+ "entryPoint": "src/index.ts",
48
+ "inputs": {
49
+ "src/polyfills/index.ts": {
50
+ "bytesInOutput": 739
51
+ },
52
+ "src/index.ts": {
53
+ "bytesInOutput": 4978
54
+ },
55
+ "src/env.ts": {
56
+ "bytesInOutput": 72
57
+ },
58
+ "../../node_modules/custom-media-element/custom-media-element.js": {
59
+ "bytesInOutput": 5135
60
+ }
61
+ },
62
+ "bytes": 11574
63
+ }
64
+ }
65
+ }
package/dist/iife.json ADDED
@@ -0,0 +1,95 @@
1
+ {
2
+ "inputs": {
3
+ "src/polyfills/index.ts": {
4
+ "bytes": 2117,
5
+ "imports": []
6
+ },
7
+ "../../node_modules/mux-embed/dist/mux.js": {
8
+ "bytes": 83733,
9
+ "imports": []
10
+ },
11
+ "../../node_modules/hls.js/dist/hls.mjs": {
12
+ "bytes": 887116,
13
+ "imports": []
14
+ },
15
+ "../playback-core/dist/index.mjs": {
16
+ "bytes": 17448,
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.mjs",
24
+ "kind": "import-statement"
25
+ }
26
+ ]
27
+ },
28
+ "src/env.ts": {
29
+ "bytes": 391,
30
+ "imports": []
31
+ },
32
+ "../../node_modules/custom-media-element/custom-media-element.js": {
33
+ "bytes": 10645,
34
+ "imports": []
35
+ },
36
+ "src/index.ts": {
37
+ "bytes": 11631,
38
+ "imports": [
39
+ {
40
+ "path": "src/polyfills/index.ts",
41
+ "kind": "import-statement"
42
+ },
43
+ {
44
+ "path": "../playback-core/dist/index.mjs",
45
+ "kind": "import-statement"
46
+ },
47
+ {
48
+ "path": "src/env.ts",
49
+ "kind": "import-statement"
50
+ },
51
+ {
52
+ "path": "../../node_modules/custom-media-element/custom-media-element.js",
53
+ "kind": "import-statement"
54
+ }
55
+ ]
56
+ }
57
+ },
58
+ "outputs": {
59
+ "dist/mux-audio.js.map": {
60
+ "imports": [],
61
+ "exports": [],
62
+ "inputs": {},
63
+ "bytes": 1938689
64
+ },
65
+ "dist/mux-audio.js": {
66
+ "imports": [],
67
+ "exports": [],
68
+ "entryPoint": "src/index.ts",
69
+ "inputs": {
70
+ "../../node_modules/mux-embed/dist/mux.js": {
71
+ "bytesInOutput": 83952
72
+ },
73
+ "src/polyfills/index.ts": {
74
+ "bytesInOutput": 767
75
+ },
76
+ "../playback-core/dist/index.mjs": {
77
+ "bytesInOutput": 15867
78
+ },
79
+ "../../node_modules/hls.js/dist/hls.mjs": {
80
+ "bytesInOutput": 356376
81
+ },
82
+ "src/env.ts": {
83
+ "bytesInOutput": 73
84
+ },
85
+ "../../node_modules/custom-media-element/custom-media-element.js": {
86
+ "bytesInOutput": 5180
87
+ },
88
+ "src/index.ts": {
89
+ "bytesInOutput": 4878
90
+ }
91
+ },
92
+ "bytes": 468465
93
+ }
94
+ }
95
+ }
package/dist/index.cjs.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var Y=Object.defineProperty;var at=Object.getOwnPropertyDescriptor;var ot=Object.getOwnPropertyNames;var ut=Object.prototype.hasOwnProperty;var lt=(i,e,t)=>e in i?Y(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var dt=(i,e)=>{for(var t in e)Y(i,t,{get:e[t],enumerable:!0})},ct=(i,e,t,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let u of ot(e))!ut.call(i,u)&&u!==t&&Y(i,u,{get:()=>e[u],enumerable:!(a=at(e,u))||a.enumerable});return i};var ht=i=>ct(Y({},"__esModule",{value:!0}),i);var F=(i,e,t)=>(lt(i,typeof e!="symbol"?e+"":e,t),t),H=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)};var c=(i,e,t)=>(H(i,e,"read from private field"),t?t.call(i):e.get(i)),h=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},b=(i,e,t,a)=>(H(i,e,"write to private field"),a?a.call(i,t):e.set(i,t),t);var g=(i,e,t)=>(H(i,e,"access private method"),t);var Ct={};dt(Ct,{AudioEvents:()=>W,MediaError:()=>d.MediaError,default:()=>Tt});module.exports=ht(Ct);var _=class{addEventListener(){}removeEventListener(){}dispatchEvent(e){return!0}};if(typeof DocumentFragment=="undefined"){class i extends _{}globalThis.DocumentFragment=i}var I=class extends _{},V=class extends _{},mt={get(i){},define(i,e,t){},upgrade(i){},whenDefined(i){return Promise.resolve(I)}},N,q=class{constructor(e,t={}){h(this,N,void 0);b(this,N,t==null?void 0:t.detail)}get detail(){return c(this,N)}initCustomEvent(){}};N=new WeakMap;function pt(i,e){return new I}var Q={document:{createElement:pt},DocumentFragment,customElements:mt,CustomEvent:q,EventTarget:_,HTMLElement:I,HTMLVideoElement:V},X=typeof window=="undefined"||typeof globalThis.customElements=="undefined",U=X?Q:globalThis,_t=X?Q.document:globalThis.document;var d=require("@mux/playback-core");var bt=()=>{try{return"0.10.6"}catch{}return"UNKNOWN"},ft=bt(),Z=()=>ft;var W=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting","waitingforkey","resize","enterpictureinpicture","leavepictureinpicture","webkitbeginfullscreen","webkitendfullscreen","webkitpresentationmodechanged"],tt,$=(tt=globalThis.document)==null?void 0:tt.createElement("template");$&&($.innerHTML=`
1
+ "use strict";var Y=Object.defineProperty;var at=Object.getOwnPropertyDescriptor;var ot=Object.getOwnPropertyNames;var ut=Object.prototype.hasOwnProperty;var lt=(i,e,t)=>e in i?Y(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var dt=(i,e)=>{for(var t in e)Y(i,t,{get:e[t],enumerable:!0})},ct=(i,e,t,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let u of ot(e))!ut.call(i,u)&&u!==t&&Y(i,u,{get:()=>e[u],enumerable:!(a=at(e,u))||a.enumerable});return i};var ht=i=>ct(Y({},"__esModule",{value:!0}),i);var F=(i,e,t)=>(lt(i,typeof e!="symbol"?e+"":e,t),t),H=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)};var c=(i,e,t)=>(H(i,e,"read from private field"),t?t.call(i):e.get(i)),h=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},b=(i,e,t,a)=>(H(i,e,"write to private field"),a?a.call(i,t):e.set(i,t),t);var g=(i,e,t)=>(H(i,e,"access private method"),t);var Ct={};dt(Ct,{AudioEvents:()=>W,MediaError:()=>d.MediaError,default:()=>Tt});module.exports=ht(Ct);var _=class{addEventListener(){}removeEventListener(){}dispatchEvent(e){return!0}};if(typeof DocumentFragment=="undefined"){class i extends _{}globalThis.DocumentFragment=i}var I=class extends _{},V=class extends _{},mt={get(i){},define(i,e,t){},upgrade(i){},whenDefined(i){return Promise.resolve(I)}},N,q=class{constructor(e,t={}){h(this,N,void 0);b(this,N,t==null?void 0:t.detail)}get detail(){return c(this,N)}initCustomEvent(){}};N=new WeakMap;function pt(i,e){return new I}var Q={document:{createElement:pt},DocumentFragment,customElements:mt,CustomEvent:q,EventTarget:_,HTMLElement:I,HTMLVideoElement:V},X=typeof window=="undefined"||typeof globalThis.customElements=="undefined",U=X?Q:globalThis,_t=X?Q.document:globalThis.document;var d=require("@mux/playback-core");var bt=()=>{try{return"0.10.7"}catch{}return"UNKNOWN"},ft=bt(),Z=()=>ft;var W=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting","waitingforkey","resize","enterpictureinpicture","leavepictureinpicture","webkitbeginfullscreen","webkitendfullscreen","webkitpresentationmodechanged"],tt,$=(tt=globalThis.document)==null?void 0:tt.createElement("template");$&&($.innerHTML=`
2
2
  <style>
3
3
  :host {
4
4
  display: inline-block;
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- var nt=Object.defineProperty;var at=(i,e,t)=>e in i?nt(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var G=(i,e,t)=>(at(i,typeof e!="symbol"?e+"":e,t),t),F=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)};var d=(i,e,t)=>(F(i,e,"read from private field"),t?t.call(i):e.get(i)),c=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},p=(i,e,t,o)=>(F(i,e,"write to private field"),o?o.call(i,t):e.set(i,t),t);var f=(i,e,t)=>(F(i,e,"access private method"),t);var k=class{addEventListener(){}removeEventListener(){}dispatchEvent(e){return!0}};if(typeof DocumentFragment=="undefined"){class i extends k{}globalThis.DocumentFragment=i}var S=class extends k{},H=class extends k{},ot={get(i){},define(i,e,t){},upgrade(i){},whenDefined(i){return Promise.resolve(S)}},I,V=class{constructor(e,t={}){c(this,I,void 0);p(this,I,t==null?void 0:t.detail)}get detail(){return d(this,I)}initCustomEvent(){}};I=new WeakMap;function ut(i,e){return new S}var W={document:{createElement:ut},DocumentFragment,customElements:ot,CustomEvent:V,EventTarget:k,HTMLElement:S,HTMLVideoElement:H},J=typeof window=="undefined"||typeof globalThis.customElements=="undefined",K=J?W:globalThis,kt=J?W.document:globalThis.document;import{initialize as ht,teardown as mt,generatePlayerInitTime as pt,PlaybackTypes as U,toMuxVideoURL as bt,MediaError as Yt,getStartDate as ft,getCurrentPdt as gt,getEnded as Et}from"@mux/playback-core";var lt=()=>{try{return"0.10.6"}catch{}return"UNKNOWN"},dt=lt(),Q=()=>dt;var tt=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting","waitingforkey","resize","enterpictureinpicture","leavepictureinpicture","webkitbeginfullscreen","webkitendfullscreen","webkitpresentationmodechanged"],X,q=(X=globalThis.document)==null?void 0:X.createElement("template");q&&(q.innerHTML=`
1
+ var nt=Object.defineProperty;var at=(i,e,t)=>e in i?nt(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var G=(i,e,t)=>(at(i,typeof e!="symbol"?e+"":e,t),t),F=(i,e,t)=>{if(!e.has(i))throw TypeError("Cannot "+t)};var d=(i,e,t)=>(F(i,e,"read from private field"),t?t.call(i):e.get(i)),c=(i,e,t)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,t)},p=(i,e,t,o)=>(F(i,e,"write to private field"),o?o.call(i,t):e.set(i,t),t);var f=(i,e,t)=>(F(i,e,"access private method"),t);var k=class{addEventListener(){}removeEventListener(){}dispatchEvent(e){return!0}};if(typeof DocumentFragment=="undefined"){class i extends k{}globalThis.DocumentFragment=i}var S=class extends k{},H=class extends k{},ot={get(i){},define(i,e,t){},upgrade(i){},whenDefined(i){return Promise.resolve(S)}},I,V=class{constructor(e,t={}){c(this,I,void 0);p(this,I,t==null?void 0:t.detail)}get detail(){return d(this,I)}initCustomEvent(){}};I=new WeakMap;function ut(i,e){return new S}var W={document:{createElement:ut},DocumentFragment,customElements:ot,CustomEvent:V,EventTarget:k,HTMLElement:S,HTMLVideoElement:H},J=typeof window=="undefined"||typeof globalThis.customElements=="undefined",K=J?W:globalThis,kt=J?W.document:globalThis.document;import{initialize as ht,teardown as mt,generatePlayerInitTime as pt,PlaybackTypes as U,toMuxVideoURL as bt,MediaError as Yt,getStartDate as ft,getCurrentPdt as gt,getEnded as Et}from"@mux/playback-core";var lt=()=>{try{return"0.10.7"}catch{}return"UNKNOWN"},dt=lt(),Q=()=>dt;var tt=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting","waitingforkey","resize","enterpictureinpicture","leavepictureinpicture","webkitbeginfullscreen","webkitendfullscreen","webkitpresentationmodechanged"],X,q=(X=globalThis.document)==null?void 0:X.createElement("template");q&&(q.innerHTML=`
2
2
  <style>
3
3
  :host {
4
4
  display: inline-block;
@@ -0,0 +1,99 @@
1
+ {
2
+ "inputs": {
3
+ "src/polyfills/index.ts": {
4
+ "bytes": 2117,
5
+ "imports": []
6
+ },
7
+ "../../node_modules/mux-embed/dist/mux.js": {
8
+ "bytes": 83733,
9
+ "imports": []
10
+ },
11
+ "../../node_modules/hls.js/dist/hls.mjs": {
12
+ "bytes": 887116,
13
+ "imports": []
14
+ },
15
+ "../playback-core/dist/index.mjs": {
16
+ "bytes": 17448,
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.mjs",
24
+ "kind": "import-statement"
25
+ }
26
+ ]
27
+ },
28
+ "src/env.ts": {
29
+ "bytes": 391,
30
+ "imports": []
31
+ },
32
+ "../../node_modules/custom-media-element/custom-media-element.js": {
33
+ "bytes": 10645,
34
+ "imports": []
35
+ },
36
+ "src/index.ts": {
37
+ "bytes": 11631,
38
+ "imports": [
39
+ {
40
+ "path": "src/polyfills/index.ts",
41
+ "kind": "import-statement"
42
+ },
43
+ {
44
+ "path": "../playback-core/dist/index.mjs",
45
+ "kind": "import-statement"
46
+ },
47
+ {
48
+ "path": "src/env.ts",
49
+ "kind": "import-statement"
50
+ },
51
+ {
52
+ "path": "../../node_modules/custom-media-element/custom-media-element.js",
53
+ "kind": "import-statement"
54
+ }
55
+ ]
56
+ }
57
+ },
58
+ "outputs": {
59
+ "dist/mux-audio.mjs.map": {
60
+ "imports": [],
61
+ "exports": [],
62
+ "inputs": {},
63
+ "bytes": 1938689
64
+ },
65
+ "dist/mux-audio.mjs": {
66
+ "imports": [],
67
+ "exports": [
68
+ "AudioEvents",
69
+ "MediaError",
70
+ "default"
71
+ ],
72
+ "entryPoint": "src/index.ts",
73
+ "inputs": {
74
+ "../../node_modules/mux-embed/dist/mux.js": {
75
+ "bytesInOutput": 83952
76
+ },
77
+ "src/polyfills/index.ts": {
78
+ "bytesInOutput": 767
79
+ },
80
+ "../playback-core/dist/index.mjs": {
81
+ "bytesInOutput": 15867
82
+ },
83
+ "../../node_modules/hls.js/dist/hls.mjs": {
84
+ "bytesInOutput": 356376
85
+ },
86
+ "src/env.ts": {
87
+ "bytesInOutput": 73
88
+ },
89
+ "../../node_modules/custom-media-element/custom-media-element.js": {
90
+ "bytesInOutput": 5180
91
+ },
92
+ "src/index.ts": {
93
+ "bytesInOutput": 4878
94
+ }
95
+ },
96
+ "bytes": 468499
97
+ }
98
+ }
99
+ }