
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-guacamole-player
Advanced tools
This reusable React component that can play guacamole session logs. The player uses guacamole-common-js as it's readering core.
yarn add react-guacamole-player
or
npm i -S react-guacamole-player
import React, { useState } from 'react';
import GuacaPlayer from 'GuacaPlayer'
/**
* src is the session log URL
*/
const App: React.FC = () => {
const [src, setSrc] = useState("");
return (
<div>
<GuacaPlayer src={src}/>
</div>
)
}
import React, { useState } from 'react';
import GuacaPlayer from 'GuacaPlayer'
const App: React.FC = () => {
const [src, setSrc] = useState("");
return (
<div>
<GuacaPlayer src={src} width={500} height={400}/>
</div>
)
}
import React, { useState } from 'react';
import GuacaPlayer from 'GuacaPlayer'
/**
* The player will autoplay by default
*/
const App: React.FC = () => {
const [src, setSrc] = useState("");
return (
<div>
<GuacaPlayer src={src} autoPlay={false}/>
</div>
)
}
import React, { useState, useCallback } from 'react';
import GuacaPlayer from 'GuacaPlayer'
/**
* Player is an object contains the following callbacks:
*
* play: Function;
* pause: Function;
* seek: (e: {inputValue: number}) => Promise<unknown>;
* cancelSeek: Function;
* getDuration: () => Promise<number>;
* getCurrentDuration: () => Promise<number>;
*
*/
const App: React.FC = () => {
const [src, setSrc] = useState("");
const [player, setPlayer] = useState<null | Player>(null);
const jumpTo = useCallback(()=>{
// inputValue units ms
player && player.seek({inputValue: 10000})
}, [player])
return (
<div>
<button onClick={jumpTo}>Go to 00:10</button>
<GuacaPlayer src={src} getPlayer={(player)=>{
setPlayer(player)
}}/>
</div>
)
}
import React, { useState, useCallback } from 'react';
import GuacaPlayer from 'GuacaPlayer'
/**
* translate is a callback which returns a translation object.
*/
const App: React.FC = () => {
const [src, setSrc] = useState("");
const translate = useCallback((default)=>{
return {
...default,
"btn.loading": "Your translation...",
}
}, [])
return (
<div>
<GuacaPlayer src={src} translate={translate}/>
</div>
)
}
yarn start
or
npm start
yarn run build
or
npm run build
MIT
FAQs
A guacamole session player for react
We found that react-guacamole-player demonstrated a not healthy version release cadence and project activity because the last version was released 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.