Skip to main content

gravix_effects_webrtc 1.1.2 copy "gravix_effects_webrtc: ^1.1.2" to clipboard
gravix_effects_webrtc: ^1.1.2 copied to clipboard

PlatformAndroid

Gravix Effects output for flutter_webrtc / LiveKit — publishes the running GravixCamera as a WebRTC video track.

gravix_effects_webrtc #

The Gravix camera's filtered stream as a flutter_webrtc video track (LiveKit or any WebRTC stack). Depend on this package only — it brings gravix_effects and re-exports its API. Full guide: ../gravix_effects/README.md. Adding Gravix to an existing LiveKit app (for AI coding agents and developers): AGENTS.md.

final cam = await GravixCamera.start(lens: GravixLens.front, fps: 30);
final out = await GravixWebRtc.attach(cam);   // out.stream + out.videoTrack; survives switchCamera()
// LiveKit: LocalVideoTrack(TrackSource.camera, out.stream, out.videoTrack, const CameraCaptureOptions())
await cam.stop();                             // also disposes the track + stream

Frames are I420 by default (full rate with software VP8); attach(cam, textureFrames: true) sends zero-copy GL textures for hardware encoders. Each frame carries its camera capture time and WebRTC's timestamp aligner is off, so viewers keep audio in sync through the SDK's fixed preview delay.

Example: example/ — camera, looks, beauty panel and Go live / End live to a LiveKit room (video + mic): flutter run --dart-define=LK_URL=wss://… --dart-define=LK_TOKEN=….

1
likes
140
points
--
downloads

Documentation

API reference

Publisher

verified publishergravixcloud.com

Weekly Downloads

Gravix Effects output for flutter_webrtc / LiveKit — publishes the running GravixCamera as a WebRTC video track.

Homepage

License

unknown (license)

Dependencies

flutter, flutter_webrtc, gravix_effects

More

Packages that depend on gravix_effects_webrtc

Packages that implement gravix_effects_webrtc