File tree Expand file tree Collapse file tree
apps/mobile/src/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -127,6 +127,9 @@ function MediaVideoPlayerContent(props: MediaVideoPlayerProps) {
127127 const [ playbackUri , setPlaybackUri ] = useState < string | null > ( props . expanded ? props . uri : null ) ;
128128 // Keep an opened player mounted while signing or reconnecting temporarily has no usable URL.
129129 if ( playbackUri === null && props . expanded && props . uri !== null ) setPlaybackUri ( props . uri ) ;
130+ const unavailableText = props . unavailableDetail
131+ ? `Video unavailable. ${ props . unavailableDetail } `
132+ : "Video unavailable" ;
130133
131134 return (
132135 < View
@@ -145,7 +148,9 @@ function MediaVideoPlayerContent(props: MediaVideoPlayerProps) {
145148 < MediaActionsMenu media = { mediaActions } inModal = { props . expanded } style = { { flex : 1 } } >
146149 < Pressable
147150 accessibilityRole = "button"
148- accessibilityLabel = { `Play ${ props . name } ` }
151+ accessibilityLabel = {
152+ props . unavailable ? `${ props . name } . ${ unavailableText } ` : `Play ${ props . name } `
153+ }
149154 accessibilityHint = {
150155 mediaActions . actions . length > 0 ? "Touch and hold for media actions" : undefined
151156 }
@@ -164,11 +169,7 @@ function MediaVideoPlayerContent(props: MediaVideoPlayerProps) {
164169 />
165170 ) : null }
166171 { props . unavailable ? (
167- < AppText className = "text-center text-sm text-white/80" >
168- { props . unavailableDetail
169- ? `Video unavailable. ${ props . unavailableDetail } `
170- : "Video unavailable" }
171- </ AppText >
172+ < AppText className = "text-center text-sm text-white/80" > { unavailableText } </ AppText >
172173 ) : props . uri === null ? (
173174 < AppActivityIndicator color = "#ffffff" accessibilityLabel = "Loading video" />
174175 ) : (
You can’t perform that action at this time.
0 commit comments