无人机声望视频 成功 之前对接的都是火山的

This commit is contained in:
mmc
2026-06-03 16:09:11 +08:00
parent bb130f3525
commit 14970f7296
2 changed files with 67 additions and 120 deletions

View File

@@ -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',