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

jwplayer-video-element

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jwplayer-video-element - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

31

jwplayer-video-element.js

@@ -90,17 +90,20 @@ import { SuperVideoElement } from 'super-media-element';

super.attributeChangedCallback(attrName, oldValue, newValue);
if (['controls', 'muted'].includes(attrName)) {
// Don't await super.attributeChangedCallback above, it would resolve later.
await this.loadComplete;
// Don't await super.attributeChangedCallback above, it would resolve later.
await this.loadComplete;
switch (attrName) {
case 'controls':
this.api
.getContainer()
.classList.toggle('jw-no-controls', !this.controls);
break;
case 'muted':
this.muted = this.getAttribute('muted') != null;
break;
}
return;
}
switch (attrName) {
case 'controls':
this.api
.getContainer()
.classList.toggle('jw-no-controls', !this.controls);
break;
case 'muted':
this.muted = this.getAttribute('muted') != null;
break;
}
super.attributeChangedCallback(attrName, oldValue, newValue);
}

@@ -117,3 +120,2 @@

set src(val) {
if (this.src == val) return;
this.setAttribute('src', val);

@@ -123,3 +125,2 @@ }

set controls(val) {
if (this.controls == val) return;
this.toggleAttribute('controls', Boolean(val));

@@ -126,0 +127,0 @@ }

{
"name": "jwplayer-video-element",
"version": "1.0.0",
"version": "1.0.1",
"description": "A custom element for the JW player with an API that matches the `<video>` API",

@@ -21,3 +21,3 @@ "type": "module",

"dependencies": {
"super-media-element": "^0.4.2"
"super-media-element": "1.0.0"
},

@@ -24,0 +24,0 @@ "devDependencies": {

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