@mux/mux-video
Advanced tools
Comparing version 0.8.3-canary.1-a3c965e to 0.8.3-canary.10-4ef4afe
@@ -6,2 +6,8 @@ # Change Log | ||
## [0.8.3](https://github.com/muxinc/elements/compare/@mux/mux-video@0.8.2...@mux/mux-video@0.8.3) (2022-08-02) | ||
### Bug Fixes | ||
- 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) | ||
## [0.8.2](https://github.com/muxinc/elements/compare/@mux/mux-video@0.8.1...@mux/mux-video@0.8.2) (2022-07-21) | ||
@@ -8,0 +14,0 @@ |
{ | ||
"name": "@mux/mux-video", | ||
"version": "0.8.3-canary.1-a3c965e", | ||
"version": "0.8.3-canary.10-4ef4afe", | ||
"description": "A custom mux video element for the browser that Just Works™", | ||
@@ -51,3 +51,3 @@ "main": "./dist/index.cjs.js", | ||
"dependencies": { | ||
"@mux/playback-core": "0.9.1-canary.1-a3c965e" | ||
"@mux/playback-core": "0.9.1-canary.10-4ef4afe" | ||
}, | ||
@@ -54,0 +54,0 @@ "devDependencies": { |
@@ -151,6 +151,4 @@ <p align="center"> | ||
By default `<mux-video>` will try to use native playback via the underlying `<video/>` tag whenever possible. However, it can also instead use an in-code player when the browser browser supports [Media Source Extension](https://developer.mozilla.org/en-US/docs/Web/API/Media_Source_Extensions_API). This includes MSE in Mac OS Safari. | ||
Pass the `prefer-mse` attribute to prioritze the in-code [Media Source Extensions](https://developer.mozilla.org/en-US/docs/Web/API/Media_Source_Extensions_API) based engine (currently [hls.js](https://github.com/video-dev/hls.js/)) when MSE are supported by the browser. (Without `prefer-mse`, the default behaviour for `<mux-video>` is to try the native playback via the underlying `<video/>` tag ) | ||
If you prefer to use the in-code MSE-based engine (currently hls.js) whenever possible, then pass in the `prefer-mse` attribute. | ||
```html | ||
@@ -157,0 +155,0 @@ <mux-video |
@@ -69,3 +69,2 @@ import 'castable-video'; | ||
class CustomVideoElement extends HTMLElement { | ||
#hasAttrCallback; | ||
#isInit; | ||
@@ -169,7 +168,4 @@ | ||
attributeChangedCallback(attrName, oldValue, newValue) { | ||
// Initialize the attributes right after construction when they become available. | ||
if (!this.#hasAttrCallback && !this.isConnected) { | ||
this.#hasAttrCallback = true; | ||
this.#init(); | ||
} | ||
// Initialize right after construction when the attributes become available. | ||
this.#init(); | ||
@@ -220,3 +216,5 @@ this.#forwardAttribute(attrName, oldValue, newValue); | ||
connectedCallback() {} | ||
connectedCallback() { | ||
this.#init(); | ||
} | ||
} | ||
@@ -223,0 +221,0 @@ |
@@ -355,2 +355,4 @@ import { | ||
attributeChangedCallback(attrName: string, oldValue: string | null, newValue: string | null) { | ||
super.attributeChangedCallback(attrName, oldValue, newValue); | ||
switch (attrName) { | ||
@@ -410,4 +412,2 @@ case Attributes.PLAYER_SOFTWARE_NAME: | ||
} | ||
super.attributeChangedCallback(attrName, oldValue, newValue); | ||
} | ||
@@ -414,0 +414,0 @@ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
130500
2
1
56512
10
796
245
13
3
+ Added@mux/playback-core@0.9.1-canary.10-4ef4afe(transitive)
- Removed@mux/playback-core@0.9.1-canary.1-a3c965e(transitive)