261 Commits

Author SHA1 Message Date
broquemonsieur
4b6fb5d468
Merge 0cf71b20a1bfddfea95136ae5438c49b22069f47 into 9e3c0dfd85443950b10d90793824d682c76af82c 2025-05-09 00:28:01 -04:00
syeopite
d0433c8386
JS: Update timeupdate event defensive to prevent errors (#4782) 2025-02-26 13:56:13 -08:00
syeopite
f95f87e448
Frontend: Add a first page and previous page buttons for channel navigation (#4123) 2025-02-26 13:54:25 -08:00
syeopite
831017f403
Frontend: Carry over audio-only mode in playlist links (#4784) 2025-01-22 11:35:33 -08:00
Samantaz Fox
dbdf2ad23a
Routes: Simplify actions in watch_ajax 2024-10-29 18:27:53 +01:00
Samantaz Fox
dbd96c77e4
Routes: Simplify actions in token_ajax 2024-10-29 18:21:58 +01:00
Samantaz Fox
e453a2a682
Routes: Simplify actions in subscription_ajax 2024-10-29 18:16:52 +01:00
Samantaz Fox
7e4b3b182a
Routes: Simplify actions in playlist_ajax 2024-10-29 18:09:50 +01:00
Samantaz Fox
82ac9a8609
Preferences: Add option to control preloading of video data (#4122)
This PR adds a configuration option to control the preloading of video data on
page load with the HTML5 'preload'[1] attribute on the `<video>` element.

The option is enabled by default, meaning that the `preload` attribute's value
will be 'auto'. If users want to prevent preloading of video data, they
can disable the option, which will set the attribute value to 'none'.

[1](https://www.w3schools.com/tags/att_video_preload.asp)

Closes issue 4110
2024-10-08 17:38:06 +02:00
broquemonsieur
0cf71b20a1
Merge branch 'iv-org:master' into main 2024-09-07 06:20:48 +00:00
Krystof Pistek
5f590dda80
Carry over audio-only mode in playlist links 2024-08-07 20:58:08 +02:00
PMK
7214fdaff4
JS: Update timeupdate event defensive to prevent errors 2024-07-06 21:39:00 +02:00
Fijxu
e82c965e89
Player: Fix video playback for videos that have already been watched.
Trying to watch an already watched video will make the video start 15
seconds before the end of the video. This is not very comfortable when
listening to music or watching/listening playlists over and over.
2024-06-15 18:15:51 -04:00
broquemonsieur
a777695cf3
Merge branch 'iv-org:master' into main 2024-03-23 06:48:52 +00:00
Samantaz Fox
1f51255f2f
API: Remove the fields parameter (#4276)
Multiple users have reported that the fields parameter is slowing down API
response times significantly. As most API endpoints are already optimized to
make as few requests as possible to Youtube, there is no point in limiting the
output. Furthermore, the added processing might be part of the broader memory
leak problem (See 1438).

In addition, the small increase in data output is not much of an issue compared
to the huge video proxy that lies next to this API.

No related issue tracked
2024-02-12 22:10:45 +01:00
broquemonsieur
0284d37487
Merge branch 'iv-org:master' into main 2023-12-18 01:58:36 +00:00
Samantaz Fox
813dc6de1c
Player: Fix iOS screen timeout in loop mode (#4076) 2023-12-06 18:19:31 +01:00
broquemonsieur
df188c032c Complete the bifurcation of "list" and "comp" 2023-12-03 18:44:07 -08:00
Samantaz Fox
7b6930c16b
Remove the 'fields' parameter on the client side too 2023-11-23 18:30:42 +01:00
RadoslavL
019807256f Seperated repetitive code in a function 2023-11-09 21:56:41 +02:00
RadoslavL
2b2d67fcfa
Fixed a typo
Co-authored-by: syeopite <70992037+syeopite@users.noreply.github.com>
2023-11-08 11:48:32 +02:00
RadoslavL
e8c2388589 Removed the purging of the query parameters 2023-10-26 11:30:12 +03:00
broquemonsieur
3758d225c4 Resolve merge conflict 2023-10-21 14:05:29 -07:00
Samantaz Fox
2a65b5f52e
Frontend: Add video timestamp on external links (#4101) 2023-10-21 18:31:42 +02:00
Samantaz Fox
40919c6a83
JS: Update external links exactly once per second 2023-10-21 13:45:15 +02:00
RadoslavL
e307fcc9a1 Fixed an issue 2023-10-20 09:00:23 +03:00
broquemonsieur
fa50e5dff6
Merge branch 'iv-org:master' into main 2023-10-08 17:26:55 +00:00
RadoslavL
275501aad3 Actually add the pagination.js file (git didn't detect it the first time) 2023-09-30 19:01:48 +03:00
ChunkyProgrammer
4f25069f55 remove unused variable
simplify resolve url

remove trailing spaces

Co-Authored-By: Samantaz Fox <coding@samantaz.fr>
2023-09-27 17:36:06 -04:00
Samantaz Fox
47cc9dc169
JS: Fix missing domain in URL constructor 2023-09-27 23:03:24 +02:00
Thomas Lange
824cc1a5aa Don't redefine the "preload" option in player.js
If the HTML5 "<video>" element defines the "preload" attribute directly,
it isn't necessary to redefine the "preload" option in the player.js.
2023-09-27 15:36:40 +02:00
Thomas Lange
bf470704a5 Add option to control preloading of video data
Fix #4110 by adding an option to control the preloading of video data on
page load. If disabled ("false"), the browser will not preload any video
data until the user explicitly hits the "Play" button.

If enabled ("true"), the default behavior will be used, which means the
browser decides how much of the video will be preloaded.
2023-09-26 22:21:12 +02:00
ChunkyProgrammer
e3c365f3d6 Add support for post page 2023-09-18 20:10:41 -04:00
Samantaz Fox
700c57559b
JS: Replace '.setAttribute("href")' with '.href'
Co-authored-by: syeopite <70992037+syeopite@users.noreply.github.com>
2023-09-17 10:21:11 +00:00
Samantaz Fox
06b2a4ba9d
Frontend: Use 'timeupdate' event listener rather than setTimeout() 2023-09-16 00:41:46 +02:00
Samantaz Fox
58f4a012b7
Frontend: Add timestamp on switch invidious instance links 2023-09-14 22:28:07 +02:00
Samantaz Fox
2456b62936
Frontend: Add timestamp on invidious embed links 2023-09-14 22:27:36 +02:00
Samantaz Fox
792a999386
Frontend: Add timestamp on youtube+embed links 2023-09-14 22:26:36 +02:00
broquemonsieur
0d968a320f Remove LOGGER statements 2023-09-07 23:33:07 -07:00
broquemonsieur
f48083da33 Add end marker continuation utility 2023-09-07 23:33:07 -07:00
broquemonsieur
510d85c045 Query DB for timestamps after current id 2023-09-07 23:33:07 -07:00
broquemonsieur
472a2d7e76 Use markers to implement timestamps 2023-09-07 23:33:07 -07:00
broquemonsieur
890802481b Use ion for arrow swap icons 2023-09-07 23:28:58 -07:00
broquemonsieur
8c15c1e8cc Add migration table for compilations 2023-09-07 22:18:16 -07:00
broquemonsieur
7cfa09984e Add compilations to feeds menu 2023-09-07 22:13:19 -07:00
broquemonsieur
74d42c18dd Add ecr for individual compilation items (videos) 2023-09-07 22:13:19 -07:00
Ming Kin Choi
27d8fa112d
Fix iOS screen timeout on video playback loop mode (more elegantly) 2023-08-27 14:11:45 +08:00
Ming Kin Choi
2a092577c6
Fix iOS screen timeout on video playback loop mode 2023-08-27 12:50:36 +08:00
Chunky programmer
45cc835694 Comments: Don't break JavaScript when loading more 2023-06-07 17:39:35 -04:00
Samantaz Fox
961cae2b9a
Improve accessibility (#3710) 2023-04-10 17:55:24 +02:00