about summary refs log tree commit diff
path: root/src/view/com/util/post-embeds/VideoEmbed.tsx
Commit message (Collapse)AuthorAgeFilesLines
* Attempted video perf improvements (#6519)Samuel Newman2024-11-191-28/+26
| | | | | | | * remove layout animations from video * only show button/spinner when necessary * use native activityindicator rather than loader
* Increase rounding for all embeds (#5421)Samuel Newman2024-09-201-2/+2
| | | | | | | | | | | | | | | | | | | * tweak image styles * fix reply image preview and covert to atoms * increase rounding on media inset border * decrease gap on desktop * fix inset styles * increase rounding on embeds to `md` * Couple edge cases --------- Co-authored-by: Eric Bailey <git@esb.lol>
* [Video] Remove `expo-video`, use `bluesky-video` (#5282)Hailey2024-09-131-111/+31
| | | | Co-authored-by: Samuel Newman <mozzius@protonmail.com>
* disable autoplay within messages and trim feelers (#5260)Samuel Newman2024-09-111-1/+3
|
* [Video] Open the floodgates (partially) (#5208)Samuel Newman2024-09-071-7/+0
|
* Revert "[Video] Ensure loop doesn't stop" (#5209)Hailey2024-09-071-5/+1
|
* [Video] Ensure loop doesn't stop (#5207)Hailey2024-09-071-1/+5
|
* [Video] Handle push/pop on Android for autoplay (#5194)Hailey2024-09-061-1/+1
|
* [Video] Add disable autoplay for native, more tweaking (#5178)Hailey2024-09-061-39/+54
|
* [Video] More adjustments for loading state jank (#5171)Hailey2024-09-051-43/+47
|
* [Video] throw HLS errors to be caught by error boundary (#5166)Samuel Newman2024-09-051-3/+9
| | | | | | | | | * throw HLS errors to be caught by error boundary * wording tweak * do the same on native * fix type error
* [Video] Add loading state to player (#5149)Hailey2024-09-041-56/+140
|
* [Video] content fit cover on native (#5140)Samuel Newman2024-09-041-1/+1
|
* [Video] Use same play button for gifs and videos (#5144)Hailey2024-09-041-4/+3
|
* [Video] Only allow one `VideoView` to be active at a time, regardless of ↵Hailey2024-09-041-6/+9
| | | | source (#5131)
* [Video] Tweak playback handling (#5127)Hailey2024-09-041-9/+22
|
* [Video] Misc player style tweaks (#5064)Samuel Newman2024-09-021-1/+1
| | | | | * use actual black rather than theme black * adjust time/mute indicators
* [Video] Split 'videos' gate in two (#5037)Samuel Newman2024-08-301-1/+1
|
* [Video] Minor player tweaks (#5044)Samuel Newman2024-08-301-3/+1
|
* [Video] Lexicon implementation (#4881)Samuel Newman2024-08-291-21/+47
| | | | | | | | | | | | | | | | | | | | | | | | | * implement AppBskyEmbedVideo lexicon in player * add alt to native player * add prerelease package * update prerelease * add video embed view manually from record * fix type error on example video * black bg + use aspect ratio on web * add video to feeds * fix video overflowing aspect ratio * remove prerelease package --------- Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com>
* [Video] 🫧 Move logic around by platform (#5003)Hailey2024-08-281-5/+8
|
* [Videos] Add error boundary to native (#4914)Samuel Newman2024-08-101-23/+48
| | | | | | | | | * move error fallback to own component * use error boundary on native --------- Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com>
* [Video] Visibility detection view (#4741)Hailey2024-08-071-23/+24
| | | | Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com>
* [Videos] Video player - PR #2 - better web support (#4732)Samuel Newman2024-08-071-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * attempt some sort of "usurping" system * polling-based active video approach * split into inner component again * click to steal active video * disable findAndActivateVideo on native * new intersectionobserver approach - wip * fix types * disable perf optimisation to allow overflow * make active player indicator subtler, clean up video utils * partially fix double-playing * start working on controls * fullscreen API * get buttons working somewhat * rm source from where it shouldn't be * use video elem as source of truth * fix keyboard nav + mute state * new icons, add fullscreen + time + fix play * unmount when far offscreen + round 2dp * listen globally to clicks rather than blur event * move controls to new file * reduce quality when not active * add hover state to buttons * stop propagation of videoplayer click * move around autoplay effects * increase background contrast * add subtitles button * add stopPropagation to root of video player * clean up VideoWebControls * fix chrome * change quality based on focused state * use autoLevelCapping instead of nextLevel * get subtitle track from stream * always use hlsjs * rework hls into a ref * render player earlier, allowing preload * add error boundary * clean up component structure and organisation * rework fullscreen API * disable fullscreen on iPhone * don't play when ready on pause * debounce buffering * simplify giant list of event listeners * update pref * reduce prop drilling * minimise rerenders in `ActiveViewContext` * restore prop drilling --------- Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com> Co-authored-by: Hailey <me@haileyok.com>
* [Videos] Video player - PR #1 - basic player (#4731)Samuel Newman2024-07-251-0/+44
* add ffmpeg-kit-react-native * get select video button + compression working * up res to 1080p * add progress component * move logic out of compressVideo * (WIP) add lonestar compression * rework web compression a bit * mess around with adding a thumbnail * 3mbps * replace * use 3mbps * add expo-video * remove unnecessary try/catch * rm ToastAndroid * fix web * wrap lazy component in suspense * gate video select button * rm web compression * flip sign * remove expo-video from web * review nits * add video picker permissions + rm temp buttons * add ffmpeg-kit-react-native * replace * hls-capable player * start trying to hoist up video player instance * hoist video player and move things around * always show native controls * fix controls on expo video android * gate temp video player in feed * rm IS_DEV, doesn't do what I thought it did * use __DEV__ instead --------- Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com> Co-authored-by: Hailey <me@haileyok.com>