
Research
/Security News
Mini Shai-Hulud Campaign Hits Red Hat Cloud Services npm Packages
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.
@interactify-live/player-react-native
Advanced tools
React Native library for Interactify player with media display, widgets, and MQTT integration
React Native library for Interactify player with media display, interactive widgets, and real-time MQTT integration.
This library requires react-native-video as a peer dependency. Install it first:
npm install react-native-video
# or
yarn add react-native-video
Then install this library:
npm install @interactify-live/player-react-native
# or
yarn add @interactify-live/player-react-native
react: >=16.8.0react-native: >=0.60.0react-native-video: >=5.0.0import React from "react";
import { InteractifyPlayer } from "@interactify-live/player-react-native";
const App = () => {
const media = {
id: "test-stream",
type: "video",
url: "https://example.com/video.mp4",
};
const interactions = [
{
interaction: "text",
geometric: {
x: 20,
y: 20,
width: 200,
height: 50,
},
payload: {
text: "Amazing Video!",
size: 18,
color: "#ffffff",
background: "rgba(0,0,0,0.8)",
borderRadius: 8,
},
},
];
const options = {
user_id: "USER_ID",
token: "TOKEN",
scope: "short",
space_slug: "SPACE_SLUG",
slug: "SLUG",
session: "SESSION",
};
return (
<InteractifyPlayer
media={media}
interactions={interactions}
autoPlay={true}
muted={true}
loop={true}
isDraggable={true}
options={options}
onPlay={() => console.log("Started playing")}
onPause={() => console.log("Paused")}
onError={(error) => console.error("Error:", error)}
onStatusChange={(status) => console.log("Connection:", status)}
onNewMessageReceived={(message) => console.log("Message:", message)}
/>
);
};
interface InteractifyPlayerProps {
// Media configuration
media: {
id: string;
type: "video" | "image";
url: string;
thumbnail?: string;
alt?: string;
};
// Interactive widgets configuration
interactions: any[];
// Media playback options
autoPlay?: boolean;
muted?: boolean;
loop?: boolean;
isDraggable?: boolean;
// Event handlers
onPlay?: () => void;
onPause?: () => void;
onEnded?: () => void;
onTimeUpdate?: (time: number) => void;
onError?: (error: Error) => void;
onInteractionClick?: (interaction: any) => void;
onInteractionDragEnd?: (
index: number,
geometric: { x: number; y: number; width: number; height: number }
) => void;
onVideoReady?: (videoRef: any) => void;
// UI customization
loadingIndicator?: ReactNode;
errorIndicator?: ReactNode;
className?: string;
style?: any;
// MQTT connection options
options?: {
user_id: string;
token: string;
scope: "short" | "live";
space_slug: string;
slug: string;
session: string;
brokerUrl?: string;
};
// MQTT event handlers
onStatusChange?: (status: string) => void;
onNewMessageReceived?: (message: any) => void;
}
interface InteractifyPlayerHandle {
// Media control
play: () => void;
pause: () => void;
mute: () => void;
unmute: () => void;
getCurrentTime: () => number;
setCurrentTime: (time: number) => void;
isMuted: () => boolean;
isPlaying: () => boolean;
// Widget management
setInteractions: (interactions: any[]) => void;
// Video element access
getVideoElement: () => any;
loadStream: (stream: any) => void;
// MQTT actions
publishEvent: (type: string) => void;
sendMessage: (message: {
text: string;
avatar?: string;
displayName?: string;
visible?: boolean;
replyTo?: {
text: string;
userID: string;
displayName: string;
};
}) => void;
subscribeToNewMessages: (callback: (message: any) => void) => () => void;
}
import React, { useRef } from "react";
import {
InteractifyPlayer,
InteractifyPlayerHandle,
} from "@interactify-live/player-react-native";
const App = () => {
const playerRef = useRef<InteractifyPlayerHandle>(null);
const handleLike = () => {
playerRef.current?.publishEvent("like");
};
const handleSendMessage = () => {
playerRef.current?.sendMessage({
text: "Hello from React Native!",
displayName: "User",
avatar: "https://example.com/avatar.jpg",
});
};
return (
<InteractifyPlayer
ref={playerRef}
media={media}
interactions={interactions}
options={options}
// ... other props
/>
);
};
MIT
FAQs
React Native library for Interactify player with media display, widgets, and MQTT integration
The npm package @interactify-live/player-react-native receives a total of 9 weekly downloads. As such, @interactify-live/player-react-native popularity was classified as not popular.
We found that @interactify-live/player-react-native demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.

Research
/Security News
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.

Research
/Security News
The North Korean malware loader hides in a Packagist-listed package and its GitHub branch to fetch and execute remote code in a likely Contagious Interview-style lure.

Security News
The Rust project is moving toward formal rules on LLM use in contributions after months of internal debate over maintainer burden, code quality, and contributor experience.