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.
softbuilders-react-video-player
Advanced tools
npm i softbuilders-react-video-player
import SoftBuildersVideoPlayer, {
SoftBuildersVideoPlayerOptions,
SoftBuildersVideoPlayerChapter,
SoftBuildersVideoPlayerNote,
} from "softbuilders-video-player";
const options: SoftBuildersVideoPlayerOptions = {
autoplay: false,
controls: true,
muted: true,
fluid: true,
poster: "http://example.com/thumbnail.png", // thumbnail preview image
height: 420,
width: 720,
sources: [
{
src: "https://upload.wikimedia.org/wikipedia/commons/transcoded/a/ab/Caminandes_3_-_Llamigos_-_Blender_Animated_Short.webm/Caminandes_3_-_Llamigos_-_Blender_Animated_Short.webm.360p.vp9.webm",
type: "video/webm",
label: "360p",
},
{
src: "https://upload.wikimedia.org/wikipedia/commons/transcoded/a/ab/Caminandes_3_-_Llamigos_-_Blender_Animated_Short.webm/Caminandes_3_-_Llamigos_-_Blender_Animated_Short.webm.1080p.vp9.webm",
type: "video/webm",
label: "1080P",
},
],
tracks: [
{
kind: "captions",
src: "https://raw.githubusercontent.com/brenopolanski/html5-video-webvtt-example/master/MIB2-subtitles-pt-BR.vtt",
srclang: "en",
label: "English",
memeType: "text/vtt", // text/vtt or text/srt
default: true,
},
{
kind: "captions",
src: "https://gist.githubusercontent.com/samdutton/ca37f3adaf4e23679957b8083e061177/raw/e19399fbccbc069a2af4266e5120ae6bad62699a/sample.vtt",
srclang: "es",
label: "Espaniol",
memeType: "text/vtt", // text/vtt or text/srt
},
], // only vtt suptitilers are supported for now
};
const initNotes: SoftBuildersVideoPlayerNote[] = [
{
time: 5,
label: "Start",
},
{
time: 30,
label: "Say Hello",
},
{
time: 69,
label: "Go deep",
},
{
time: 99,
label: "Details ...",
},
{
time: 140,
label: "End",
},
];
const initChapters: SoftBuildersVideoPlayerChapter[] = [
{
startTime: 25,
endTime: 50,
title: "01 Note: **** Important ****",
},
{
startTime: 70,
endTime: 100,
title: "02 Note: To Do",
},
{ startTime: 110, endTime: 120, title: "03 Note: DIY (Do it yourself)" },
{
startTime: 125,
endTime: 140,
title: "05 Note: Conclusion ",
},
];
const Component = () => {
const handleSaveNoteAction = (time: number, note: string) => {
return new Promise((resolve) => {
resolve(true);
});
};
const onPause = (time: number) => {
console.log(`Video has been Paused at time (${time} sec)`);
};
const onPlay = (time: number) => {
console.log(`Video has been Played at time (${time} sec)`);
};
return (
<SoftBuildersVideoPlayer
options={options}
chapters={initChapters}
notes={initNotes}
handleSaveNoteAction={handleSaveNoteAction}
onPause={onPause}
onPlay={onPlay}
/>
);
};
export default Component;
FAQs
Standalone video player component
The npm package softbuilders-react-video-player receives a total of 109 weekly downloads. As such, softbuilders-react-video-player popularity was classified as not popular.
We found that softbuilders-react-video-player demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.