openwatchparty 1.1.0
openwatchparty: ^1.1.0 copied to clipboard
Open Watch Party client SDK for Dart and Flutter. Join a watch party room by its code and keep your own player in sync with everyone else in it.
Changelog #
1.1.0 #
join(code, create: true)makes the room when no room has the code, and the party is its host. Apps use it to bring a group back to a code they used before.
1.0.0 #
The first release. It implements the client behaviour in spec/SDK.md.
WatchParty, withcreate,join,leaveandclose. It takes an optional resolver, and you can injectconnect,nowMsandrandom.Relays.public()for the public relays, with background and forced refresh and an injectablehttpGet.Relays.at(baseUrl)for one self-hosted relay.- Broadcast
statesandevents. - Resolver matching with probes, and the mismatch flow.
- A
PlayerAdapterthat apps extend. Itsplaythrows when the player refuses to start, and the SDK then reportsloadingand emitsPlayBlockedEvent. detachPlayerandclosereturn release completions.parseMedia, which decodes media descriptors.- Playback controls:
play,pause,seekandsetRate, and a localsetOffset. - Host controls:
setMedia,clearMedia,setControl,transferHost,kick,lockandend. - Reconnect and resume after a drop. A
setMedialost on the drop is sent again while the party is still host. PartyExceptionerrors withErrorCodeconstants.- Pure Dart from 3.4. It runs on native platforms, on the web and in Flutter apps.
- A test suite that runs every table in
conformance/vectors/.