Commit graph

151 commits

Author SHA1 Message Date
Omar Roth
50d793e49b
Hide video count for auto-generated channels 2019-09-12 13:11:21 -04:00
leonklingele
e6b4e12689 js: add support for keydown events (#678)
* js: add support for keydown events

This will modify the player behavior even if the player element is unfocused.

Based on the YouTube key bindings, allow to

- toggle playback with space and 'k' key
- increase and decrease player volume with up / down arrow key
- mute and unmute player with 'm' key
- jump forwards and backwards by 5 seconds with right / left arrow key
- jump forwards and backwards by 10 seconds with 'l' / 'j'  key
- set video progress with number keys 0–9
- toggle captions with 'c' key
- toggle fullscreen mode with 'f' key
- play next video with 'N' key
- increase and decrease playback speed with '>' / '<' key

* js: remove unused dependency 'videojs.hotkeys.min.js'

Support for controlling the player volume by scrolling over it is
still retained by copying over the relevant code part from the
aforementioned library.
2019-08-16 16:01:14 -05:00
Omar Roth
a19cdb5e72
Fix season playlists 2019-08-16 15:46:59 -05:00
Leon Klingele
46577fb128
Add support for player styles
This currently includes the following styles:

- Invidious, the default
- YouTube, using a centered play button and always visible video control bar

Implements https://github.com/omarroth/invidious/issues/670.
Supersedes https://github.com/omarroth/invidious/pull/661.
2019-08-09 02:04:36 +02:00
Omar Roth
2cc25b1e6e
Add administrator option to disable proxying 2019-07-08 12:15:18 -05:00
Omar Roth
b43e9ed7e7
Refactor 'description_html' 2019-06-08 15:08:27 -05:00
Omar Roth
12b2ab5da8
Add 'to_json' into respective structs 2019-06-08 13:31:41 -05:00
Omar Roth
2febc268f7
Fix warnings in Crystal 0.29 2019-06-07 21:13:50 -05:00
Omar Roth
8c944815bc
Minor refactor 2019-06-07 21:13:50 -05:00
Omar Roth
64464f23ae
Add 'views' to channel_videos 2019-05-30 18:59:13 -05:00
Omar Roth
7d2e1f63b5
Refactor watched_widget.js 2019-05-16 20:51:17 -05:00
Omar Roth
fd8af88493
Use separate asset version for cache busting 2019-05-09 22:58:34 -05:00
Omar Roth
4616f889fd
Add simple form of cache busting 2019-05-08 08:58:10 -05:00
Omar Roth
058711d3a8
Refactor player.js 2019-05-06 11:23:14 -05:00
Omar Roth
e04b7d0f01
Fix video previews for embeds 2019-05-06 10:28:20 -05:00
Omar Roth
2faa2ed1f4
Refactor watch.js 2019-05-06 09:48:33 -05:00
Omar Roth
0099a9822e
Refactor subscribe_widget 2019-05-05 08:38:55 -05:00
Omar Roth
570715100b
Fix text size for premieres 2019-05-03 18:00:16 -05:00
Omar Roth
6d92775ab5
Add video previews 2019-05-02 14:36:32 -05:00
Omar Roth
1a9360ca75
Minor formatting changes 2019-05-01 20:03:39 -05:00
Omar Roth
6fb44083ec
Update source and licenses 2019-05-01 07:40:18 -05:00
Omar Roth
56fe3ede5b Add annotation preferences 2019-04-30 23:39:04 -05:00
glmdgrielson
e48a000784 Add annotation player
This addresses issue #110 from master. Yay for adding annotations back!
2019-04-30 21:19:13 -05:00
Omar Roth
f08d53b0c6 Add view count to livestreams in search results 2019-04-28 14:11:23 -05:00
Omar Roth
075adb4f03 Add http-source-selector 2019-04-28 10:05:15 -05:00
Omar Roth
8c2958b86d Add 'local=true' to hlsUrl 2019-04-25 12:41:35 -05:00
Omar Roth
eac0a52f10 Fix shiftKey for player hotkeys 2019-04-19 09:20:41 -05:00
Omar Roth
2a6c81a89d Add authentication API 2019-04-18 16:23:50 -05:00
Omar Roth
26168a9520 Refactor CSRF tokens (using format in #473) 2019-04-15 23:23:40 -05:00
Omar Roth
b51fd7fc13 Add view count to video items 2019-04-14 17:43:44 -05:00
Omar Roth
efe86c37b2 Show subscribe text when not logged in 2019-04-14 17:10:32 -05:00
Omar Roth
e8c5246645 Fix share button 2019-04-12 09:31:05 -05:00
Omar Roth
5de300fb35 Fix default background color for player 2019-04-11 17:03:37 -05:00
Omar Roth
c8cf4fe09c Fix subscription_ajax for Google accounts 2019-04-07 12:59:12 -05:00
Omar Roth
7a0f0ca5ce Fix thin mode 2019-03-27 11:31:05 -05:00
Omar Roth
0c6cede287 Format files and trim trailing whitespace 2019-03-23 14:05:13 -05:00
Omar Roth
1c8075ca40 Add 0.25 to list of playback rates 2019-03-23 11:14:15 -05:00
Omar Roth
56b0952cd1 Update sources 2019-03-23 11:09:31 -05:00
Omar Roth
fd26f9f34e Add support for premieres to search and feed 2019-03-22 14:54:35 -05:00
Omar Roth
88b70973cc Add 'premiereTimestamp' to /api/v1/videos 2019-03-22 14:53:19 -05:00
Omar Roth
d85020079f Add shortcuts for changing playbackRate 2019-03-17 12:21:55 -05:00
Omar Roth
99aa214859 Add 'thumbnail_id' to playlists 2019-03-17 12:21:47 -05:00
Omar Roth
405e98f429 Add 1.25 and 0.75 playback rates 2019-03-16 09:17:57 -05:00
Omar Roth
4a56a2cad6 Remove outline when clicking on player 2019-03-15 08:34:37 -05:00
Omar Roth
46e985b306 Add 'dark_mode', 'thin_mode' as query parameters 2019-03-11 12:44:25 -05:00
Omar Roth
fdc014af67 Add '&local=true' to watch and embed pages 2019-03-11 11:43:48 -05:00
Omar Roth
a65998274f Defer loading videojs-share until last 2019-03-05 15:22:04 -06:00
Omar Roth
a39b1583da Add administrator preferences 2019-03-01 16:06:45 -06:00
Omar Roth
27cd1e73f3 Fix feed menu on mobile 2019-02-26 09:23:16 -06:00
Omar Roth
7e6cf7b979 Add title text for icons 2019-02-24 16:19:31 -06:00
Omar Roth
c5a17cd043 Add subscriptions to feed menu 2019-02-24 11:53:10 -06:00
Omar Roth
5bf3c28436 Add better indicator for livestreams 2019-02-21 14:19:05 -06:00
Omar Roth
83493237a5 Add support for translating time intervals 2019-02-20 08:49:54 -06:00
Omar Roth
ceea6e4597 Escape subscribe text 2019-02-12 14:59:26 -06:00
Omar Roth
9989c8100a Properly escape email when creating view 2019-02-02 15:27:19 -06:00
Omar Roth
d5c9b7dfe8 Only play after error if already playing 2019-01-31 20:26:11 -06:00
Omar Roth
def58ff11f Add interval and timeout for errors in player 2019-01-31 09:09:00 -06:00
Omar Roth
1e214aae7c Reload player instead of removing invalid source 2019-01-29 19:55:27 -06:00
Omar Roth
ff09a7255a Add handling to remove invalid sources 2019-01-28 22:36:27 -06:00
Omar Roth
26b7200360 Respect playback rate when reloading player 2019-01-28 20:47:38 -06:00
Omar Roth
b38a2bbd12 Reload player on error 2019-01-28 20:45:08 -06:00
Omar Roth
097cbcdae3 Update subscribe button immediately 2019-01-27 22:12:07 -06:00
Omar Roth
6218078c51 Pull subscribe widget into separate file 2019-01-27 21:06:28 -06:00
Omar Roth
a9aae6b36c Add internal redirect for video URLs 2019-01-27 20:36:40 -06:00
Omar Roth
d88f9f3b3e Use params for importing dash sources 2019-01-23 19:46:17 -06:00
Omar Roth
a160c645c9 Add support for translations 2018-12-20 15:32:09 -06:00
Omar Roth
b030149d76 Revert "Use <audio> tag for audio only"
This reverts commit e6bc5bb35d.
2018-12-08 20:12:22 -06:00
Omar Roth
32bd593a8a Remove log statement 2018-11-27 21:20:29 -06:00
Omar Roth
1c49fa3b63 Add timeout for autoplay 2018-11-27 21:18:20 -06:00
Omar Roth
0152967d3e Fix title when downloading video 2018-11-25 19:01:04 -06:00
Omar Roth
d6d73bd336 Fix clickable titles in subscription feed 2018-11-20 22:58:30 -06:00
Omar Roth
6b12f11e10 Add ability to mark videos as watched in subscription feed 2018-11-19 22:06:59 -06:00
Omar Roth
b535de690e Move video count into playlist thumbnail 2018-11-19 17:34:33 -06:00
Omar Roth
e6bc5bb35d Use <audio> tag for audio only 2018-11-15 17:52:53 -06:00
Omar Roth
c8b321920d Add channel video count to search results 2018-11-13 19:18:08 -06:00
Omar Roth
0e26e4d407 Remove video title tooltip 2018-11-12 18:37:58 -06:00
Omar Roth
316a73f07e Remove duration for playlists in search results 2018-11-07 10:07:47 -06:00
Omar Roth
791f216a45 Don't remove unsupported sources 2018-10-30 08:34:55 -05:00
Omar Roth
ef95dc2380 Add fix for show playlists 2018-10-21 19:54:41 -05:00
Omar Roth
4875aa1d7e Add partial support for video duration in thumbnails 2018-10-20 20:37:55 -05:00
Omar Roth
c72b9bea64 Add '&list' to videos shown on mix page 2018-10-06 22:22:50 -05:00
Omar Roth
20130db556 Add mixes 2018-09-29 10:59:11 -05:00
Omar Roth
b3ca3922a9 Add experimental dash support 2018-09-24 19:28:36 -05:00
Omar Roth
d886f8d1e3 Add fix for playlists with no videos 2018-09-22 14:11:01 -05:00
Omar Roth
cefb5d679f Add label to HLS 2018-09-20 09:45:49 -05:00
Omar Roth
62380933b2 Add support for playlists and channels in search 2018-09-20 09:36:09 -05:00
Omar Roth
429a4b2dec Proxy thumbnails 2018-09-14 21:24:28 -05:00
Omar Roth
2232bc0495 Use escaped newlines instead of graves 2018-09-13 18:12:19 -05:00
Omar Roth
3ec684ae71 Host assets locally 2018-09-06 09:59:17 -05:00
Omar Roth
023066b452 Revert "Remove 'codecs' from source types"
This reverts commit 93e12d94fc.
2018-09-05 10:49:40 -05:00
Omar Roth
93e12d94fc Remove 'codecs' from source types 2018-09-05 10:38:01 -05:00
Omar Roth
45fa148380 Don't add playlist id for channel videos 2018-08-27 18:53:34 -05:00
Omar Roth
7fd0f93d02 Add support for preferences as query params 2018-08-25 20:05:51 -05:00
Omar Roth
9a15438c71 Minor formatting changes 2018-08-17 11:04:38 -05:00
Omar Roth
bb0b60e575 Add playlist page and endpoint 2018-08-16 14:26:16 -05:00
Omar Roth
7116421fa4 Use http-streaming for livestreams 2018-08-11 14:29:51 -05:00
Omar Roth
ce0e4babad Pull 'player' out into seperate component 2018-08-11 10:52:13 -05:00
Omar Roth
b9315bc534 Major cleanup 2018-08-04 23:14:57 -05:00
Omar Roth
3dcb6766fc Add 'published' to video component 2018-08-04 10:22:12 -05:00
Omar Roth
8764b298ad Add thin mode 2018-07-26 12:09:29 -05:00