161 Commits

Author SHA1 Message Date
7664b5f0ff
normalize css 2024-04-08 07:12:03 +08:00
ec5d236cad
fix color dark theme 2024-04-08 07:10:03 +08:00
22bc7324db
css normalize 2024-04-07 11:50:53 +08:00
48e8f271e7
update styles to modern 2024-04-07 11:44:19 +08:00
38d8d5d4c5
av-merge: Retry more than once for timeouts 2024-03-10 02:08:23 +08:00
1505414a1a
Update Plyr custom styles for menu container
Specifically, set a maximum height and added vertical scrolling
to address an issue related to Plyr's menu height.

Improve the overall usability and visual appearance of the menu in video player.
2024-01-29 06:06:18 +08:00
c04d7c9a24
Adjust Plyr custom styles for video preview thumbnail
In custom_plyr.css, made adjustments to styles for video preview thumbnail in Plyr

Specific changes:
- Modified the size and positioning of the thumbnail container to improve the visual presentation.
- Enchance the user experience when interacting with video previews.
2024-01-29 05:08:18 +08:00
3ee2df7faa
Refactor styles on video playback page
Made changes to the styles on the video playback page to enhance visibility and address issues with the video player.
Added a new custom style file for Plyr, and removed redundant and unused styles in watch.css.

Specific changes:
- Added custom_plyr.css for Plyr styles.
- Removed redundant styles related to playback issues in watch.css
2024-01-29 05:06:38 +08:00
59c988f819
Revert update plyr 2024-01-28 00:31:30 +08:00
629c811e84
av-merge: Retry failed requests
Should reduce playback stalling
2024-01-26 01:12:54 +08:00
284024433b
av-merge: Use fetchRange promise properly 2024-01-26 01:09:12 +08:00
810dff999e
Set flexible responsive video 2024-01-24 11:50:13 +08:00
4da91fb972
update plyr 2024-01-22 12:10:13 +08:00
874ac0a0ac
Add autoplay to plyr 2024-01-22 12:09:52 +08:00
89ae1e265b
Refactor captions logic in Plyr video player initialization
Simplify the captions logic in the Plyr video player initialization by using a conditional statement.
Cleaner and more concise code.
2024-01-22 07:48:00 +08:00
00bd9fee6f
Add autoplay functionality in Plyr video player
Introduce autoplay feature in the Plyr video player based on the configuration settings.
2024-01-22 07:44:24 +08:00
zrose584
7d767ff9ce
copyTextToClipboard: support fullscreen 2022-08-07 02:52:39 +08:00
zrose584
65e7d85549
onKeyDown: ignore plyr CustomEvents 2022-08-07 02:50:05 +08:00
6c29802eb7
fix figure tag of sc-video 2022-05-31 04:12:16 +08:00
a1dd283832
Revert update plyr
because iceweasel not support engine v8+
More info: https://repo.palemoon.org/MoonchildProductions/UXP/issues/1675
2022-05-30 23:43:32 +08:00
32d30bde9c
update plyr config 2022-02-11 12:03:01 -05:00
cd876f65e3
Update plyr module 2022-02-11 12:01:22 -05:00
a465805cb9
Fix name settings in hotkeys 2022-01-29 16:52:18 -05:00
12c0daa58a
hotkeys.js: fix 'f' 2022-01-29 11:06:47 -05:00
zrose584
a5ef801c07
handle missing storyboard
Signed-off-by: Jesús <heckyel@hyperbola.info>
2022-01-17 09:01:09 -05:00
zrose584
63c92e0c4e
add preview thumbnails
Signed-off-by: Jesús <heckyel@hyperbola.info>
2022-01-09 16:39:50 -05:00
90338c25c6
[FrontEnd]: fix dropdown design 2021-12-31 18:15:59 -05:00
f572bb62aa
[FrontEnd]: remove unused styles 2021-12-31 17:39:59 -05:00
f2fc1cf564
[FrontEnd]: fix missing unsubscribe style 2021-12-31 17:35:48 -05:00
7b7e69a8b1
[FrontEnd]: light_theme, change link-visited color 2021-12-27 16:20:58 -05:00
217541bd9c
[FrontEnd]: fix dropdown design 2021-12-27 16:13:35 -05:00
bcbd83fa30
[FrontEnd]: improved settings design 2021-12-26 12:27:24 -05:00
0820909b7e
[frontend]: fix design in playlist 2021-12-18 23:12:08 -05:00
519b7e64e7
[frontend]: fix reporInfo in prototype 2021-12-16 18:19:15 -05:00
5d753351c5
[frontend]: relax find segment 2021-12-16 18:10:00 -05:00
df7e41b61a
[frontend]: fix global scope, change var to let 2021-12-16 17:46:16 -05:00
8e5b6dc831
[Design]: add 0.5rem for grid-gap (col and row) 2021-12-03 19:35:03 -05:00
2fe0b5e539
Improve input styles 2021-09-22 12:56:59 -05:00
8b745907cc
improve quality-select 2021-09-14 14:49:14 -05:00
James Taylor
9c7e93ecf8
Redo av codec settings & selections to accomodate webm
Allows for ranked preferences for h264, av1, and vp9 codecs in
settings, along with equal preferences which are tiebroken using
smaller file size.

For each quality, gives av-merge a list of video sources
and audio sources sorted based on preference & file size. It
will pick the first one that the browser supports.

Closes #84

Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-09-06 16:18:11 -05:00
James Taylor
854ab81b91
av-merge: Add webm support
But watch.py is not providing them yet. Deciding how to fix the
codec options/defaults is for a later commit

Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-09-06 15:34:19 -05:00
James Taylor
fc0fa9aaba
av-merge: Fix segments not properly reappended during QuotaExceeded
Two issues fixed:
1. The append was only retried if it was the result of a seek
event. But if the video is paused (such as if the video was
finished and the user seeks back to the beginning), the seek
won't happen because the MediaSource will not issue a sourceopen
until the user plays the video. A better strategy that solves
the true issue is to retry the append if it is for the segment
corresponding to the current time, since that is critical to get
immediately.
2. If the append was not retried, entry.requested was not getting
marked as false, so it would refuse to ever rerequest the segment,
so it would stall. Set it to false if we decide not to retry the
append, so it can be rerequested later.

Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-09-01 20:12:14 -05:00
06e091e020
watch.js: video variable as const and improve data.time_start syntax 2021-09-01 15:14:06 -05:00
7143e1b321
plyr: use strict and fix undefined quality variable 2021-09-01 12:42:44 -05:00
98d9b35765
plyr: minor fix 2021-09-01 12:25:46 -05:00
1632ab5cda
plyr: remove sourceMappingURL=plyr.min.js.map 2021-08-31 21:00:43 -05:00
James Taylor
12561c0ed3
av-merge: Specify which of MediaSource, audio, or video are unsupported
Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-08-31 20:16:17 -05:00
James Taylor
30e59081b1
av-merge: Use .shift() instead of .pop() in appendQueue for FIFO
.pop() gives LIFO, but FIFO was the intention for appendQueue.
O(n) behavior is fine because appendQueue should be very small.

Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-08-31 11:38:24 -05:00
James Taylor
85cf943850
av-merge: Fix handling of QuotaExceededError
Many things fixed:
- Delete from end of video in addition to from beginning. Firefox
automatically deletes from the beginning already.
- Increment i in the while loop (oops)
- Calling .remove takes time for the sourceBuffer to perform, and
it will be in the updating=true state. Continuing to delete more
would give an error. Waits until the updateend event is fired
before deleting more segments.
- Retry appendBuffer if the quota was exceeded during a seek append

Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-08-31 11:37:36 -05:00
James Taylor
a7527986c8
Fix embed page broken due to changes to jinja variables
Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-08-29 23:24:32 -05:00