webrtc_pixel_stream
A lightweight Flutter plugin that streams raw BGRA pixel data from WebRTC video tracks via EventChannel.
This plugin contains zero WebRTC code of its own. It depends on flutter_webrtc via CocoaPods to access the already-registered FlutterWebRTCPlugin singleton, then attaches a secondary RTCVideoRenderer to any video track to extract raw frames.
Usage
This plugin is used internally by aura_sphere_360 for native WebRTC pixel extraction. You typically don't need to use it directly.
How it works
- Dart calls
createPixelStreamon thewebrtc_pixel_stream/controlmethod channel - Native code looks up the video track via
FlutterWebRTCPlugin.sharedSingleton - A
FlutterRTCStreamingSink(RTCVideoRenderer) is attached to the track - I420 frames are converted to BGRA and streamed over
webrtc_pixel_stream/frames/{trackId}
Platform support
| Platform | Status |
|---|---|
| iOS | ✅ |
| Android | 🚧 Planned |
| Web | ❌ N/A |
Requirements
flutter_webrtcmust be initialized before callingcreatePixelStream- iOS 13.0+
Libraries
- webrtc_pixel_stream
- A lightweight companion plugin that streams raw BGRA pixel data from a WebRTC video track via EventChannel.