Replace broadcaster API call with generic server status call. Add upgrade check bool
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import React, { useContext } from 'react';
|
||||
import { BroadcastStatusContext } from '../utils/broadcast-status-context';
|
||||
import { ServerStatusContext } from '../utils/server-status-context';
|
||||
|
||||
|
||||
export default function BroadcastInfo() {
|
||||
const context = useContext(BroadcastStatusContext);
|
||||
const context = useContext(ServerStatusContext);
|
||||
const { broadcaster } = context || {};
|
||||
const { remoteAddr, time, streamDetails } = broadcaster || {};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user