summaryrefslogtreecommitdiffstats
path: root/assets/js (follow)
AgeCommit message (Collapse)Author
2024-10-08Preferences: Add option to control preloading of video data (#4122)Samantaz Fox
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-06-15Player: Fix video playback for videos that have already been watched.Fijxu
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-02-12API: Remove the fields parameter (#4276)Samantaz Fox
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
2023-12-06Player: Fix iOS screen timeout in loop mode (#4076)Samantaz Fox
2023-11-23Remove the 'fields' parameter on the client side tooSamantaz Fox
2023-10-21Frontend: Add video timestamp on external links (#4101)Samantaz Fox
2023-10-21JS: Update external links exactly once per secondSamantaz Fox
2023-09-27remove unused variableChunkyProgrammer
simplify resolve url remove trailing spaces Co-Authored-By: Samantaz Fox <coding@samantaz.fr>
2023-09-27JS: Fix missing domain in URL constructorSamantaz Fox
2023-09-27Don't redefine the "preload" option in player.jsThomas Lange
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-26Add option to control preloading of video dataThomas Lange
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-18Add support for post pageChunkyProgrammer
2023-09-17JS: Replace '.setAttribute("href")' with '.href'Samantaz Fox
Co-authored-by: syeopite <70992037+syeopite@users.noreply.github.com>
2023-09-16Frontend: Use 'timeupdate' event listener rather than setTimeout()Samantaz Fox
2023-09-14Frontend: Add timestamp on switch invidious instance linksSamantaz Fox
2023-09-14Frontend: Add timestamp on invidious embed linksSamantaz Fox
2023-09-14Frontend: Add timestamp on youtube+embed linksSamantaz Fox
2023-08-27Fix iOS screen timeout on video playback loop mode (more elegantly)Ming Kin Choi
2023-08-27Fix iOS screen timeout on video playback loop modeMing Kin Choi
2023-06-07Comments: Don't break JavaScript when loading moreChunky programmer
2023-04-10Improve accessibility (#3710)Samantaz Fox
2023-04-02implement code suggestionsChunkyProgrammer
Co-Authored-By: Samantaz Fox <coding@samantaz.fr>
2023-03-31Handle auto theme correctly with the manual toggle (#3521)Samantaz Fox
2023-03-27improve accessibilityChunkyProgrammer
2023-02-19Fixed console errorWes van der Vleuten
2023-01-21Update assets/js/watched_widget.js with suggestion of AHOHNMYCWes van der Vleuten
Co-authored-by: AHOHNMYC <24810600+AHOHNMYC@users.noreply.github.com>
2022-12-29handle auto theme correctly with the manual toggleshironeko
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-11-09CleanupWes van der Vleuten
2022-11-08Fixed watch indicator when position is not savedWes van der Vleuten
2022-11-08Removed console.logWes van der Vleuten
2022-11-08Fixed thumbnails with darkreader, Added watched indicator in more locationsWes van der Vleuten
2022-11-07Added watch indicatorWes van der Vleuten
2022-08-22Fix prefs cookies in player (#3276)Samantaz Fox
2022-07-25Fix updated sources not returned inside map funcÉmilien Devos
This fix the issue reported in https://github.com/iv-org/invidious/issues/2055#issuecomment-1192894698
2022-07-11Merge pull request #3162 from 138138138/138138138-audio-quality-1Samantaz Fox
2022-07-07Merge pull request #3158 from 138138138/138138138-mobileui-forward-rateSamantaz Fox
2022-06-25Update MobileUi138138138
2022-06-25Update MobileUi138138138
2022-06-25Add audioTrackButton138138138
2022-06-23Fix captions138138138
textTracks 0 in DASH mode shows debug messages. Use textTracks 1 in DASH mode, and textTracks 0 in non-DASH mode and audio mode.
2022-06-22Player MobileUi fast forward/backward rate138138138
The fast forward/backward seconds will be adjusted according to playback rate (same as YouTube app behavior). 5 seconds is used when the playback rate is 1x. Previously it was 10 seconds. I believe most of the users watch videos at 2x, so the change will not be obvious.
2022-06-22Fix captions138138138
Captions should automatically show according to preferences.
2022-06-05JS. Trailing spaces removedmeow
2022-05-31fix time adding dirung redirectionmeow
2022-05-31Save time during redirection on another instancemeow
2022-05-21comment changedmeow
extra spaces removed
2022-05-21handled invalid values in storagemeow
partial rewrite notifications.js innerText to textContent fixed bug with clamping
2022-05-19JS code minor formattingAHOHNMYC
Co-authored-by: Samantaz Fox <coding@samantaz.fr>
2022-05-17Less player reload timeoutmeow
2022-05-17Share video regression. Single quotes are requiredmeow