Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@eyevinn/video-event-filter
Advanced tools
A simple module to filter the events sent from the video element in a way that align with what is, most probably, expected from an analytics perspective.
The main differences that this filtering brings is
pause
is triggered while not playing. I.e. for seek, buffering or similar.waiting
event we have a proper buffering
and buffered
event flow.timeupdate
is only triggered during ongoing playback.play
event after pause
is now called resume
to differ from the play
event. import { VideoEventFilter } from "@eyevinn/video-event-filter";
const videoElement = document.querySelector("video");
const videoEventFilter = new VideoEventFilter(videoElement);
videoEventFilter.addEventListener("*", (event, data) => {
console.log("EVENT:", event);
});
These are exposed as an Enum PlayerEvents
.
loading
loaded
, video have loaded, but not startedplay
, video have started to playpause
resume
, video have started to play after a pause
seeking
seeked
, video is done seeking. Continue in the state that existed before.buffering
buffered
, video is done buffering. Continue in the state that existed before.timeupdate
ended
error
You can also fetch the current state from the player, which will match the states exposed in PlayerState
.
import { VideoEventFilter } from "@eyevinn/video-event-filter";
const videoElement = document.querySelector("video");
const videoEventFilter = new VideoEventFilter(videoElement);
const currentState = videoEventFilter.getState()
FAQs
Video Event Filter ===
The npm package @eyevinn/video-event-filter receives a total of 5,119 weekly downloads. As such, @eyevinn/video-event-filter popularity was classified as popular.
We found that @eyevinn/video-event-filter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.