Fix GIFs breaking mute state/pausing phone audio (#9859)
* fix operator precedence mistake * ensure gifs can't change the global mute state
This commit is contained in:
@@ -58,7 +58,7 @@ export function VideoEmbedInnerNative({
|
|||||||
<BlueskyVideoView
|
<BlueskyVideoView
|
||||||
url={embed.playlist}
|
url={embed.playlist}
|
||||||
autoplay={!autoplayDisabled && !isWithinMessage}
|
autoplay={!autoplayDisabled && !isWithinMessage}
|
||||||
beginMuted={isGif || autoplayDisabled ? false : muted}
|
beginMuted={isGif || (autoplayDisabled ? false : muted)}
|
||||||
style={[a.rounded_sm]}
|
style={[a.rounded_sm]}
|
||||||
onActiveChange={e => {
|
onActiveChange={e => {
|
||||||
setIsActive(e.nativeEvent.isActive)
|
setIsActive(e.nativeEvent.isActive)
|
||||||
@@ -67,7 +67,9 @@ export function VideoEmbedInnerNative({
|
|||||||
setIsLoading(e.nativeEvent.isLoading)
|
setIsLoading(e.nativeEvent.isLoading)
|
||||||
}}
|
}}
|
||||||
onMutedChange={e => {
|
onMutedChange={e => {
|
||||||
setMuted(e.nativeEvent.isMuted)
|
if (!isGif) {
|
||||||
|
setMuted(e.nativeEvent.isMuted)
|
||||||
|
}
|
||||||
}}
|
}}
|
||||||
onStatusChange={e => {
|
onStatusChange={e => {
|
||||||
setStatus(e.nativeEvent.status)
|
setStatus(e.nativeEvent.status)
|
||||||
|
|||||||
Reference in New Issue
Block a user