mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-11 03:24:16 +00:00
fetch stream info
This commit is contained in:
parent
eb6c247339
commit
6fde6eb4cc
@ -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(() => {
|
React.useEffect(() => {
|
||||||
fetchAddresses()
|
fetchAddresses()
|
||||||
|
fetchStreamInfo()
|
||||||
fetchStreamingKey()
|
fetchStreamingKey()
|
||||||
}, [])
|
}, [])
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user