Bluesky app fork with some witchin' additions 💫

[Video] Additional android fixes (#5373)

* rm unused code

* bump lib

* invert bool

authored by hailey.at and committed by

GitHub 0414b95c b69fd234

+7 -16
+1 -1
package.json
··· 68 68 "@fortawesome/free-regular-svg-icons": "^6.1.1", 69 69 "@fortawesome/free-solid-svg-icons": "^6.1.1", 70 70 "@fortawesome/react-native-fontawesome": "^0.3.2", 71 - "@haileyok/bluesky-video": "0.1.8", 71 + "@haileyok/bluesky-video": "0.1.10", 72 72 "@lingui/react": "^4.5.0", 73 73 "@mattermost/react-native-paste-input": "^0.7.1", 74 74 "@miblanchard/react-native-slider": "^2.3.1",
+1 -1
src/view/com/composer/videos/VideoPreview.tsx
··· 44 44 ]}> 45 45 <BlueskyVideoView 46 46 url={video.uri} 47 - autoplay={autoplayDisabled} 47 + autoplay={!autoplayDisabled} 48 48 beginMuted={true} 49 49 forceTakeover={true} 50 50 ref={playerRef}
+1 -10
src/view/com/util/post-embeds/VideoEmbedInner/VideoEmbedInnerNative.tsx
··· 7 7 import {useLingui} from '@lingui/react' 8 8 9 9 import {HITSLOP_30} from '#/lib/constants' 10 - import {clamp} from '#/lib/numbers' 11 10 import {useAutoplayDisabled} from '#/state/preferences' 12 11 import {useVideoMuteState} from 'view/com/util/post-embeds/VideoVolumeContext' 13 12 import {atoms as a, useTheme} from '#/alf' ··· 54 53 throw new Error(error) 55 54 } 56 55 57 - let aspectRatio = 16 / 9 58 - 59 - if (embed.aspectRatio) { 60 - const {width, height} = embed.aspectRatio 61 - aspectRatio = width / height 62 - aspectRatio = clamp(aspectRatio, 1 / 1, 3 / 1) 63 - } 64 - 65 56 return ( 66 - <View style={[a.flex_1, a.relative, {aspectRatio}]}> 57 + <View style={[a.flex_1, a.relative]}> 67 58 <BlueskyVideoView 68 59 url={embed.playlist} 69 60 autoplay={!autoplayDisabled && !isWithinMessage}
+4 -4
yarn.lock
··· 4104 4104 resolved "https://registry.yarnpkg.com/@graphql-typed-document-node/core/-/core-3.2.0.tgz#5f3d96ec6b2354ad6d8a28bf216a1d97b5426861" 4105 4105 integrity sha512-mB9oAsNCm9aM3/SOv4YtBMqZbYj10R7dkq8byBqxGY/ncFwhf2oQzMV+LCRlWoDSEBJ3COiR1yeDvMtsoOsuFQ== 4106 4106 4107 - "@haileyok/bluesky-video@0.1.8": 4108 - version "0.1.8" 4109 - resolved "https://registry.yarnpkg.com/@haileyok/bluesky-video/-/bluesky-video-0.1.8.tgz#26fc6ec64993d593e7a0ecb96febff96c5037ebd" 4110 - integrity sha512-jMtGSMU5jpacLvAFRWGC5gVvVKuKHrGH3gluz9MsBEbSRvS8bb9FhNtC1VHb+A4UUgLufOyzrSbDw9fa8hR8lg== 4107 + "@haileyok/bluesky-video@0.1.10": 4108 + version "0.1.10" 4109 + resolved "https://registry.yarnpkg.com/@haileyok/bluesky-video/-/bluesky-video-0.1.10.tgz#2756e8c83a78caeb6b120a175578eac1eb6889a9" 4110 + integrity sha512-W8+DNdek+xjAqTO1zmuuSrkVFxDepcP8+Gs8MvIcYSgXEJlpQimZpcMwAduiDI/jZMn/2U6cnMahx7YuiZlZ7g== 4111 4111 4112 4112 "@hapi/accept@^6.0.3": 4113 4113 version "6.0.3"