Commit Graph

246 Commits

Author SHA1 Message Date
d0433c8386 JS: Update timeupdate event defensive to prevent errors (#4782) 2025-02-26 13:56:13 -08:00
f95f87e448 Frontend: Add a first page and previous page buttons for channel navigation (#4123) 2025-02-26 13:54:25 -08:00
831017f403 Frontend: Carry over audio-only mode in playlist links (#4784) 2025-01-22 11:35:33 -08:00
dbdf2ad23a Routes: Simplify actions in watch_ajax 2024-10-29 18:27:53 +01:00
dbd96c77e4 Routes: Simplify actions in token_ajax 2024-10-29 18:21:58 +01:00
e453a2a682 Routes: Simplify actions in subscription_ajax 2024-10-29 18:16:52 +01:00
7e4b3b182a Routes: Simplify actions in playlist_ajax 2024-10-29 18:09:50 +01:00
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
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
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
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
813dc6de1c Player: Fix iOS screen timeout in loop mode (#4076) 2023-12-06 18:19:31 +01:00
7b6930c16b Remove the 'fields' parameter on the client side too 2023-11-23 18:30:42 +01:00
019807256f Seperated repetitive code in a function 2023-11-09 21:56:41 +02:00
2b2d67fcfa Fixed a typo
Co-authored-by: syeopite <70992037+syeopite@users.noreply.github.com>
2023-11-08 11:48:32 +02:00
e8c2388589 Removed the purging of the query parameters 2023-10-26 11:30:12 +03:00
2a65b5f52e Frontend: Add video timestamp on external links (#4101) 2023-10-21 18:31:42 +02:00
40919c6a83 JS: Update external links exactly once per second 2023-10-21 13:45:15 +02:00
e307fcc9a1 Fixed an issue 2023-10-20 09:00:23 +03:00
275501aad3 Actually add the pagination.js file (git didn't detect it the first time) 2023-09-30 19:01:48 +03:00
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
47cc9dc169 JS: Fix missing domain in URL constructor 2023-09-27 23:03:24 +02:00
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
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
e3c365f3d6 Add support for post page 2023-09-18 20:10:41 -04:00
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
06b2a4ba9d Frontend: Use 'timeupdate' event listener rather than setTimeout() 2023-09-16 00:41:46 +02:00
58f4a012b7 Frontend: Add timestamp on switch invidious instance links 2023-09-14 22:28:07 +02:00
2456b62936 Frontend: Add timestamp on invidious embed links 2023-09-14 22:27:36 +02:00
792a999386 Frontend: Add timestamp on youtube+embed links 2023-09-14 22:26:36 +02:00
27d8fa112d Fix iOS screen timeout on video playback loop mode (more elegantly) 2023-08-27 14:11:45 +08:00
2a092577c6 Fix iOS screen timeout on video playback loop mode 2023-08-27 12:50:36 +08:00
45cc835694 Comments: Don't break JavaScript when loading more 2023-06-07 17:39:35 -04:00
961cae2b9a Improve accessibility (#3710) 2023-04-10 17:55:24 +02:00
1da00bade3 implement code suggestions
Co-Authored-By: Samantaz Fox <coding@samantaz.fr>
2023-04-02 16:31:59 -04:00
9e82e6fc1b Handle auto theme correctly with the manual toggle (#3521) 2023-03-31 22:43:23 +02:00
a3da03bee9 improve accessibility 2023-03-27 22:56:29 -04:00
bde21d527f Fixed console error 2023-02-19 20:41:18 +01:00
4aa696fa6e Update assets/js/watched_widget.js with suggestion of AHOHNMYC
Co-authored-by: AHOHNMYC <24810600+AHOHNMYC@users.noreply.github.com>
2023-01-21 23:08:24 +01:00
1aaf290814 handle auto theme correctly with the manual toggle
If the user used the manual toggle, they will not be able to get back to
auto since it will force set to light theme. This should fix that.
2022-12-29 14:41:17 -05:00
d3d9cfdd0d Cleanup 2022-11-09 00:32:38 +01:00
c03f92baf7 Fixed watch indicator when position is not saved 2022-11-08 23:22:44 +01:00
5bcb5f3175 Removed console.log 2022-11-08 23:19:27 +01:00
f604c1c68b Fixed thumbnails with darkreader, Added watched indicator in more locations 2022-11-08 23:15:42 +01:00
7b57381773 Added watch indicator 2022-11-07 20:04:46 +01:00
4c1a5f84fa Fix prefs cookies in player (#3276) 2022-08-22 16:16:50 +00:00
210c2a8855 Fix updated sources not returned inside map func
This fix the issue reported in https://github.com/iv-org/invidious/issues/2055#issuecomment-1192894698
2022-07-25 12:38:17 +00:00
cd6c73e487 Merge pull request #3162 from 138138138/138138138-audio-quality-1 2022-07-11 17:36:28 +02:00
dc6d088e30 Merge pull request #3158 from 138138138/138138138-mobileui-forward-rate 2022-07-07 00:05:25 +02:00