summaryrefslogtreecommitdiffstats
path: root/assets/js/player.js (follow)
AgeCommit message (Collapse)Author
2022-02-22Lint docs of addCurrentTimeToURL in player scriptFéry Mathieu (Mathius)
Follow lint indications : https://github.com/iv-org/invidious/pull/2912#discussion_r811479583
2022-02-22Lint conditional deletion of t in addCurrentTimeToURL inside player scriptFéry Mathieu (Mathius)
Follow lint indications : https://github.com/iv-org/invidious/pull/2912#discussion_r811474927
2022-02-22Remove extra space in shareOptions.embedCode of player scriptFéry Mathieu (Mathius)
Follow lint indications : https://github.com/iv-org/invidious/pull/2912#discussion_r811367117
2022-02-19Add currentTimestamp in shared url by videojs-shareFéry Mathieu (Mathius)
2022-02-08Inline a few JS functionsSamantaz Fox
Helps sending less bytes to the client.
2022-02-08player shortcuts: ignore numpadSamantaz Fox
2022-02-07Fix typosDimitris Apostolou
2022-01-30rename hls to vhs in the playerÉmilien Devos
hls method is deprecated: https://github.com/videojs/http-streaming#how-to-use
2022-01-05Merge pull request #2744 from tirz/feature-fix_null_ptr_for_localStorageSamantaz Fox
fix: null ptr while retaining video time
2021-12-31Add check to avoid saving player pos to the11Tuvork28
length of the given video by saving a minimum of 15 at the end
2021-12-26fix: null ptr while retaining timeThéo Gaillard
2021-12-15Allow the t parameter to override the stored video playback positionbbielsa
2021-12-15Rename 'remember_position' to 'save_player_pos' for claritybbielsa
2021-12-15Added default value for get_video_time() which was causing a bug in safaribbielsa
2021-12-15Remove console.log debuggingbbielsa
2021-12-15Save and load the position for the video using a local storage object, the ↵bbielsa
object is a dictionary, where the key is the video ID, and the value is the time at which the user last left off watching the video. If the user deselected the 'remember video position' checkbox in the preferences this dictionary is cleared
2021-09-15Prevent VR from being initialized in listen mode (#2396)syeopite
2021-09-10Handle equirectangular projections for VR (#2379)syeopite
2021-05-23Allow configurable support of interactive 360 vidsyeopite
2021-05-23Fix projection settings for VRsyeopite
2021-05-23Add support for VR videos through videojs-vrsyeopite
2021-05-13Merge pull request #2008 from syeopite/mobile-uiTheFrenchGhosty
Improve player controls for mobile devices
2021-05-03Overhaul Invidious's "Youtube" player stylesyeopite
2021-05-03Improve mobile user interface for video playersyeopite
2021-05-03Improve mobile ux with videojs-mobile-uisyeopite
2021-04-08Add watch on Invidious button to embedssyeopite
2021-02-26Merge branch 'master' into patch-1Perflyst
2021-02-24do not preload captionsAndrew Zhao
2021-02-17Skip duration multiply by playback rate138138138
Fast Forward/Backward like YouTube. The skip duration is multiplied by playback rate.
2021-02-10Fix ; () {}138138138
2021-02-03Update player.js138138138
2021-02-02Fix double duration on all Apple devices138138138
The fix will be applied when Safari browser is detected.
2021-02-01Update player.js138138138
Fixes audio mode duration doubled in iPhone iOS browsers. The player will stop after reaching the real duration. iOS() checks both iOS and iPadOS. Only tested on iPhone iOS browsers. Testers needed for behavior of iPadOS and MacOS.
2021-01-17Fix DASH playback bug.Andre Borie
2021-01-13Merge pull request #1619 from tenpura-shrimp/ignorevideoplaybackPerflyst
do not add local to xhr when in videoplayback
2021-01-10fix incorrect use of setinterval in jsAndrew Zhao
2020-12-29do not add local to xhr when in videoplaybackAndrew Zhao
2020-12-19Improve DASH quality preferencesaltycrys
Besides `auto`, `best` and `worst` it is now possible to select a target height. If the target height is not available the closest lower height is selected.
2020-12-19Add DASH quality preferencesaltycrys
The options are `auto` (the current and default behavior), `best` and `worst`. The UI is only updated once playback starts.
2020-12-08do not proxy hls on supported browserAndrew Zhao
2020-11-08Update videojs-vtt-thumbnails to latest upstream versionsaltycrys
Note that the latest version on NPM is over two years old so this was built from source.
2020-09-09Merge pull request #713 from leonklingele/keydown-mediakeys-detectionTheFrenchGhosty
js: add support to detect media keys in keydown handler
2020-03-15Migrate to a good Content Security Policy (#1023)leonklingele
So attacks such as XSS (see [0]) will no longer be of an issue. [0]: https://github.com/omarroth/invidious/issues/1022
2020-03-01js: add support to detect media keys in keydown handlerLeon Klingele
See [0] for all the relevant codes. [0]: https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values#Multimedia_keys Fixes a regression introduced in e6b4e1268945777c5d07dfca4362a1af23f6d970. Fixes https://github.com/omarroth/invidious/issues/712.
2020-02-01Remove invalid HTML from embed playerJorge Maldonado Ventura
2020-01-04Change embed codeJorge Maldonado Ventura
2019-10-18Fix comment event listenerOmar Roth
2019-08-18js: add support to detect alt, meta and control key in keydown handler (#704)leonklingele
This fixes a quite severe user experience issue where pressing the 'alt', 'meta' and/or 'ctrl' key along with one of the supported keys (e.g. 'f' to enter video fullscreen mode) would overwrite the default browser behavior. In the case of 'f+meta' we would enter fullscreen mode, and not open the browser search panel as one might expect. This change is required to stay consistent with the way YouTube handles keydown events.
2019-08-16js: add support for keydown events (#678)leonklingele
* js: add support for keydown events This will modify the player behavior even if the player element is unfocused. Based on the YouTube key bindings, allow to - toggle playback with space and 'k' key - increase and decrease player volume with up / down arrow key - mute and unmute player with 'm' key - jump forwards and backwards by 5 seconds with right / left arrow key - jump forwards and backwards by 10 seconds with 'l' / 'j' key - set video progress with number keys 0–9 - toggle captions with 'c' key - toggle fullscreen mode with 'f' key - play next video with 'N' key - increase and decrease playback speed with '>' / '<' key * js: remove unused dependency 'videojs.hotkeys.min.js' Support for controlling the player volume by scrolling over it is still retained by copying over the relevant code part from the aforementioned library.
2019-07-14Add '1.75' playback speedOmar Roth