dolbyio-samples / rts-app-react-publisher-viewer

A Real Time Streaming App example for dolby.io
MIT License
15 stars 9 forks source link

[Viewer] Add useViewer hook #42

Closed dubeyShivank closed 1 year ago

dubeyShivank commented 2 years ago

Developer needs a useViewer hook so that the incoming stream can be played.

Acceptance Criteria

vincentsong commented 2 years ago

@dubeyShivank I just pushed my code of useViewer hook, I found if I use pinnedSourceId it works, but if I try to use sourceId which is multisource, I cannot project the source stream, could you please have a look at my branch issue42-add-userViewer-hook https://github.com/dolbyio-samples/stream-demo-react-millicast/tree/issue42-add-userViewer-hook