Skip to content

Commit

Permalink
LocalVideo の rid 変更ボタンにラベルとツールチップを追加する
Browse files Browse the repository at this point in the history
  • Loading branch information
tnamao committed Jan 15, 2024
1 parent bc7a6c6 commit 8dcb0d8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions instructions.json
Original file line number Diff line number Diff line change
Expand Up @@ -166,5 +166,8 @@
},
"facingMode": {
"description": "モバイルカメラのフロント/バックを切り替えます。"
},
"changeAllRecvStream": {
"description": "サイマルキャストで受信中の全てのストリームの rid を操作します。"
}
}
2 changes: 2 additions & 0 deletions src/components/Video/LocalVideo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React, { useState } from 'react'

import { useAppSelector } from '@/app/hooks'

import { TooltipFormLabel } from '../DevtoolsPane/TooltipFormLabel'
import { ConnectionStatusBar } from './ConnectionStatusBar'
import { RequestRtpStreamButton } from './RequestRtpStreamButton'
import { RequestSpotlightRidButton } from './RequestSpotlightRidButton'
Expand Down Expand Up @@ -79,6 +80,7 @@ export const LocalVideo: React.FC = () => {
simulcast === 'true' &&
role !== 'sendonly' ? (
<div className="d-flex align-items-center mb-1 video-status-inner">
<TooltipFormLabel kind="changeAllRecvStream">change all:</TooltipFormLabel>
<RequestRtpStreamButton rid={'r0'} />
<RequestRtpStreamButton rid={'r1'} />
<RequestRtpStreamButton rid={'r2'} />
Expand Down

0 comments on commit 8dcb0d8

Please sign in to comment.