Commit Graph

4190 Commits

Author SHA1 Message Date
Samuel Newman bca7635ca4 rework fullscreen API 2024-08-05 12:01:32 +01:00
Samuel Newman ada19e1e7f clean up component structure and organisation 2024-08-02 22:40:09 +02:00
Samuel Newman b2c2939742 add error boundary 2024-08-02 22:24:33 +02:00
Samuel Newman dd0e44e665 render player earlier, allowing preload 2024-08-02 21:58:32 +02:00
Samuel Newman 17f5d0980a rework hls into a ref 2024-08-02 21:19:23 +02:00
Samuel Newman 6cea339b25 always use hlsjs 2024-08-02 19:41:24 +02:00
Samuel Newman a83b563903 get subtitle track from stream 2024-08-02 19:04:20 +02:00
Samuel Newman 09a3d61e23 use autoLevelCapping instead of nextLevel 2024-08-02 17:32:45 +02:00
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