Samantaz Fox
a1bb421eec
Remove useless 'hl' parameters on captions URL
2021-11-21 01:50:11 +01:00
Samantaz Fox
947fe4fbb3
HTML escape video mimetype
...
Video mimetype may contain code information between double quotes.
If not properly escaped, it breaks the browser's parser. E.g:
```
type="video/mp4; codecs=" avc1.64001f,="" mp4a.40.2""=""
```
Thank Robin for catching this!
2021-09-13 18:20:11 +02:00
Émilien Devos
8b62c05fe2
remove 3gp only from the player ( #2376 )
...
+ video quality precedence on default player when js is not enabled
2021-09-03 09:39:11 +02:00
Samantaz Fox
56ebef4352
Multiple front-end fixes ( #2247 )
...
Fixes:
* Sanitize user-provided content in HTML (Fixes #2193 )
* Fix encoding of search query in prev/next pages (Fixes #2229 )
* Fix some issues introduced with #2196 :
- Fix alignment of all <h3> elements (Move the inline style from the parent to the <h3> element)
- Add missing comma on 'dir' HTML attribute (Typo introduced by PR #2196 )
Code cleaning:
* Remove unnecessary 'each_sclice' + 'each' double loop in ECR files
* Clean the player's <source> list generation code (in player.ecr)
2021-07-15 23:01:36 +02:00
syeopite
54b19a04bb
Fix caption parsing on age restricted videos
2021-06-27 08:35:28 -07:00
Andrew Zhao
9b79e35d52
do not preload captions
2021-02-24 01:02:55 -05:00
saltycrys
5f03a583d1
Update code for Crystal 0.36.0
...
Rename `HTTPClient@socket` to `HTTPClient@io`, see
https://github.com/crystal-lang/crystal/pull/9543 .
Rename `URI#full_path` to `URI#request_target`, see
https://github.com/crystal-lang/crystal/pull/10099 .
2021-02-02 20:01:02 +01:00
Andrew Zhao
0cb442d40e
do not proxy hls on supported browser
2020-12-08 00:53:48 -05:00
Andre Borie
a54cbe896d
Remove on-hover tooltip from player
...
Using the player on latest Safari, the tooltip appears and stays stuck for long even when switching to fullscreen which is annoying. You need to explicitly click anywhere to dismiss that stuck tooltip.
This doesn't seem to happen in Firefox so I am not sure whether this is a browser bug, but in any case I don't see any value in keeping this tooltip so maybe we can just remove it?
2020-09-15 18:50:17 +01:00
Omar Roth
1eca969cf6
Add support for polymer redesign
2020-06-15 18:18:04 -05:00
Omar Roth
3b2e142542
Fix JSON serialization
2020-03-29 18:04:44 -04:00
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
2020-03-15 16:46:08 -05:00
Leon Klingele
46577fb128
Add support for player styles
...
This currently includes the following styles:
- Invidious, the default
- YouTube, using a centered play button and always visible video control bar
Implements https://github.com/omarroth/invidious/issues/670 .
Supersedes https://github.com/omarroth/invidious/pull/661 .
2019-08-09 02:04:36 +02:00
Omar Roth
2cc25b1e6e
Add administrator option to disable proxying
2019-07-08 12:15:18 -05:00
Omar Roth
b43e9ed7e7
Refactor 'description_html'
2019-06-08 15:08:27 -05:00
Omar Roth
fd8af88493
Use separate asset version for cache busting
2019-05-09 22:58:34 -05:00
Omar Roth
4616f889fd
Add simple form of cache busting
2019-05-08 08:58:10 -05:00
Omar Roth
058711d3a8
Refactor player.js
2019-05-06 11:23:14 -05:00
Omar Roth
e04b7d0f01
Fix video previews for embeds
2019-05-06 10:28:20 -05:00
Omar Roth
2faa2ed1f4
Refactor watch.js
2019-05-06 09:48:33 -05:00
Omar Roth
6d92775ab5
Add video previews
2019-05-02 14:36:32 -05:00
Omar Roth
1a9360ca75
Minor formatting changes
2019-05-01 20:03:39 -05:00
Omar Roth
56fe3ede5b
Add annotation preferences
2019-04-30 23:39:04 -05:00
glmdgrielson
e48a000784
Add annotation player
...
This addresses issue #110 from master. Yay for adding annotations back!
2019-04-30 21:19:13 -05:00
Omar Roth
075adb4f03
Add http-source-selector
2019-04-28 10:05:15 -05:00
Omar Roth
8c2958b86d
Add 'local=true' to hlsUrl
2019-04-25 12:41:35 -05:00
Omar Roth
eac0a52f10
Fix shiftKey for player hotkeys
2019-04-19 09:20:41 -05:00
Omar Roth
e8c5246645
Fix share button
2019-04-12 09:31:05 -05:00
Omar Roth
5de300fb35
Fix default background color for player
2019-04-11 17:03:37 -05:00
Omar Roth
0c6cede287
Format files and trim trailing whitespace
2019-03-23 14:05:13 -05:00
Omar Roth
1c8075ca40
Add 0.25 to list of playback rates
2019-03-23 11:14:15 -05:00
Omar Roth
56b0952cd1
Update sources
2019-03-23 11:09:31 -05:00
Omar Roth
d85020079f
Add shortcuts for changing playbackRate
2019-03-17 12:21:55 -05:00
Omar Roth
405e98f429
Add 1.25 and 0.75 playback rates
2019-03-16 09:17:57 -05:00
Omar Roth
4a56a2cad6
Remove outline when clicking on player
2019-03-15 08:34:37 -05:00
Omar Roth
46e985b306
Add 'dark_mode', 'thin_mode' as query parameters
2019-03-11 12:44:25 -05:00
Omar Roth
fdc014af67
Add '&local=true' to watch and embed pages
2019-03-11 11:43:48 -05:00
Omar Roth
a65998274f
Defer loading videojs-share until last
2019-03-05 15:22:04 -06:00
Omar Roth
9989c8100a
Properly escape email when creating view
2019-02-02 15:27:19 -06:00
Omar Roth
d5c9b7dfe8
Only play after error if already playing
2019-01-31 20:26:11 -06:00
Omar Roth
def58ff11f
Add interval and timeout for errors in player
2019-01-31 09:09:00 -06:00
Omar Roth
1e214aae7c
Reload player instead of removing invalid source
2019-01-29 19:55:27 -06:00
Omar Roth
ff09a7255a
Add handling to remove invalid sources
2019-01-28 22:36:27 -06:00
Omar Roth
26b7200360
Respect playback rate when reloading player
2019-01-28 20:47:38 -06:00
Omar Roth
b38a2bbd12
Reload player on error
2019-01-28 20:45:08 -06:00
Omar Roth
a9aae6b36c
Add internal redirect for video URLs
2019-01-27 20:36:40 -06:00
Omar Roth
a160c645c9
Add support for translations
2018-12-20 15:32:09 -06:00
Omar Roth
b030149d76
Revert "Use <audio> tag for audio only"
...
This reverts commit e6bc5bb35d
.
2018-12-08 20:12:22 -06:00
Omar Roth
32bd593a8a
Remove log statement
2018-11-27 21:20:29 -06:00
Omar Roth
1c49fa3b63
Add timeout for autoplay
2018-11-27 21:18:20 -06:00