Commit Graph

3625 Commits

Author SHA1 Message Date
Samuel Newman fe3d56dc44 change quality based on focused state 2024-08-02 17:03:58 +02:00
Samuel Newman 0be49a15bb fix chrome 2024-08-02 16:54:05 +02:00
Samuel Newman 3836b10bd5 clean up VideoWebControls 2024-08-02 16:05:32 +02:00
Samuel Newman 4d86e88b1f add stopPropagation to root of video player 2024-08-02 16:05:09 +02:00
Samuel Newman 2d04f5566b add subtitles button 2024-08-01 16:05:59 +02:00
Samuel Newman 568c829332 increase background contrast 2024-08-01 15:27:51 +02:00
Samuel Newman c25fac5b39 move around autoplay effects 2024-08-01 09:25:38 +02:00
Samuel Newman 17774e5fce stop propagation of videoplayer click 2024-07-31 22:36:24 +02:00
Samuel Newman 58fbd6edfd add hover state to buttons 2024-07-31 19:31:44 +02:00
Samuel Newman 6e98dbef9d reduce quality when not active 2024-07-31 19:31:29 +02:00
Samuel Newman 837bf48deb move controls to new file 2024-07-31 18:49:30 +02:00
Samuel Newman df3da3ac2a listen globally to clicks rather than blur event 2024-07-31 18:15:54 +02:00
Samuel Newman ea69babf6f unmount when far offscreen + round 2dp 2024-07-31 18:09:48 +02:00
Samuel Newman 40f65858af new icons, add fullscreen + time + fix play 2024-07-31 17:40:24 +02:00
Samuel Newman e07fddd7b9 fix keyboard nav + mute state 2024-07-31 15:13:35 +02:00
Samuel Newman a851092802 use video elem as source of truth 2024-07-31 14:28:39 +02:00
Samuel Newman 1878d312ba rm source from where it shouldn't be 2024-07-31 13:44:49 +02:00
Samuel Newman c39e30e3d4 get buttons working somewhat 2024-07-30 20:11:43 +02:00
Samuel Newman e7d269e692 fullscreen API 2024-07-30 20:05:07 +02:00
Samuel Newman 92664f57d5 start working on controls 2024-07-30 20:05:07 +02:00
Samuel Newman f136bbb719 partially fix double-playing 2024-07-30 20:05:07 +02:00
Samuel Newman c1e19e4fde make active player indicator subtler, clean up video utils 2024-07-30 20:05:07 +02:00
Samuel Newman d1360376c3 disable perf optimisation to allow overflow 2024-07-30 20:05:07 +02:00
Samuel Newman 5cdaceffc1 fix types 2024-07-30 20:05:07 +02:00
Samuel Newman dcd5a6a188 new intersectionobserver approach - wip 2024-07-30 20:05:07 +02:00
Samuel Newman f0aa636762 disable findAndActivateVideo on native 2024-07-30 20:05:07 +02:00
Samuel Newman cec2438f6a click to steal active video 2024-07-30 20:05:07 +02:00
Samuel Newman bf71a5c80a split into inner component again 2024-07-30 20:05:07 +02:00
Samuel Newman d3d235023e polling-based active video approach 2024-07-30 20:05:07 +02:00
Samuel Newman 8282c434e0 attempt some sort of "usurping" system 2024-07-30 20:05:07 +02:00
Hailey 8ddb28d3c5 [Video] Uploads (#4754)
* state for video uploads

* get upload working

* add a debug log

* add post progress

* progress

* fetch data

* add some progress info, web uploads

* post on finished uploading (wip)

* add a note

* add some todos

* clear video

* merge some stuff

* convert to `createUploadTask`

* patch expo modules core

* working native upload progress

* platform fork

* upload progress for web

* cleanup

* cleanup

* more tweaks

* simplify

* fix type errors

---------

Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com>
2024-07-30 08:25:31 -07:00
Eric Bailey 43ba0f21f6 Make label required in link components (#4844) 2024-07-25 18:34:21 -05:00
Dmitrii Kartashev 4437b9a557 Boolean filter improvement alternative: TS upgrade (#4840)
* upgrade typescript and use new feature

* fix: typing error
2024-07-26 00:31:59 +01:00
Eric Bailey 50769b0b6f Add label to profile card (#4843) 2024-07-25 18:11:31 -05:00
Eric Bailey 043e5cea64 Improve a11y on noty feed (#4842) 2024-07-25 18:11:16 -05:00
Eric Bailey 35165e3d9b Add labels in feed card (#4836) 2024-07-25 18:07:42 -05:00
Eric Bailey 1d827cebe4 Add labels to mod details dialog (#4839) 2024-07-25 18:07:23 -05:00
Eric Bailey 783fd351ba Add labels to a few missing places (#4838) 2024-07-25 18:07:15 -05:00
Eric Bailey e7b485f185 Add labels in list card (#4837) 2024-07-25 18:07:07 -05:00
dan ac1538baad Refactor feed slices (#4834)
* Copy FeedViewPost into FeedSliceItem

* Explicitly construct feed slice items by copying known fields

* Type rootItem as FeedViewPost for now

Mergefeed logic relies on that.

* Unify reason and __source for slice items

* Move feedContext out of FeedSliceItem

* Remove slice.isFlattenedReply

* Remove unnused slice.ts

* Inline slice.isFullThread

* Refactor condition for clarity

* Extract slice.includesThreadRoot

* Encapsulate more usages of slice.rootItem into slice

* Rename slice.rootItem so semi-private slice._feedPost

* Move reason into slice

* Simplify slice ctor argument

* Reorder getters to reduce diff

* Make feedContext a getter to reduce diff
2024-07-25 23:02:37 +01:00
Hailey 3914025227 true (#4833) 2024-07-25 21:26:37 +01:00
Samuel Newman 401e92ed42 Replace import hairlineWidth = with const (#4831)
* replace import with const

* just use `StyleSheet.hairlineWidth`

---------

Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com>
2024-07-25 20:45:15 +01:00
Samuel Newman 00240b95b9 [Videos] Video player - PR #1 - basic player (#4731)
* 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>
2024-07-25 20:41:50 +01:00
dan 4291711f1d Fix sloppy filter(Boolean) types (#4830)
* Fix sloppy filter(Boolean) in threadgate

* Fix sloppy filter(Boolean) in Explore

* Fix sloppy filter(Boolean) in post-feed

* Harden FeedPostSliceItem.reason type def

* Harden parentAuthor types

* Fix lying component types, handle blocks
2024-07-25 19:53:12 +01:00
Eric Bailey fac1af43b0 Fuggedaboudit (#4829) 2024-07-25 13:16:21 -05:00
Paul Frazee a03622dd55 Release 1.89 prep (#4822)
* Fix curate-lists tests

* Run intl extract
2024-07-24 15:23:31 -07:00
surfdude29 2e7398b7c3 Update German localization (part 1) (#4742)
* Update German localization

* Apply suggestions from code review

Co-authored-by: cdfzo <cdfzo@pm.me>

* update string after #4743 merged

* Apply suggestions from code review

Co-authored-by: cdfzo <cdfzo@pm.me>

* Starterpaket –––> Startpaket

* Improve existing translations (#17)

* Improve existing translations

* Update more

* Update more

---------

Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com>

* capitalise toast

---------

Co-authored-by: cdfzo <cdfzo@pm.me>
2024-07-24 14:41:43 -07:00
Takayuki KUSANO 8588a2ad51 Updated Japanese Translation (#4748)
* Updated translation

* Update translation

* Update translation
2024-07-24 14:41:05 -07:00
Kuwa Lee 7a0aa661a7 Update Chinese Localization (#4774)
* TW: Update

* TW: Clean

* TW: Update

* CN: Update translates

* Both: Remove superseded strings

* Both: Remove superseded strings#2

* TW: Update and clean

* TW: Update

* CN: Update translates

* TW: Improve

* Update messages.po

* CN: Update translates

---------

Co-authored-by: Frudrax Cheng <i@cynosura.one>
Co-authored-by: cirx <133132480+cirx1e@users.noreply.github.com>
2024-07-24 14:40:32 -07:00
surfdude29 86ac3d687c Update French localization (#4781)
* Update French localization

* Apply suggestion from code review

Co-authored-by: Stanislas Signoud <signez@stanisoft.net>

---------

Co-authored-by: Stanislas Signoud <signez@stanisoft.net>
2024-07-24 14:39:38 -07:00