mebius 0.2.0
mebius: ^0.2.0 copied to clipboard
Mebius live video SDK for Flutter — broadcast and watch real-time streams through the Mebius gateway with a single, simple API.
0.2.0 #
Mebius.connectacceptsdeliveries, the route list your backend receives with the access token. Pass it through as-is; Mebius orders it and picks from it. Without it every viewer is served from Mebius origin instead of the nearest edge — on mobile that is a per-viewer bill rather than none.- New
MebiusPlayerMode.auto, andcreatePlayer()now defaults to it. The old default waslowLatency, which opened a per-viewer real-time session for every audience member; only a monitor needs one. - Playback walks an ordered route list with an 8-second first-frame budget per
route. A route that opens successfully is not yet a route that plays: an edge
with no ingest answers 200 with an empty stream, and a WebRTC connection reports
connectedwhile zero frames arrive. Previously either case left the viewer on a black frame with no error to react to. - New
client.createMonitor()for watching the other side of a co-broadcast. - New
MebiusDeliverywithlistFromJson, which skips malformed entries instead of throwing, andisResolvable, which refuses any path that would send the access token to a host Mebius did not choose. - The buffered mid-latency route is deliberately not offered on Flutter: the platform player cannot play it, so declaring it would be a mode that can never work.
Changelog #
All notable changes to the mebius package are documented here. This project
adheres to Semantic Versioning. The public API is stable
within a major version.
0.1.0 #
- Initial release.
- Gateway contract aligned with the Mebius stream engine: the access token is
passed via the
?token=query parameter (the form the engine enforces) and scale playback is served from/live/{streamId}/index.m3u8. Mebius.init/Mebius.connectsession bootstrap.MebiusClient.createBroadcasterandMebiusClient.createPlayer.MebiusBroadcaster:start,stop,switchCamera,setMicEnabled,setCameraEnabled, andstarted/stopped/statsevents.MebiusPlayer:play,stop,setVolume, low-latency and scale modes, andplaying/buffering/ended/statsevents.MebiusViewwidget for broadcaster preview and player surfaces.- Stable
MebiusErrorcodes:TOKEN_EXPIRED,PERMISSION_DENIED,CONNECTION_FAILED,NOT_CONNECTED,STREAM_NOT_FOUND,UNKNOWN.