Commit Graph

45 Commits (21b96a31599e890fe063e3e24cf5f3a995779a69)

Author SHA1 Message Date
syeopite 5054510d15
Prevent VR from being initialized in listen mode (#2396) 3 years ago
syeopite 50c8afb525
Handle equirectangular projections for VR (#2379) 3 years ago
syeopite 6e6f4d5a37
Allow configurable support of interactive 360 vid 4 years ago
syeopite f06053b1cf
Fix projection settings for VR 4 years ago
syeopite df0cd30236
Add support for VR videos through videojs-vr 4 years ago
TheFrenchGhosty 75e5b49c3a
Merge pull request #2008 from syeopite/mobile-ui
Improve player controls for mobile devices
4 years ago
syeopite d6585d7583
Overhaul Invidious's "Youtube" player style 4 years ago
syeopite 1924d75c2b
Improve mobile user interface for video player 4 years ago
syeopite 53cdb04be7
Improve mobile ux with videojs-mobile-ui 4 years ago
syeopite bc5c0f65b8
Add watch on Invidious button to embeds 4 years ago
Perflyst bcb44ab600
Merge branch 'master' into patch-1 4 years ago
Andrew Zhao 9b79e35d52 do not preload captions 4 years ago
138138138 3b484c362e
Skip duration multiply by playback rate
Fast Forward/Backward like YouTube. The skip duration is multiplied by playback rate.
4 years ago
138138138 121224b1b0
Fix ; () {} 4 years ago
138138138 ddd7f3f384
Update player.js 4 years ago
138138138 a6970e02f9
Fix double duration on all Apple devices
The fix will be applied when Safari browser is detected.
4 years ago
138138138 685902adab
Update player.js
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.
4 years ago
Andre Borie 3046350cb2 Fix DASH playback bug. 4 years ago
Perflyst c7e65ce795
Merge pull request #1619 from tenpura-shrimp/ignorevideoplayback
do not add local to xhr when in videoplayback
4 years ago
Andrew Zhao 5a08dfa72f fix incorrect use of setinterval in js 4 years ago
Andrew Zhao ac0ed14eae do not add local to xhr when in videoplayback 4 years ago
saltycrys eed78c960d Improve DASH quality preference
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.
4 years ago
saltycrys eea7ca9b72 Add DASH quality preference
The options are `auto` (the current and default behavior), `best` and `worst`.

The UI is only updated once playback starts.
4 years ago
Andrew Zhao 0cb442d40e do not proxy hls on supported browser 4 years ago
saltycrys 3379f3ef61 Update videojs-vtt-thumbnails to latest upstream version
Note that the latest version on NPM is over two years old so this was built from source.
4 years ago
TheFrenchGhosty 3ab3a5a236
Merge pull request #713 from leonklingele/keydown-mediakeys-detection
js: add support to detect media keys in keydown handler
4 years ago
leonklingele 70cbe91776
Migrate to a good Content Security Policy (#1023)
So attacks such as XSS (see [0]) will no longer be of an issue.

[0]: https://github.com/omarroth/invidious/issues/1022
5 years ago
Leon Klingele e3593fe197
js: add support to detect media keys in keydown handler
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 e6b4e12689.
Fixes https://github.com/omarroth/invidious/issues/712.
5 years ago
Jorge Maldonado Ventura dd9f1024f4 Remove invalid HTML from embed player 5 years ago
Jorge Maldonado Ventura 58c1a68ad9 Change embed code 5 years ago
Omar Roth 23ccaea2ff
Fix comment event listener 5 years ago
leonklingele acaf7b969a js: add support to detect alt, meta and control key in keydown handler (#704)
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.
5 years ago
leonklingele e6b4e12689 js: add support for keydown events (#678)
* 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.
5 years ago
Omar Roth e8a56e0fea
Add '1.75' playback speed 6 years ago
Omar Roth 1477f99c2c
Add target="_blank" to embed titles 6 years ago
Omar Roth 2e1f9d5fa9
Fix title URL for embedded videos 6 years ago
Omar Roth 485459b8b2
Add clickable title for embedded videos 6 years ago
Omar Roth 552f616305
Fix retry on timeout for AJAX requests 6 years ago
Omar Roth 9122f8acee
Add title overlay to embedded videos 6 years ago
Omar Roth ef8c9f093c
Add premiere date to watch page 6 years ago
Omar Roth 8c944815bc
Minor refactor 6 years ago
Omar Roth 8521f04087
Use short URL for sharing videos 6 years ago
Omar Roth 4345b1d930
Reset playbackRate once player has caught up to source 6 years ago
Omar Roth 03be793930
Fix typo in player.js 6 years ago
Omar Roth 058711d3a8
Refactor player.js 6 years ago