Socket
Socket
Sign inDemoInstall

react-video-renderer

Package Overview
Dependencies
Maintainers
2
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-video-renderer - npm Package Compare versions

Comparing version 2.4.7 to 2.4.8

1

dist/es2015/video.d.ts

@@ -60,2 +60,3 @@ import * as React from 'react';

audioRef: RefObject<HTMLAudioElement>;
hasCanPlayTriggered: boolean;
state: VideoComponentState;

@@ -62,0 +63,0 @@ static defaultProps: {

@@ -22,2 +22,3 @@ import { __assign, __extends } from "tslib";

_this.audioRef = React.createRef();
_this.hasCanPlayTriggered = false;
_this.state = {

@@ -74,3 +75,7 @@ isLoading: true,

});
onCanPlay && onCanPlay(event);
if (!_this.hasCanPlayTriggered) {
// protect against browser firing this event multiple times
_this.hasCanPlayTriggered = true;
onCanPlay && onCanPlay(event);
}
};

@@ -153,2 +158,3 @@ _this.onPlay = function () {

if (hasSrcChanged) {
this.hasCanPlayTriggered = false;
// TODO: add test to cover this case

@@ -155,0 +161,0 @@ if (status === 'playing') {

@@ -60,2 +60,3 @@ import * as React from 'react';

audioRef: RefObject<HTMLAudioElement>;
hasCanPlayTriggered: boolean;
state: VideoComponentState;

@@ -62,0 +63,0 @@ static defaultProps: {

@@ -25,2 +25,3 @@ "use strict";

_this.audioRef = React.createRef();
_this.hasCanPlayTriggered = false;
_this.state = {

@@ -77,3 +78,7 @@ isLoading: true,

});
onCanPlay && onCanPlay(event);
if (!_this.hasCanPlayTriggered) {
// protect against browser firing this event multiple times
_this.hasCanPlayTriggered = true;
onCanPlay && onCanPlay(event);
}
};

@@ -156,2 +161,3 @@ _this.onPlay = function () {

if (hasSrcChanged) {
this.hasCanPlayTriggered = false;
// TODO: add test to cover this case

@@ -158,0 +164,0 @@ if (status === 'playing') {

2

package.json
{
"name": "react-video-renderer",
"version": "2.4.7",
"version": "2.4.8",
"main": "dist/es5/index.js",

@@ -5,0 +5,0 @@ "jsnext:main": "dist/es2015/index.js",

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