无人机声望视频 成功 之前对接的都是火山的
This commit is contained in:
@@ -4,6 +4,7 @@ import { ReloadOutlined } from '@ant-design/icons';
|
||||
import DroneLivePlayer from '../VolcRtcPlayer.jsx';
|
||||
import { changeCameragateway, changeCameraPlane } from '../../api/device.ts';
|
||||
import utils from '../../lib/utils';
|
||||
import AgoraRtcRoom from '../AgoraRtc.tsx';
|
||||
|
||||
const { Text } = Typography;
|
||||
|
||||
@@ -245,10 +246,18 @@ const DroneVideoPlayer: React.FC<DroneVideoPlayerProps> = ({
|
||||
)}
|
||||
</div>
|
||||
|
||||
{/* 视频内容 */}
|
||||
{streamData ? (
|
||||
<DroneLivePlayer streamData={streamData}
|
||||
/>
|
||||
streamData?.url_type == "volc" ? (
|
||||
<DroneLivePlayer
|
||||
key={streamData.url}
|
||||
streamData={streamData}
|
||||
/>
|
||||
) : (
|
||||
<AgoraRtcRoom
|
||||
key={streamData.url}
|
||||
url={streamData.url}
|
||||
/>
|
||||
)
|
||||
) : (
|
||||
<div style={{
|
||||
color: '#ccc',
|
||||
|
||||
Reference in New Issue
Block a user