update segments editor to use new latency api

This commit is contained in:
gingervitis
2021-01-18 12:11:48 -08:00
committed by Gabe Kangas
parent 451912aa57
commit 573d21d7e7
6 changed files with 35 additions and 105 deletions

View File

@@ -1,27 +1,18 @@
import React, { useContext } from 'react';
import React from 'react';
import { Typography } from 'antd';
import { ServerStatusContext } from '../utils/server-status-context';
import VideoVariantsTable from './components/config/video-variants-table';
import VideoSegmentsEditor from './components/config/video-segments-editor';
import VideoLatency from './components/config/video-segments-editor';
const { Title } = Typography;
export default function VideoConfig() {
// const [form] = Form.useForm();
// const serverStatusData = useContext(ServerStatusContext);
// const { serverConfig } = serverStatusData || {};
// const { videoSettings } = serverConfig || {};
return (
<div className="config-video-variants">
<Title level={2}>Video configuration</Title>
<p>Learn more about configuring Owncast <a href="https://owncast.online/docs/configuration">by visiting the documentation.</a></p>
{/* <div style={{ wordBreak: 'break-word'}}>
{JSON.stringify(videoSettings)}
</div> */}
<VideoSegmentsEditor />
<VideoLatency />
<br /><br />