webrtc_pixel_stream 0.1.1
webrtc_pixel_stream: ^0.1.1 copied to clipboard
A lightweight companion plugin that streams raw BGRA pixel data from a WebRTC video track via EventChannel. Designed for panorama_viewer / aura_sphere_360 but usable by any Flutter app that needs raw [...]
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+