274 Commits

Author SHA1 Message Date
bonjinnorenka
39d55afdab
Merge 0d586dde2ac609cef9c0500fe404101df1f6c617 into 1ae0f45b0e5dca696986925a06ef4f4b4f43894b 2025-08-13 03:18:53 -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
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
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
Samantaz Fox
813dc6de1c
Player: Fix iOS screen timeout in loop mode (#4076) 2023-12-06 18:19:31 +01: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
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
RadoslavL
275501aad3 Actually add the pagination.js file (git didn't detect it the first time) 2023-09-30 19:01:48 +03:00
bonjinnorenka
0d586dde2a reduce indentation and improve jsdoc descriptions 2023-09-29 22:35:40 +09: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
bonjinnorenka
bd4a4ab17b add jsdoc for iframe api 2023-09-26 00:06:47 +09:00
bonjinnorenka
7af39c2d4e code more easy to read 2023-09-24 23:04:09 +09:00
bonjinnorenka
afc521ef45 delete field from api and add escape embed code 2023-09-24 20:15:38 +09:00
bonjinnorenka
00ae96a7e5
Code easy to read by suggestion from code review
Co-authored-by: Samantaz Fox <coding@samantaz.fr>
2023-09-23 18:13:54 +09: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
bonjinnorenka
c3ea7fb72c fix bugs, rollback event function and readable 2023-09-08 00:46:37 +09:00
bonjinnorenka
b1a1e5230d better iframe size and use forEach on playerVars 2023-09-06 23:54:18 +09:00
bonjinnorenka
ffb7b7446e support playlist function 2023-09-06 23:31:09 +09:00
bonjinnorenka
96439bc15c improve event process 2023-09-04 00:43:39 +09:00
bonjinnorenka
bd35a5a149 fix typo,delete unnecessary type check 2023-09-03 09:04:04 +09:00
bonjinnorenka
cb27c6a33a improve readable and fix YT overwrite bug 2023-09-03 02:27:05 +09:00
bonjinnorenka
1d67e13d9c improve feature 2023-09-03 02:17:14 +09:00
bonjinnorenka
6a1beeb789 small improve 2023-08-30 00:52:58 +09:00
bonjinnorenka
2134dd89d8
improve return data
Co-authored-by: AHOHNMYC <24810600+AHOHNMYC@users.noreply.github.com>
2023-08-30 00:40:03 +09:00
bonjinnorenka
8239d1da5d
improve error process
Co-authored-by: AHOHNMYC <24810600+AHOHNMYC@users.noreply.github.com>
2023-08-30 00:27:32 +09:00
bonjinnorenka
26f9e8bf0d
improve type check
Co-authored-by: AHOHNMYC <24810600+AHOHNMYC@users.noreply.github.com>
2023-08-30 00:26:20 +09:00
bonjinnorenka
37cd696a46
replace var with let
Co-authored-by: AHOHNMYC <24810600+AHOHNMYC@users.noreply.github.com>
2023-08-30 00:22:55 +09:00
bonjinnorenka
4bb9a618be
error message more easy to understand
Co-authored-by: AHOHNMYC <24810600+AHOHNMYC@users.noreply.github.com>
2023-08-29 07:56:52 +09:00