45 Commits

Author SHA1 Message Date
James Taylor
dd01c8ca4c
av-merge: change QuotaExceeded messages to warnings
Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-08-29 21:57:02 -05:00
James Taylor
81e61f9893
av-merge: buffer same duration of audio and video
Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-08-29 21:56:00 -05:00
James Taylor
ae68c84a26
av-merge: Make segment fetching message more useful
Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-08-29 21:54:32 -05:00
James Taylor
1c591b4457
av-merge: call mediaSource.endOfStream() so player pauses at end
Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-08-29 21:53:21 -05:00
James Taylor
9f44e0474b
Integrate quality selection into Plyr
Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-08-29 21:47:14 -05:00
James Taylor
5ff216d1ba
avmerge: Fix errors if close is called twice
This can happen if the quality is changed from an avmerge source
to an integrated source, and then changed back to an avmerge source

Close is called the first change, but on the last change, it's
called again because the avMerge object is still present, resulting
in InvalidStateError

Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-08-29 21:03:36 -05:00
James Taylor
70eb5cc94f
avmerge: Remove obsolete shouldFetchNextSegment function
Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-08-29 21:01:54 -05:00
James Taylor
fa3b78583f
avmerge: Close streams to avoid errors while changing quality
If a fetchRange network request finished after the quality was
changed, there would be a "InvalidStateError: An attempt was made
to use an object that is not, or is no longer, usable" because
appendSegment was trying to append to the sourceBuffer that was
unusable after the video src was changed to a new mediaSource.

Adds a close method to the AVMerge class to properly clean and
close everything so these sorts of errors won't happen.

Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-08-29 21:00:30 -05:00
James Taylor
d942883c78
avmerge: Buffer 50 mb ahead in video
Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-08-29 20:54:06 -05:00
James Taylor
a7da23c6da
Add video quality selector
Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-08-29 20:52:57 -05:00
James Taylor
c9a75042d2
Add support for more qualities, merging video+audio using MSE
Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-08-29 18:48:56 -05:00
e4af99fd17
Revert "Add support for more qualities, merging video+audio using MSE"
This reverts commit d56df02e7b1eba86baf511289208295b1f6c5a50.
2021-08-29 18:48:01 -05:00
James Taylor
d56df02e7b
Add support for more qualities, merging video+audio using MSE
Signed-off-by: Jesús <heckyel@hyperbola.info>
2021-08-29 18:44:26 -05:00
f532386976
[plyr]: minor fix syntax 2021-08-09 22:11:50 -05:00
af1df31161
[plyr]: update 2021-08-09 22:09:04 -05:00
7f67af1031
Remove var and fix transcript button jumping above autoplay on page load
Obsolete code from #15 that was forgotten to be removed

From ea34965be31dcf7e7e30c1edb9a9fa9d18fe6b30 Mon Sep 17 00:00:00 2001
From: James Taylor <user234683@users.noreply.github.com>
Date: Sat, 3 Jul 2021 20:06:11 -0700
2021-07-04 13:12:15 -05:00
61b4518335
Fix set language subtitles 2021-06-23 15:19:31 -05:00
b3abec81e1
Add plyr as main player
Also plyr supports switch quality
2021-05-22 17:05:39 -05:00
1f4d7cc958
General theme: fix syntax W3C markup and add improve 'Published' date
Signed-off-by: Jesús <heckyel@hyperbola.info>
2020-12-30 16:52:26 -05:00
0f78e73e80
General theme: add license and add URL source code in footer 2020-12-29 15:36:23 -05:00
8443063fc4
Hotkeys.js: improve fullscreen 2020-12-16 21:58:30 -05:00
1a0a303320
Replace document.fullscreen for fullscreenElement
This feature is no longer recommended. Though some browsers might still support it,
it may have already been removed from the relevant web standards, may be in the
process of being dropped, or may only be kept for compatibility purposes.
Avoid using it, and update existing code if possible; see the compatibility table
at the bottom of this page to guide your decision.
Be aware that this feature may cease to work at any time.

More info in https://developer.mozilla.org/en-US/docs/Web/API/Document/fullscreen#Deprecated
2020-12-16 21:52:34 -05:00
ff408e84cf
Hotkeys.js: Add muted 'm' key 2020-12-15 22:40:02 -05:00
f9461a2e79
Migration general theme: fix query video tag 2020-12-15 12:30:46 -05:00
James Taylor
aa52c7a42e
Merge branch 'master' into add_sponsorblock 2020-10-21 18:53:12 -07:00
zrose584
3b5df36b03 fix sponserblock:js 2020-10-21 10:30:00 +02:00
James Taylor
c696db3e84 comments.js: include error in reply html rather than using an alert 2020-10-20 18:24:41 -07:00
zrose584
a8916b9308 proxy 'sponsor.ajay.app' 2020-10-18 18:48:52 +02:00
zrose584
f7f2b9fa06 add sponsorblock.js 2020-10-17 19:51:41 +02:00
zrose584
d2ee49ec45 add 't' hotkey 2020-10-12 17:52:01 +02:00
zrose584
205665f138 doXhr: check xhr.status 2020-10-09 18:49:50 +02:00
zrose584
debc11931f add comments.js 2020-10-07 20:32:57 +02:00
James Taylor
0a5088f1e5 Transcript table: Fix timestamps for videos longer than an hour
See #15
2020-09-24 14:44:21 -07:00
James Taylor
c7c74624ed Transcript: For clarity, use more verbose names and add comments 2020-09-24 14:28:01 -07:00
zrose584
0830468bd1 style transcript div 2020-09-15 20:57:11 +02:00
zrose584
b3de26606d handle firefox' VTT parsing bug
from #15:
"[..] Firefox's VTT parsing [ignores] newlines. So if the cue starts
with a newline, that cue will have blank text (a corollary is that
the first sentence uttered will fail to display in the automatic
captions [..])."
2020-09-15 20:32:12 +02:00
zrose584
0be0a59a2a transcript-table: show transcript as contiguous text by default 2020-09-12 13:22:46 +02:00
zrose584
57978485ee let jinja create the transcript <details> element 2020-09-12 10:51:01 +02:00
zrose584
537a8e8ab5 transcript-table.js: sync active transcript with select_tt 2020-09-12 10:23:31 +02:00
zrose584
081058c07e default to last textTrack 2020-09-12 10:21:12 +02:00
zrose584
8222b6205b hotkeys.js: ignore if e.ctrlKey 2020-09-12 10:17:56 +02:00
zrose584
05a7907be4 add transcript-table.js 2020-09-11 21:28:29 +02:00
zrose584
94ece08a1e hotkeys.js: add 'c' for transcript 2020-09-11 21:27:49 +02:00
James Taylor
786d3eb445 hotkeys.js: use DOMContentLoaded so images don't delay script
Instead of the load event, which waits until all assets are
finished loading in order for script to start.
2020-09-09 19:00:19 -07:00
zrose584
12e56c7e71 add hotkeys.js 2020-09-09 21:01:16 +02:00