Commit graph

511 commits

Author SHA1 Message Date
Gabe Kangas
506d1fa4cf
Merge remote-tracking branch 'origin/develop' into webv2 2022-07-11 21:21:07 -07:00
Gabe Kangas
14f405bf58
Fix followers pagination UI 2022-07-05 12:53:21 -07:00
Gabe Kangas
3741196de6
Standardize endpoint name and fix doc. Closes #1966 2022-06-20 08:46:53 -07:00
Gabe Kangas
8624358dde
Add latency compensator to player. Closes #1931 2022-06-19 21:23:26 -07:00
Gabe Kangas
6b22be8cf3
Merge remote-tracking branch 'origin/develop' into webv2 2022-06-19 13:52:22 -07:00
Gabe Kangas
ab0a46cbd2
Change text to clarify following is on the fediverse 2022-06-04 11:36:09 -07:00
Gabe Kangas
677700414b
Allow adjusting latency targets based on buffering events 2022-06-02 23:37:20 -07:00
Gabe Kangas
221b9c8f0f
Add playback performance metrics. Closes #1930 2022-06-02 14:34:32 -07:00
gabek
31fc84ff52 Prettified Code! 2022-05-27 19:55:25 +00:00
Gabe Kangas
af1e786c99
Limit seeking to live edge on play event to only if not previously playing. 2022-05-27 12:55:01 -07:00
Gabe Kangas
1bc12da73a
Remove reference to unused var 2022-05-26 12:40:50 -07:00
gabek
03f5f8c854 Prettified Code! 2022-05-26 16:13:26 +00:00
Gabe Kangas
73cf043ed7
Reduce max rebuffer events + update log messages 2022-05-26 09:12:53 -07:00
Gabe Kangas
715504eb69
Merge remote-tracking branch 'origin/develop' into webv2 2022-05-25 22:57:14 -07:00
Gabe Kangas
afeef6f276
Return and pass around clock skew to be used in latency calculations.
Closes #1920
2022-05-23 15:17:41 -07:00
Gabe Kangas
d43e3d4e47
Completely give up latency compensation when the latency seems too wrong 2022-05-12 14:21:05 -07:00
Gabe Kangas
f96bde4f71
Can send a message from text input using submit button 2022-05-04 23:06:35 -07:00
Gabe Kangas
cbbf2970c1
Fix typo 2022-04-27 23:16:09 -07:00
Gabe Kangas
a1377c3338
Fix text 2022-04-27 15:09:28 -07:00
Gabe Kangas
07c6faad60
Add basic player component 2022-04-26 19:29:13 -07:00
Gabe Kangas
15ca73a438
WIP VideoPoster 2022-04-26 13:50:14 -07:00
Gabe Kangas
7a503fc282
Add auth icon to chat menu. Closes #1879 2022-04-25 15:34:19 -07:00
Gabe Kangas
6ee88f8a7d
Throw away latency values that seem invalid 2022-04-25 14:52:33 -07:00
Gabe Kangas
f34cc13225
Add link. Closes #1878 2022-04-25 14:31:28 -07:00
Gabe Kangas
465aeb5c38
Disable chat settings dropdown if chat is disabled. Closes #1875 2022-04-24 19:07:33 -07:00
Gabe Kangas
1e1faec982
Reduce the bandwidth ratio requirement to fire compensator 2022-04-23 18:50:18 -07:00
Gabe Kangas
a082cf3a77
Fediverse-based authentication (#1846)
* Able to authenticate user against IndieAuth. For #1273

* WIP server indieauth endpoint. For https://github.com/owncast/owncast/issues/1272

* Add migration to remove access tokens from user

* Add authenticated bool to user for display purposes

* Add indieauth modal and auth flair to display names. For #1273

* Validate URLs and display errors

* Renames, cleanups

* Handle relative auth endpoint paths. Add error handling for missing redirects.

* Disallow using display names in use by registered users. Closes #1810

* Verify code verifier via code challenge on callback

* Use relative path to authorization_endpoint

* Post-rebase fixes

* Use a timestamp instead of a bool for authenticated

* Propertly handle and display error in modal

* Use auth'ed timestamp to derive authenticated flag to display in chat

* Fediverse chat auth via OTP

* Increase validity time just in case

* Add fediverse auth into auth modal

* Text, validation, cleanup updates for fedi auth

* Fix typo

* Remove unused images

* Remove unused file

* Add chat display name to auth modal text
2022-04-22 17:23:14 -07:00
gabek
8b7e2b945e Prettified Code! 2022-04-22 20:03:34 +00:00
t1enne
635e872be3
changed followers tab to 24 per page (#1855)
* changed followers tab to 24 per page

* Update followers.js

fixed noFollowers message not spanning
2022-04-22 13:03:06 -07:00
Gabe Kangas
7935bcf5f3
Guard against possible invalid tech usage 2022-04-22 10:49:13 -07:00
Gabe Kangas
b835de2dc4
IndieAuth support (#1811)
* Able to authenticate user against IndieAuth. For #1273

* WIP server indieauth endpoint. For https://github.com/owncast/owncast/issues/1272

* Add migration to remove access tokens from user

* Add authenticated bool to user for display purposes

* Add indieauth modal and auth flair to display names. For #1273

* Validate URLs and display errors

* Renames, cleanups

* Handle relative auth endpoint paths. Add error handling for missing redirects.

* Disallow using display names in use by registered users. Closes #1810

* Verify code verifier via code challenge on callback

* Use relative path to authorization_endpoint

* Post-rebase fixes

* Use a timestamp instead of a bool for authenticated

* Propertly handle and display error in modal

* Use auth'ed timestamp to derive authenticated flag to display in chat

* don't redirect unless a URL is present

avoids redirecting to `undefined` if there was an error

* improve error message if owncast server URL isn't set

* fix IndieAuth PKCE implementation

use SHA256 instead of SHA1, generates a longer code verifier (must be 43-128 chars long), fixes URL-safe SHA256 encoding

* return real profile data for IndieAuth response

* check the code verifier in the IndieAuth server

* Linting

* Add new chat settings modal anad split up indieauth ui

* Remove logging error

* Update the IndieAuth modal UI. For #1273

* Add IndieAuth repsonse error checking

* Disable IndieAuth client if server URL is not set.

* Add explicit error messages for specific error types

* Fix bad logic

* Return OAuth-keyed error responses for indieauth server

* Display IndieAuth error in plain text with link to return to main page

* Remove redundant check

* Add additional detail to error

* Hide IndieAuth details behind disclosure details

* Break out migration into two steps because some people have been runing dev in production

* Add auth option to user dropdown

Co-authored-by: Aaron Parecki <aaron@parecki.com>
2022-04-21 14:55:26 -07:00
Gabe Kangas
b86537fa91
Restore isModerator bool 2022-04-21 13:48:46 -07:00
gabek
dad9e0d16b Prettified Code! 2022-04-21 05:21:35 +00:00
t1enne
cbe469ef87
Chat menu restyle (#1844)
* Chat menu restyle

* Update username.js

updated span to have id #username-display. Needed for tests

* removed chat menu failing tests

* hide form on username change (while same username)

* fixed onusernamechange handler

* resized username label, removed some margins

* removed commented out code
2022-04-20 22:21:02 -07:00
Gabe Kangas
dc4c905dd1
Allow specifying scroll behavior on initial chat history load 2022-04-18 23:48:05 -07:00
Gabe Kangas
7f1f8c39c3
Some notify popup tweaks
- Added back the border on the notification button.
- Removed border on the notification popup close button.
- Made entire popup clickable instead of just the text.
- Changed cursor style to as a hint that it's clickable.
- Renamed selectors to be called notify.
2022-04-17 12:27:52 -07:00
gabek
89a481ff66 Prettified Code! 2022-04-17 18:59:42 +00:00
t1enne
efbe4bc3a3
Follow popup clickable (#1839)
* Made follow popup clickable

* Fixed follow-poput styling

* had commented out visits check
2022-04-17 11:59:05 -07:00
Gabe Kangas
770b5d05f0
If tab is in the background then instant jump to bottom w/o animation 2022-04-16 21:54:13 -07:00
Gabe Kangas
1199532e18
Use useNetworkInformationApi in playback. 2022-04-11 21:20:38 -07:00
Gabe Kangas
d2be4a4ed8
Add the word enable for clarity 2022-04-08 23:14:10 -07:00
Gabe Kangas
568ecc7ddf
Remove antipating an initial time jump 2022-04-08 20:09:38 -07:00
Gabe Kangas
4ed02d4e0f
Fix the min/max latency thresholds 2022-04-08 15:09:47 -07:00
Gabe Kangas
f8181fd036
Do not make metrics api call if there is no data to send 2022-04-08 13:22:48 -07:00
Gabe Kangas
d4cbf07055
Allow latency compenstation if bandwidth is fast enough or there are enough segments buffered 2022-04-08 13:22:48 -07:00
Gabe Kangas
6b909b2c47
Do not report playback metrics if the network is not in use 2022-04-08 13:22:48 -07:00
Gabe Kangas
329eb7e318
Adjust how latency jumps are determined 2022-04-06 22:26:37 -07:00
Gabe Kangas
a6b1d0ec94
Do not collect playback metrics when paused 2022-04-06 22:20:51 -07:00
Gabe Kangas
748ada13d3
Do not set bool on timer 2022-04-06 19:10:55 -07:00
Gabe Kangas
0254afea71
Reduce latency jump amount 2022-04-06 18:47:30 -07:00