Skip to content

Commit c0e55f3

Browse files
committed
chore(webapp): display tip of disabled media
1 parent c677035 commit c0e55f3

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

webapp/components/player/player.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import {
77
isFullscreenSupported,
88
isPictureInPictureSupported,
99
} from '../../lib/util'
10-
import SvgProgress from '../svg/progress'
1110
import { deviceSpeakerAtom, speakerStatusAtom } from '../../store/atom'
1211
import {
1312
SvgMuted,
@@ -210,7 +209,13 @@ export default function Player(props: { stream: MediaStream, muted: boolean, aud
210209
// https://webkit.org/blog/6784/new-video-policies-for-ios/
211210
return (
212211
<center className="relative flex flex-col justify-center min-h-60 rounded-xl bg-black m-8" style={{ width: props.width }}>
213-
{!props.stream.getTracks().length ? <center><SvgProgress /></center> : null}
212+
{!props.stream.getTracks().length ?
213+
<p
214+
className={`text-white transition-opacity duration-300 ${
215+
showControls ? 'opacity-100' : 'opacity-0'
216+
}`}>
217+
All your media are disabled
218+
</p> : null}
214219
<video
215220
className="aspect-ratio-[4/3] w-full h-full object-contain rounded-xl"
216221
playsInline={true}

0 commit comments

Comments
 (0)