mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +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(() => {
|
||||
fetchAddresses()
|
||||
fetchStreamInfo()
|
||||
fetchStreamingKey()
|
||||
}, [])
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user