Add Video to Unity with VisioForge .NET SDKs
Play files and network streams, capture webcams and IP cameras, edit timelines, and render straight into a Unity texture — with the VisioForge .NET SDKs you already use in WPF, MAUI, and Avalonia. One cumulative .unitypackage targets Windows, Android, macOS, and iOS.
Native video for Unity, powered by the VisioForge SDKs
VisioForge brings the same battle-tested .NET media engines used in WPF, MAUI, and Avalonia apps into Unity. Frames are delivered to your scene through a Unity-only OnVideoFrameUnity event and uploaded into a Texture2D by the bundled VisioForgeVideoView helper — show video in a RawImage or map it onto any 3D surface. The GStreamer native runtime is bundled per platform, so there is no system install to manage.
Unity support is delivered through the CoreX engines — MediaBlocksPipeline, MediaPlayerCoreX, VideoCaptureCoreX, and VideoEditCoreX.
Choose the right product for your Unity scenario
Every product ships in the same cumulative .unitypackage. Pick the engine that matches what you need to build.
Media Player SDK .NET
High-level playback with MediaPlayerCoreX — open local files, URLs, HLS, and RTSP streams with seek, pause, volume, and playback-rate control. Ideal for in-game video, cutscenes, and digital signage.
Media Player + Unity →Video Capture SDK .NET
Live webcam and microphone capture, IP / RTSP / ONVIF cameras, and MP4 recording with VideoCaptureCoreX. Build AR camera apps, IP-camera dashboards, and surveillance views.
Video Capture + Unity →Video Edit SDK .NET
Timeline editing with VideoEditCoreX — combine clips, apply effects and transitions, preview live, and render to MP4. Power in-app video editors and templated video generation.
Video Edit + Unity →Media Blocks SDK .NET
The complete pipeline framework — capture, decode and encode, effects, mixing, recording, and streaming. Assemble custom media pipelines and render the result into Unity when the high-level engines aren't enough.
Media Blocks + Unity →Why VisioForge for Unity video
One Cumulative Package
Windows, Android, macOS, and iOS native runtimes ship inside a single .unitypackage. Import once, switch the Build Target, and build — no per-platform downloads.
Render into a Texture2D
Frames are uploaded into a Unity Texture2D through a zero-allocation, double-buffered path. Show video in a RawImage or map it onto any 3D object in your scene.
Hardware-Accelerated
Decoding and encoding use the platform hardware codecs — NVENC and Quick Sync on Windows, MediaCodec on Android, VideoToolbox on macOS and iOS — for smooth live video.
The Full SDK API
Your Unity scripts get the same .NET media API you use in WPF, MAUI, and Avalonia — not a playback-only wrapper. Ready sample scenes get you running in minutes.
What developers build in Unity
The same engines power very different Unity projects.
VR & 360° video
Stream high-resolution and 360° footage onto skyboxes, curved screens, and headset displays for immersive playback.
In-game video & cutscenes
Play intros, cinematics, and in-world screens from local files or network streams with seek, pause, and volume control.
Surveillance & IP cameras
Bring RTSP and ONVIF camera feeds into a Unity dashboard or digital twin — multiple live streams in one scene.
Digital signage & kiosks
Drive video walls, interactive kiosks, and info displays from a Unity app on Windows or Android.
Live streaming from a game
Record gameplay and broadcast it live over RTMP, HLS, or an RTSP server straight from C#.
Training & simulation
Overlay instructional video and live camera feeds onto AR/VR training and simulation environments.
Platforms & requirements
Verified on Unity 6 (6000.x).
- ✔Unity 6 (6000.x)
- ✔.NET Standard 2.1 API Compatibility Level
- ✔Enter Play Mode: Disable Domain Reload
- ✔IL2CPP scripting backend on Android and iOS
Local webcam capture targets Windows and macOS; RTSP / IP cameras and file playback / editing work on all four platforms.
Sources, formats & protocols
Availability depends on the engine and target platform — see the documentation for the full matrix.
| Category | Supported |
|---|---|
| Video codecs | H.264 / AVC, HEVC / H.265, AV1, VP9, VP8, MJPEG, MPEG-2 |
| Containers | MP4, MKV, WebM, MOV, AVI, MPEG-TS |
| Audio codecs | AAC, MP3, Opus, Vorbis, FLAC, PCM / WAV |
| Network input | RTSP, RTMP, HLS, HTTP / HTTPS, SRT, UDP / MPEG-TS |
| Cameras & devices | USB webcams, ONVIF / IP cameras over RTSP, microphones |
| Recording output | MP4, MKV, WebM, MPEG-TS — hardware-encoded |
| Live streaming output | RTMP, HLS, SRT, built-in RTSP server |
| Hardware codecs | NVIDIA NVENC & Intel Quick Sync (Windows), MediaCodec (Android), VideoToolbox (macOS / iOS) |
Unity video — frequently asked questions
How is this different from Unity's built-in VideoPlayer?
Unity's VideoPlayer plays local and HTTP video files only. VisioForge adds what it can't do — RTSP and ONVIF IP cameras, live webcam capture, recording, and RTMP/HLS/SRT streaming — plus a wider codec range and hardware-accelerated decoding, all through the same C# API you use on the desktop.
Can I play RTSP and IP-camera streams in Unity?
Yes. MediaPlayerCoreX and VideoCaptureCoreX open RTSP, ONVIF, and HLS sources and deliver the decoded frames into your scene. RTSP, IP cameras, and file playback work on all four platforms (Windows, Android, macOS, iOS).
Can I capture a webcam inside Unity?
Yes, with VideoCaptureCoreX — it enumerates USB webcams and microphones. Local webcam capture targets Windows and macOS; network cameras over RTSP/ONVIF work on every supported platform.
Can I record or live-stream from a Unity game?
Yes. Capture or compose your sources and record to MP4/MKV, or broadcast live over RTMP, HLS, SRT, or a built-in RTSP server using Media Blocks SDK .NET or VideoCaptureCoreX.
Does it support the Opus audio codec?
Yes. Opus is decoded and encoded directly, alongside AAC, MP3, Vorbis, FLAC, and PCM/WAV — independent of Unity's own audio limitations.
Do I need to install GStreamer or other system dependencies?
No. The native runtime is bundled per platform inside the .unitypackage, so there is nothing for you or your users to install separately.
What Unity version, scripting backend, and API level are required?
Unity 6 (6000.x), the .NET Standard 2.1 API Compatibility Level, and “Enter Play Mode: Disable Domain Reload”. Android and iOS builds use the IL2CPP scripting backend.
Is this a separate product, or the same VisioForge .NET SDKs?
It is the same battle-tested .NET SDKs you use in WPF, MAUI, and Avalonia — running in Unity. There is no separate “Unity SDK” to learn or license; you pick the SDK (Media Player, Video Capture, Video Edit, or Media Blocks) that matches your scenario.
Start building video into Unity
Follow the step-by-step Unity guides — installation, per-platform builds, and ready-to-run sample scenes.
