apivideo_live_stream
1.2.0, released 3 years ago by api.video
Flutter RTMP live stream client to broadcast video and audio from smartphone camera.
What it does
Allows you to stream video and audio via RTMP directly from a smartphone camera in your Flutter application. It provides controllers, a camera preview widget, and handles video/audio configurations for live broadcasting.
AI-written summary of version 1.2.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to stream live video and audio via RTMP from a mobile device.
- You are integrating api.video live streaming features into your Flutter application.
Skip it when
- You only need standard video playback rather than broadcasting.
- You need complex local video recording without RTMP streaming.
Strengths
- Official RTMP live stream client for api.video.
- Provides a simple ApiVideoCameraPreview widget and controller setup.
Weaknesses
- Requires platform-specific configuration and permission handling for Android and iOS.
- Limited to Android and iOS platforms as a plugin.
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- Yes (build_runner)
- Direct dependencies
- 4
Requires adding internet, camera, and microphone permissions in AndroidManifest.xml and usage descriptions in iOS Info.plist.
final ApiVideoLiveStreamController _controller = ApiVideoLiveStreamController(
initialAudioConfig: AudioConfig(), initialVideoConfig: VideoConfig.withDefaultBitrate());
await _controller.initialize();
@override
Widget build(BuildContext context) {
return SizedBox(
width: 300.0,
height: 300.0,
child: ApiVideoCameraPreview(controller: _controller));
}Alternatives
Packages that do the same job and could replace apivideo_live_stream.
- stream_video
Official low-level client for Stream Video, supporting calls, audio rooms, and live streaming.
77Compare - hmssdk_flutter
Add real-time audio and video conferencing, interactive streaming, and chat capabilities.
68Compare - video_player_android
Android implementation of the video_player plugin
88Compare - stream_video_flutter
Official UI package and SDK for Stream Video, supporting calls and livestreams.
80Compare
Works with
Packages commonly used together with apivideo_live_stream: ones it builds on, ones built on it, and its own family.
- json_annotationapivideo_live_stream depends on itProvides annotations for json_serializable to generate JSON (de)serialization code.
- plugin_platform_interfaceapivideo_live_stream depends on itReusable base class for platform interfaces of Flutter federated plugins.
- native_device_orientationapivideo_live_stream depends on itA Flutter plugin for reading native device orientation from UI or sensors.