Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mux/mux-video

Package Overview
Dependencies
Maintainers
2
Versions
590
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mux/mux-video - npm Package Compare versions

Comparing version 0.8.3-canary.1-a3c965e to 0.8.3-canary.10-4ef4afe

6

CHANGELOG.md

@@ -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 @@

4

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc