Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
ai.natml.natdevice
Advanced tools
High-performance, cross-platform media device streaming for Unity Engine.
NatDevice is a high performance, cross-platform camera and microphone streaming API for Unity Engine. To start, discover available media devices:
// Create a media device query for a camera device
var filter = MediaDeviceCriteria.CameraDevice;
var query = new MediaDeviceQuery(filter);
// Get the first camera device
var device = query.current as CameraDevice;
Then stream camera images or audio buffers from the device:
// Start streaming camera images
device.StartRunning(OnCameraImage);
void OnCameraImage (CameraImage image) {
// Do stuff
...
}
From here, you can utilize extensive functionality provided by the API to build your interactive applications. Features include:
Ultra-low Latency. Stream the camera preview and microphone audio into Unity with extremely small overhead.
Ultra-high Resolution. NatDevice supports high resolution camera previews, at full HD and higher on devices that support it.
Extensive Camera Control. Set the camera exposure mode, exposure point, exposure duration, focus mode, focus point, flash mode, white balance mode, torch mode, zoom, and more.
Granular Microphone Control. Configure the microphone sample rate, channel count, and echo cancellation mode on devices that support it.
Machine Learning Integration. NatDevice tightly integrates with NatML for building machine learning and computer vision apps.
Video Recording Integration. NatDevice tightly integrates with NatCorder for enabling user-generated content.
See the docs to learn more about NatDevice.
First, add the following items to your Unity project's Packages/manifest.json
:
{
"scopedRegistries": [
{
"name": "NatML",
"url": "https://registry.npmjs.com",
"scopes": ["ai.natml"]
}
],
"dependencies": {
"ai.natml.natdevice": "1.3.4"
}
}
Then retrieve your access key from NatML Hub and add it to your Project Settings:
Using NatDevice requires an active NatML MediaKit subscription. You can try it out for free, but functionality is limited. See the docs for more info.
FAQs
High-performance, cross-platform media device streaming for Unity Engine.
The npm package ai.natml.natdevice receives a total of 13 weekly downloads. As such, ai.natml.natdevice popularity was classified as not popular.
We found that ai.natml.natdevice 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.