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

@faintlines/video-player

Package Overview
Dependencies
Maintainers
1
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@faintlines/video-player - npm Package Compare versions

Comparing version 1.1.14 to 1.1.15

12

dist/index.js

@@ -170,3 +170,3 @@ import React, { forwardRef, useState, useRef, useEffect, useContext } from 'react';

setPlaying(true);
playerRef === null || playerRef === void 0 ? void 0 : (_playerRef$current3 = playerRef.current) === null || _playerRef$current3 === void 0 ? void 0 : (_playerRef$current3$g = _playerRef$current3.getInternalPlayer()) === null || _playerRef$current3$g === void 0 ? void 0 : _playerRef$current3$g.play();
return playerRef === null || playerRef === void 0 ? void 0 : (_playerRef$current3 = playerRef.current) === null || _playerRef$current3 === void 0 ? void 0 : (_playerRef$current3$g = _playerRef$current3.getInternalPlayer()) === null || _playerRef$current3$g === void 0 ? void 0 : _playerRef$current3$g.play();
},

@@ -177,3 +177,3 @@ pause: function pause() {

setPlaying(false);
playerRef === null || playerRef === void 0 ? void 0 : (_playerRef$current4 = playerRef.current) === null || _playerRef$current4 === void 0 ? void 0 : (_playerRef$current4$g = _playerRef$current4.getInternalPlayer()) === null || _playerRef$current4$g === void 0 ? void 0 : _playerRef$current4$g.pause();
return playerRef === null || playerRef === void 0 ? void 0 : (_playerRef$current4 = playerRef.current) === null || _playerRef$current4 === void 0 ? void 0 : (_playerRef$current4$g = _playerRef$current4.getInternalPlayer()) === null || _playerRef$current4$g === void 0 ? void 0 : _playerRef$current4$g.pause();
},

@@ -183,3 +183,9 @@ seekTo: function seekTo(time) {

return playerRef === null || playerRef === void 0 ? void 0 : (_playerRef$current5 = playerRef.current) === null || _playerRef$current5 === void 0 ? void 0 : _playerRef$current5.seekTo(time, "seconds");
var player = playerRef === null || playerRef === void 0 ? void 0 : (_playerRef$current5 = playerRef.current) === null || _playerRef$current5 === void 0 ? void 0 : _playerRef$current5.getInternalPlayer();
if (player) {
player.currentTime = time;
} // TODO: the following doesn't work. figure out why
// playerRef?.current?.seekTo(time, "seconds");
}

@@ -186,0 +192,0 @@ };

{
"name": "@faintlines/video-player",
"version": "1.1.14",
"version": "1.1.15",
"description": "",

@@ -36,3 +36,3 @@ "license": "UNLICENSED",

},
"gitHead": "9d27de38e84b62a5d537ab9ac61ff9a89167466a"
"gitHead": "02661259b0aaeb0368b11d22d8166f96b28382b7"
}

Sorry, the diff of this file is not supported yet

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