summaryrefslogtreecommitdiffstats
path: root/assets/js/player.js (follow)
AgeCommit message (Collapse)Author
2025-02-26JS: Update timeupdate event defensive to prevent errors (#4782)syeopite
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-07-06JS: Update timeupdate event defensive to prevent errorsPMK
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.
2023-12-06Player: Fix iOS screen timeout in loop mode (#4076)Samantaz Fox
2023-10-21JS: Update external links exactly once per secondSamantaz Fox
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-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-03-27improve accessibilityChunkyProgrammer
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-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
2022-05-16JS fixes: recursion in themes, keys for frame walking, JSON XHR and ↵meow
details-summary in IE11
2022-05-15js code rewrite. Themes rewritten, bugs fixedmeow
2022-05-06fix helpers storagemeow
2022-05-06js code rewrite. Created _helpers.js with XHR and storage wrappermeow
2022-04-27replace tabs to spacesmeow
2022-04-25`console.warn` and `info` instead of `log`meow
2022-04-25optional catchng is not supported by IE11meow
2022-04-25destructing binding is not supported by IE11meow
2022-04-25replace innerHTML to safer textContent where possiblemeow
2022-04-25add variable declarationsmeow
2022-04-25transform template stringmeow
2022-04-25single quotesmeow
2022-04-25convert arrow functionsmeow
2022-04-25eqeqeqmeow
2022-04-25semicolonsmeow
2022-04-25use strictmeow