@mux/mux-audio 0.9.3 → 0.9.4-canary.0-040ea61

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,214 @@
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.4](https://github.com/muxinc/elements/compare/@mux/mux-audio@0.9.3...@mux/mux-audio@0.9.4) (2023-02-14)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **playback-core:** Typescript + min acrobatics to make svelte and others happy ([fdf34bb](https://github.com/muxinc/elements/commit/fdf34bb8fd409f0c2b5945802251ed2e6ffafd7e))
12
+
13
+
14
+
15
+
16
+
17
+ ## [0.9.3](https://github.com/muxinc/elements/compare/@mux/mux-audio@0.9.2...@mux/mux-audio@0.9.3) (2023-02-02)
18
+
19
+ **Note:** Version bump only for package @mux/mux-audio
20
+
21
+
22
+
23
+
24
+
25
+ ## [0.9.2](https://github.com/muxinc/elements/compare/@mux/mux-audio@0.9.1...@mux/mux-audio@0.9.2) (2023-02-01)
26
+
27
+ **Note:** Version bump only for package @mux/mux-audio
28
+
29
+
30
+
31
+
32
+
33
+ ## [0.9.1](https://github.com/muxinc/elements/compare/@mux/mux-audio@0.9.0...@mux/mux-audio@0.9.1) (2023-01-20)
34
+
35
+ **Note:** Version bump only for package @mux/mux-audio
36
+
37
+
38
+
39
+
40
+
41
+ # [0.9.0](https://github.com/muxinc/elements/compare/@mux/mux-audio@0.8.1...@mux/mux-audio@0.9.0) (2022-12-13)
42
+
43
+
44
+ ### Features
45
+
46
+ * 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))
47
+
48
+
49
+
50
+
51
+
52
+ ## [0.8.1](https://github.com/muxinc/elements/compare/@mux/mux-audio@0.8.0...@mux/mux-audio@0.8.1) (2022-11-21)
53
+
54
+
55
+ ### Bug Fixes
56
+
57
+ * add async effect for loading media ([#492](https://github.com/muxinc/elements/issues/492)) ([d2b250a](https://github.com/muxinc/elements/commit/d2b250a2d86e4e6a4c17fc34196e6468c4fedf1f))
58
+
59
+
60
+
61
+
62
+
63
+ # [0.8.0](https://github.com/muxinc/elements/compare/@mux/mux-audio@0.7.0...@mux/mux-audio@0.8.0) (2022-10-25)
64
+
65
+
66
+ ### Features
67
+
68
+ * **mux-audio:** Add disable cookies attr and prop. ([ef453ed](https://github.com/muxinc/elements/commit/ef453edf9cb9696150ae89f995a6af8472161153))
69
+
70
+
71
+
72
+
73
+
74
+ # [0.7.0](https://github.com/muxinc/elements/compare/@mux/mux-audio@0.6.4...@mux/mux-audio@0.7.0) (2022-10-05)
75
+
76
+ ### Bug Fixes
77
+
78
+ - preload for mux-audio, add tests ([e795fe0](https://github.com/muxinc/elements/commit/e795fe047af1feac832786aa03d8f419e57881b5))
79
+ - preload playback core change ([15313ea](https://github.com/muxinc/elements/commit/15313eaad81f748b5853a0fdaabfe141963f885e))
80
+
81
+ ### Features
82
+
83
+ - add `prefer-playback` attribute ([#402](https://github.com/muxinc/elements/issues/402)) ([8da36d6](https://github.com/muxinc/elements/commit/8da36d6b597ddbc4ae006873fee13a971b7ec2f3))
84
+ - remove deprecated .hls and .video props ([#408](https://github.com/muxinc/elements/issues/408)) ([2bd4861](https://github.com/muxinc/elements/commit/2bd48618d1b59d054e470ce9011c5c2f4904f8b6))
85
+
86
+ ### BREAKING CHANGES
87
+
88
+ - remove deprecated .hls and .video props.
89
+
90
+ ## [0.6.4](https://github.com/muxinc/elements/compare/@mux/mux-audio@0.6.3...@mux/mux-audio@0.6.4) (2022-09-16)
91
+
92
+ ### Bug Fixes
93
+
94
+ - mux-video & mux-audio memory leak ([#387](https://github.com/muxinc/elements/issues/387)) ([4a0d921](https://github.com/muxinc/elements/commit/4a0d921c49a3bf730ad86a77e46a085c44ef91ea))
95
+ - update PlaybackEngine types ([1873781](https://github.com/muxinc/elements/commit/187378165a83e70d62bd5ba954b4986d0ae50738))
96
+
97
+ ## [0.6.3](https://github.com/muxinc/elements/compare/@mux/mux-audio@0.6.2...@mux/mux-audio@0.6.3) (2022-08-31)
98
+
99
+ ### Bug Fixes
100
+
101
+ - polyfills mutating global ([#355](https://github.com/muxinc/elements/issues/355)) ([71d18a4](https://github.com/muxinc/elements/commit/71d18a427f0171bb214a0df7c1425d3d1bddc47a))
102
+
103
+ ## [0.6.2](https://github.com/muxinc/elements/compare/@mux/mux-audio@0.6.1...@mux/mux-audio@0.6.2) (2022-08-02)
104
+
105
+ ### Bug Fixes
106
+
107
+ - 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)
108
+
109
+ ## [0.6.1](https://github.com/muxinc/elements/compare/@mux/mux-audio@0.6.0...@mux/mux-audio@0.6.1) (2022-07-21)
110
+
111
+ **Note:** Version bump only for package @mux/mux-audio
112
+
113
+ # 0.6.0 (2022-07-05)
114
+
115
+ ### Bug Fixes
116
+
117
+ - 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))
118
+ - clear some state on playbackId change ([#174](https://github.com/muxinc/elements/issues/174)) ([af0738e](https://github.com/muxinc/elements/commit/af0738ea5ae5a75861f75fc2ae3809ada735f3e2))
119
+ - custom video events handling ([#203](https://github.com/muxinc/elements/issues/203)) ([a909f89](https://github.com/muxinc/elements/commit/a909f89a69ee0d4b67e9d9371ac0f80984016181))
120
+ - error message was not passed back to player ([ade8143](https://github.com/muxinc/elements/commit/ade81438834610a7bddfa158ff20ec671ccd508f))
121
+ - 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))
122
+ - keep .hls but have it log a warning saying to use .\_hls ([11e6c10](https://github.com/muxinc/elements/commit/11e6c102a7e238bc8104c52ae9b94e7e3c2c7e19))
123
+ - **mux-audio:** Fix mux-audio, add shadow & props ([c74a448](https://github.com/muxinc/elements/commit/c74a448347cf6585944a08c977b138c560229e4e))
124
+ - **mux-audio:** use generateInitTime() instead of Date.now. ([6b67651](https://github.com/muxinc/elements/commit/6b67651245ee32ee864c8c114cdf480c618e2d8a))
125
+ - **mux-audio:** Use window polyfill for CustomAudioElement browser dependencies. ([2afb742](https://github.com/muxinc/elements/commit/2afb742911a29e708283faaca5fc966b9493670a))
126
+ - 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))
127
+ - prettier format all elements files ([741d607](https://github.com/muxinc/elements/commit/741d607521ca9578cfad9f0a9216a6565b4c56a1))
128
+ - switch cjs extension to .cjs.js ([30e83c3](https://github.com/muxinc/elements/commit/30e83c3ce0bd9bfda4817c30ffe0921e425619e4))
129
+
130
+ ### Features
131
+
132
+ - add beaconCollectionDomain option to replace beaconDomain ([a44b699](https://github.com/muxinc/elements/commit/a44b699ae3138590b9d953f693f95971694658df))
133
+ - 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)
134
+ - Extended autoplay options ([#116](https://github.com/muxinc/elements/issues/116)) ([475e838](https://github.com/muxinc/elements/commit/475e83884f641c578fa601c9501147d485fc1831))
135
+ - Initial immplementation of mux-audio. ([a33b2ea](https://github.com/muxinc/elements/commit/a33b2ea1ba5b0a3c2c684291f98b3071bc4267ba))
136
+ - rename hls to \_hls ([2d53bc2](https://github.com/muxinc/elements/commit/2d53bc2517840d65a8fd5e2bb2d979ce8b491116))
137
+ - support hls audio as first pass impl. Re-add playback-id support. ([d5229d2](https://github.com/muxinc/elements/commit/d5229d26be74338158a4037ff82f23123011cc6c))
138
+ - **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))
139
+ - **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))
140
+ - 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))
141
+
142
+ ## [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)
143
+
144
+ **Note:** Version bump only for package @mux-elements/mux-audio
145
+
146
+ ## [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)
147
+
148
+ **Note:** Version bump only for package @mux-elements/mux-audio
149
+
150
+ ## [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)
151
+
152
+ **Note:** Version bump only for package @mux-elements/mux-audio
153
+
154
+ ## [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)
155
+
156
+ **Note:** Version bump only for package @mux-elements/mux-audio
157
+
158
+ ## [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)
159
+
160
+ ### Bug Fixes
161
+
162
+ - switch cjs extension to .cjs.js ([30e83c3](https://github.com/muxinc/elements/commit/30e83c3ce0bd9bfda4817c30ffe0921e425619e4))
163
+
164
+ ## [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)
165
+
166
+ ### Bug Fixes
167
+
168
+ - error message was not passed back to player ([ade8143](https://github.com/muxinc/elements/commit/ade81438834610a7bddfa158ff20ec671ccd508f))
169
+ - 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))
170
+
171
+ # [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)
172
+
173
+ ### Bug Fixes
174
+
175
+ - custom video events handling ([#203](https://github.com/muxinc/elements/issues/203)) ([a909f89](https://github.com/muxinc/elements/commit/a909f89a69ee0d4b67e9d9371ac0f80984016181))
176
+ - keep .hls but have it log a warning saying to use .\_hls ([11e6c10](https://github.com/muxinc/elements/commit/11e6c102a7e238bc8104c52ae9b94e7e3c2c7e19))
177
+
178
+ ### Features
179
+
180
+ - 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)
181
+ - rename hls to \_hls ([2d53bc2](https://github.com/muxinc/elements/commit/2d53bc2517840d65a8fd5e2bb2d979ce8b491116))
182
+
183
+ ## [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)
184
+
185
+ ### Bug Fixes
186
+
187
+ - 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))
188
+
189
+ ## [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)
190
+
191
+ **Note:** Version bump only for package @mux-elements/mux-audio
192
+
193
+ ## [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)
194
+
195
+ ### Bug Fixes
196
+
197
+ - clear some state on playbackId change ([#174](https://github.com/muxinc/elements/issues/174)) ([af0738e](https://github.com/muxinc/elements/commit/af0738ea5ae5a75861f75fc2ae3809ada735f3e2))
198
+
199
+ ## [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)
200
+
201
+ **Note:** Version bump only for package @mux-elements/mux-audio
202
+
203
+ # [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)
204
+
205
+ ### Bug Fixes
206
+
207
+ - **mux-audio:** Fix mux-audio, add shadow & props ([c74a448](https://github.com/muxinc/elements/commit/c74a448347cf6585944a08c977b138c560229e4e))
208
+ - **mux-audio:** use generateInitTime() instead of Date.now. ([6b67651](https://github.com/muxinc/elements/commit/6b67651245ee32ee864c8c114cdf480c618e2d8a))
209
+ - **mux-audio:** Use window polyfill for CustomAudioElement browser dependencies. ([2afb742](https://github.com/muxinc/elements/commit/2afb742911a29e708283faaca5fc966b9493670a))
210
+ - prettier format all elements files ([741d607](https://github.com/muxinc/elements/commit/741d607521ca9578cfad9f0a9216a6565b4c56a1))
211
+
212
+ ### Features
213
+
214
+ - 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,100 @@
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.min.js": {
12
+ "bytes": 373159,
13
+ "imports": []
14
+ },
15
+ "../playback-core/dist/index.mjs": {
16
+ "bytes": 11964,
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.min.js",
24
+ "kind": "import-statement"
25
+ }
26
+ ]
27
+ },
28
+ "src/env.ts": {
29
+ "bytes": 391,
30
+ "imports": []
31
+ },
32
+ "src/CustomAudioElement.js": {
33
+ "bytes": 8466,
34
+ "imports": [
35
+ {
36
+ "path": "../../shared/polyfills/index.js",
37
+ "kind": "import-statement"
38
+ }
39
+ ]
40
+ },
41
+ "src/index.ts": {
42
+ "bytes": 11011,
43
+ "imports": [
44
+ {
45
+ "path": "../../shared/polyfills/index.js",
46
+ "kind": "import-statement"
47
+ },
48
+ {
49
+ "path": "../playback-core/dist/index.mjs",
50
+ "kind": "import-statement"
51
+ },
52
+ {
53
+ "path": "src/env.ts",
54
+ "kind": "import-statement"
55
+ },
56
+ {
57
+ "path": "src/CustomAudioElement.js",
58
+ "kind": "import-statement"
59
+ }
60
+ ]
61
+ }
62
+ },
63
+ "outputs": {
64
+ "dist/mux-audio.js.map": {
65
+ "imports": [],
66
+ "exports": [],
67
+ "inputs": {},
68
+ "bytes": 1855525
69
+ },
70
+ "dist/mux-audio.js": {
71
+ "imports": [],
72
+ "exports": [],
73
+ "entryPoint": "src/index.ts",
74
+ "inputs": {
75
+ "../../node_modules/mux-embed/dist/mux.js": {
76
+ "bytesInOutput": 84096
77
+ },
78
+ "../../node_modules/hls.js/dist/hls.min.js": {
79
+ "bytesInOutput": 378231
80
+ },
81
+ "../../shared/polyfills/index.js": {
82
+ "bytesInOutput": 767
83
+ },
84
+ "../playback-core/dist/index.mjs": {
85
+ "bytesInOutput": 11416
86
+ },
87
+ "src/env.ts": {
88
+ "bytesInOutput": 72
89
+ },
90
+ "src/CustomAudioElement.js": {
91
+ "bytesInOutput": 3022
92
+ },
93
+ "src/index.ts": {
94
+ "bytesInOutput": 4683
95
+ }
96
+ },
97
+ "bytes": 483531
98
+ }
99
+ }
100
+ }
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.3"}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.4"}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.3"}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.4"}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,104 @@
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.min.js": {
12
+ "bytes": 373159,
13
+ "imports": []
14
+ },
15
+ "../playback-core/dist/index.mjs": {
16
+ "bytes": 11964,
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.min.js",
24
+ "kind": "import-statement"
25
+ }
26
+ ]
27
+ },
28
+ "src/env.ts": {
29
+ "bytes": 391,
30
+ "imports": []
31
+ },
32
+ "src/CustomAudioElement.js": {
33
+ "bytes": 8466,
34
+ "imports": [
35
+ {
36
+ "path": "../../shared/polyfills/index.js",
37
+ "kind": "import-statement"
38
+ }
39
+ ]
40
+ },
41
+ "src/index.ts": {
42
+ "bytes": 11011,
43
+ "imports": [
44
+ {
45
+ "path": "../../shared/polyfills/index.js",
46
+ "kind": "import-statement"
47
+ },
48
+ {
49
+ "path": "../playback-core/dist/index.mjs",
50
+ "kind": "import-statement"
51
+ },
52
+ {
53
+ "path": "src/env.ts",
54
+ "kind": "import-statement"
55
+ },
56
+ {
57
+ "path": "src/CustomAudioElement.js",
58
+ "kind": "import-statement"
59
+ }
60
+ ]
61
+ }
62
+ },
63
+ "outputs": {
64
+ "dist/mux-audio.mjs.map": {
65
+ "imports": [],
66
+ "exports": [],
67
+ "inputs": {},
68
+ "bytes": 1855525
69
+ },
70
+ "dist/mux-audio.mjs": {
71
+ "imports": [],
72
+ "exports": [
73
+ "AudioEvents",
74
+ "MediaError",
75
+ "default"
76
+ ],
77
+ "entryPoint": "src/index.ts",
78
+ "inputs": {
79
+ "../../node_modules/mux-embed/dist/mux.js": {
80
+ "bytesInOutput": 84096
81
+ },
82
+ "../../node_modules/hls.js/dist/hls.min.js": {
83
+ "bytesInOutput": 378231
84
+ },
85
+ "../../shared/polyfills/index.js": {
86
+ "bytesInOutput": 767
87
+ },
88
+ "../playback-core/dist/index.mjs": {
89
+ "bytesInOutput": 11416
90
+ },
91
+ "src/env.ts": {
92
+ "bytesInOutput": 72
93
+ },
94
+ "src/CustomAudioElement.js": {
95
+ "bytesInOutput": 3022
96
+ },
97
+ "src/index.ts": {
98
+ "bytesInOutput": 4683
99
+ }
100
+ },
101
+ "bytes": 483565
102
+ }
103
+ }
104
+ }