fetch stream info

This commit is contained in:
srgooglo 2022-10-20 19:50:13 +02:00
parent eb6c247339
commit 6fde6eb4cc

View File

@ -82,8 +82,22 @@ export default (props) => {
}
}
const fetchStreamInfo = async () => {
const result = await Livestream.getStreamInfo().catch((err) => {
console.error(err)
return false
})
console.log("Stream info", result)
if (result) {
setStreamInfo(result)
}
}
React.useEffect(() => {
fetchAddresses()
fetchStreamInfo()
fetchStreamingKey()
}, [])