I have only begun to build and test this library; the storybook views leak connections and memory and need cleanup routines.
Use at your own risk.
- IonContext: provides access to ion-sdk-js Client
- BroadcastContext: provides access to the ion-sdk-js LocalStream for broadcasting
<IonProvider>
: Wrap your components in an IonProvider to enableuseIon()
hook<BroadcastProvider audio video simulcast constraints={...} options={{codec: 'vp8'}}>
: Wrap your components in a BroadcastProvider to enable theuseBroadcast()
hook to get the local stream<VideoView stream={stream}>
: Helper for rendering streams; TODO add debug latency / codec / quality overlay<BroadcastPreview />
: Quickly render your own broadcast stream- Broadcast Controls: TODO Provide Mute/Unmute handlers for local audio/video
Just yarn storybook
and you're off to the races! Ensure you have ion-sfu:jsonrpc
listening on port :7000
(or plug in your own signalling)