Commit Graph

578 Commits

Author SHA1 Message Date
Chocobozzz 0ef18e5b89
Reduce time to throw an error on live problem 2023-05-10 14:52:02 +02:00
Chocobozzz 7815dc450e
Prevent invalid end watch section warnings 2023-05-10 14:23:59 +02:00
Chocobozzz 89fc014262
Catch metrics error 2023-05-10 11:25:24 +02:00
Chocobozzz 1d90e39df3
Fix console error 2023-03-21 08:19:31 +01:00
Wicklow 2c525a5466
Non latin keyboard layout support player shortcut (#5684)
* Non latin keyboard layout support player shortcut

* isNaked in charge of toUpperCase
2023-03-08 15:08:46 +01:00
Chocobozzz f967d8be4d
Fix live buffering with small latency 2023-03-07 11:47:42 +01:00
Chocobozzz 626b76dcf5
Fix current video time saving for anonymous users 2023-03-01 10:48:21 +01:00
Chocobozzz 6de076222a
Avoid always resuming the end of the video 2023-02-25 16:18:28 +01:00
Chocobozzz d270d6a042
Fix lint 2023-02-16 16:41:34 +01:00
Chocobozzz c9c21fafdb
Fix button link on mobile 2023-02-15 10:27:26 +01:00
Chocobozzz 66b73484c7
Prevent hotkeys playback rate/seek with lives 2022-12-30 15:54:08 +01:00
Chocobozzz b27bce21f0
Hide playback rate for lives 2022-12-30 15:38:26 +01:00
Chocobozzz 4fe7cde283
Fix build 2022-12-29 10:14:43 +01:00
Chocobozzz d97d36b486
More robust player stats card 2022-12-29 08:38:33 +01:00
kontrollanten 0e08a5e749 feat(player/playbackRate): set rate with url param 2022-12-29 08:38:18 +01:00
kontrollanten 1f3198444f
Log HLS fatal error with error label (#5484)
* fix(client/p2p-media-loader): logg err upon fatal

* feat(client/p2p-media-loader): err log currentTime
2022-12-29 08:35:41 +01:00
Chocobozzz 7624270a63
Replay the stream when clicking on live button 2022-12-23 11:58:13 +01:00
Chocobozzz d91439648c
Prevent grey live button when loading the live 2022-12-21 10:56:48 +01:00
Chocobozzz 0e7c4b03c3
Add back to live feature 2022-12-20 16:28:15 +01:00
Chocobozzz 71e3e879c0
Support reinjecting token in private m3u8 playlist 2022-12-02 15:25:20 +01:00
Chocobozzz 7dcd7d8140
Fix client lint 2022-11-15 15:16:41 +01:00
Chocobozzz 4638cd713d
Don't inject untrusted input
Even if it's already checked in middlewares
It's better to have safe modals too
2022-11-15 14:41:55 +01:00
Chocobozzz 59a643aa5c
Force autoplay when live starts
Using the mute
2022-11-15 11:57:49 +01:00
Chocobozzz 32f44a017c
Force videojs to not recreate <video>
Happens with HLS playlist on iOS breaking our event listener on the
former <video> element in embed api
2022-11-14 10:13:02 +01:00
Chocobozzz eaa5dc3161
Reapply playsinline on player fallback 2022-10-31 13:47:55 +01:00
Chocobozzz f746622be4
Prevent console error with HLS fallback 2022-10-31 10:33:37 +01:00
Chocobozzz 3f9decbd01
Prevent player crash on safari 2022-10-28 15:44:19 +02:00
Chocobozzz 0b8e50aa8d
Fix HLS fallback 2022-10-28 15:32:06 +02:00
Chocobozzz 49e7e4d9ff
Fix token injection if unlogged user 2022-10-27 09:13:10 +02:00
Chocobozzz ce3121efeb
Don't conflict with alt + num web browser hotkey 2022-10-25 16:26:05 +02:00
Chocobozzz ae7b0cbbcf
Prevent error with metrics in HTTP player 2022-10-25 15:08:12 +02:00
Chocobozzz 326f36929a Don't fallback to HLS with private videos 2022-10-24 14:48:24 +02:00
Chocobozzz 3545e72c68 Put private videos under a specific subdirectory 2022-10-24 14:48:24 +02:00
kontrollanten 9866921cbf
feat(plugins): add p2p-media-loader options filter (#5318)
* feat(plugins): add p2p-media-loader options filter

closes #5317

* remove obsolete await
2022-10-11 08:37:14 +02:00
Chocobozzz 77662dae24
Add channels link in menu 2022-09-28 15:43:59 +02:00
kontrollanten f2a16d93b4
Handle network issues in video player (#5138)
* feat(client/player): handle network offline

* feat(client/player): human friendly err msg

* feat(client/player): handle broken resolutions

When an error occurs for a resolution, remove the resolution and try
with another resolution.

* fix(client/player): prevent err handl when offline

* fix(client/player): localize offline text
2022-09-28 11:52:23 +02:00
Ewout van Mansom 192edf169c Translate more strings in player stats 2022-09-16 10:19:30 +02:00
Chocobozzz f2c29ced30
Fix broken player on non MSE devices 2022-09-08 11:10:01 +02:00
Chocobozzz 6a02dd1c3d
Fix metric with old webtorrent videos 2022-08-17 10:51:51 +02:00
Chocobozzz 7804e577de
Increase test timeout 2022-08-16 15:41:21 +02:00
Chocobozzz 37229de26e
Fix "undefined" resolution in player stats 2022-08-16 14:48:11 +02:00
Chocobozzz fd3c2e8705
Add playback metric endpoint sent to OTEL 2022-08-16 10:33:27 +02:00
Chocobozzz de61544582
Add plugin hooks/placeholder to share modal 2022-08-11 15:28:11 +02:00
Chocobozzz 3a818abdc0
Reduce auto play error log 2022-08-03 15:25:24 +02:00
Chocobozzz a77c5ff362
Fix stucked HLS player 2022-07-21 12:08:47 +02:00
Chocobozzz 42b4063699
Add ability for client to create server logs 2022-07-18 11:37:18 +02:00
Chocobozzz 7a9efc5cd2
Remove unused class attribute 2022-06-28 14:11:59 +02:00
Chocobozzz bd2b51be4b
Put instance name in embed button 2022-06-28 14:11:10 +02:00
Chocobozzz a334597283
Theme fixes 2022-06-28 11:29:54 +02:00
Chocobozzz 64324ac646
Merge branch 'release/4.2.0' into develop 2022-06-23 10:53:16 +02:00
Chocobozzz 408fd5e424
More precise format byte with GB 2022-06-23 10:45:36 +02:00
Chocobozzz 5b0ec7cddb
Increase global font size 2022-06-16 11:37:08 +02:00
Chocobozzz 6f03f944c3
Redesign register steps 2022-06-15 13:31:53 +02:00
Chocobozzz f552ca84a5
Upgrade client dependencies 2022-06-13 14:05:46 +02:00
Chocobozzz f72c78b2f6
Reorganize application.scss 2022-06-13 11:42:23 +02:00
Chocobozzz dc1296a9ab
Better icon names 2022-06-13 11:28:20 +02:00
Chocobozzz 93c728a25a
Replace all glyphicon icons 2022-06-13 11:23:36 +02:00
Chocobozzz c2faa073d1
Replace glyphicon chevron 2022-06-10 17:05:55 +02:00
Chocobozzz b15fcd49bf
Prefer global icon instead of glyphicon for copy 2022-06-10 15:51:47 +02:00
luz paz 7a4fd56ccd Fix various typos
Found via `codespell -q 3 -S ./CREDITS.md,./CHANGELOG.md,./client/src/locale,./yarn.lock,./client/yarn.lock -L doubleclick,followings,nd,ot,ro,serie,splitted,tread,truthy`
2022-06-07 16:41:21 +02:00
Chocobozzz d3f4689bde
Add live autostart/messages in embed 2022-05-31 14:24:07 +02:00
Chocobozzz 1c8a9a1d22
Fix 0-9 player hotkey conflict with web browser 2022-05-20 10:06:01 +02:00
Chocobozzz 60f013e103
Add control bar option for peertube player 2022-05-20 09:59:53 +02:00
Chocobozzz 023c3ca2e7
Fix live play 2022-04-19 16:24:49 +02:00
Chocobozzz 1222a602a3
Use round for views stats 2022-04-15 10:47:48 +02:00
Chocobozzz 384ba8b77a Support videos stats in client 2022-04-15 09:49:35 +02:00
Chocobozzz 68e72ba90c
Optimize improve stat card rendering in player 2022-03-18 16:01:09 +01:00
Chocobozzz e71e2d8a8f
Fix missing p2p media loader config for hls 2022-03-18 13:32:20 +01:00
Chocobozzz b46489f8e4
Cleanup logo svg 2022-03-15 15:12:39 +01:00
Chocobozzz 57d6503286
Reorganize player files 2022-03-14 14:36:35 +01:00
Chocobozzz 9597920ee3
Reorganize player manager options builder 2022-03-14 11:36:38 +01:00
Chocobozzz 9af2accee6
Reorganize videojs components 2022-03-14 10:27:05 +01:00
Chocobozzz f443a74649 Add latency setting support 2022-03-09 09:23:10 +01:00
Chocobozzz 01dd04cd5a
Display avatar in embed poster 2022-03-08 16:36:08 +01:00
Chocobozzz 6385fe5803
Fix stuck hls player with bad redundancy 2022-03-03 14:30:55 +01:00
kontrollanten d0800f7661
Implement avatar miniatures (#4639)
* client: remove unused file

* refactor(client/my-actor-avatar): size from input

Read size from component input instead of scss, to make it possible to
use smaller avatar images when implemented.

* implement avatar miniatures

close #4560

* fix(test): max file size

* fix(search-index): normalize res acc to avatarMini

* refactor avatars to an array

* client/search: resize channel avatar to 120

* refactor(client/videos): remove unused function

* client(actor-avatar): set default size

* fix tests and avatars full result

When findOne is used only an array containting one avatar is returned.

* update migration version and version notations

* server/search: harmonize normalizing

* Cleanup avatar miniature PR

Co-authored-by: Chocobozzz <me@florianbigard.com>
2022-02-28 08:34:43 +01:00
Chocobozzz ac5f679ad6
Fix HLS buffer 2022-02-22 13:44:12 +01:00
Chocobozzz 15a0e5f3b3
Correctly hide mobile buttons overlay on ios 2022-02-09 11:54:18 +01:00
Chocobozzz 21f2df5d3b
Put white background to peertube icons 2022-02-04 13:48:21 +01:00
Chocobozzz 457c83486e
Fix hidding mobile overlay 2022-02-04 09:23:07 +01:00
Chocobozzz c4207f978e
Fast forward on HLS decode error 2022-02-02 11:26:18 +01:00
Chocobozzz 077a413ff8
Automatically restart live on server/live restart 2022-01-19 10:44:12 +01:00
Chocobozzz 49098d6bbf
Remove unused function 2022-01-14 11:33:05 +01:00
Chocobozzz d7b052ff4e
Move to our own player hotkeys 2022-01-13 11:16:35 +01:00
Chocobozzz fc3412fd4e
Cleanup player hotkeys 2022-01-13 11:16:35 +01:00
Chocobozzz f85b5afb7c
Fix typings 2022-01-12 15:19:51 +01:00
Chocobozzz 2dd0a8a8fd
Add fast forward/rewind on mobile 2022-01-12 15:07:21 +01:00
Chocobozzz e98ef69d1c
Move to landscape on mobile fullscreen 2022-01-12 09:42:54 +01:00
Chocobozzz f1a0555a88
Add player controls on mobile 2022-01-11 11:26:35 +01:00
Chocobozzz a5a79d1542
Increase player control bar size 2022-01-10 10:08:14 +01:00
Chocobozzz 2b6af10e9f
Fix player with audio only resolution 2021-12-16 14:57:00 +01:00
Chocobozzz 8530211822
Add ability to disable p2p in embed with URL 2021-12-16 10:08:55 +01:00
Chocobozzz 9576506763
Add P2P enabled/disabled in player card 2021-12-16 10:08:55 +01:00
Chocobozzz bf1c3c78b0
Hide P2P in player if disabled 2021-12-16 10:08:55 +01:00
Chocobozzz a9bfa85d2c
Add ability for admins to set default p2p policy 2021-12-16 10:08:55 +01:00
Chocobozzz dc9ff3128f
Improve control bar inactivity handling
Keep opened when user is in control bar settings
Faster hidding transition for control bar
2021-12-09 10:33:32 +01:00
Chocobozzz 07d6044e21
Focus player after fullscreen 2021-12-09 09:41:26 +01:00
Chocobozzz 51d811751f
Fix live duration in player 2021-12-07 11:32:19 +01:00
Chocobozzz 22f25c740b
Recover HLS video with duration inconsistency
With audio longer than video
2021-12-03 10:14:17 +01:00
Chocobozzz 4ef44b2b71
Add aria expanded to settings button 2021-11-22 14:25:26 +01:00
Chocobozzz 04868c1331
Fix player menu keyboard navigation 2021-11-19 16:21:50 +01:00
Chocobozzz cd2fad008a
Update angular 2021-11-10 16:33:55 +01:00
Chocobozzz 950b3ce7f0
Migrate to @peertube/videojs-contextmenu
To fix a bug with latest videojs
2021-10-26 11:24:05 +02:00
Chocobozzz 36de29dfb2
Remove render media todo
We don't want to use official module anymore since we removed a large
part of the upstream code we don't need (pdf etc)
2021-10-22 16:18:55 +02:00
Chocobozzz 02b2e482e0
Fix some old typing issues 2021-10-22 16:18:00 +02:00
Chocobozzz efcadd3d14
Fix "Off" player string localization 2021-10-21 11:01:10 +02:00
Chocobozzz 5196817c5d
Fix privacy concern for remote videos 2021-10-21 09:24:22 +02:00
Chocobozzz 926bf5496f
Fix missing width/height in share iframe 2021-10-20 09:56:15 +02:00
Chocobozzz 0067a77d23
Improve playback with bad redundancies 2021-10-14 17:06:41 +02:00
kontrollanten c80e458afb
extend client-overrides with default images (#4392)
* extend client-overrides with default images

Add:
* default-playlist.png
* default-avatar-account.png
* default-avatar-videochannel.png

solves #4108

* Rename to default-avatar-video-channel.png

Co-authored-by: Chocobozzz <me@florianbigard.com>
2021-10-12 13:50:40 +02:00
Chocobozzz bdb1dfc176
Safer iframe creation 2021-10-11 11:13:27 +02:00
Chocobozzz 89ac282e04
Fix embed api 2021-09-10 15:53:33 +02:00
Chocobozzz e367da949b
Cleanup player quality change 2021-09-10 15:06:57 +02:00
Chocobozzz 98ab5dc810
Remove useless async 2021-08-26 10:01:42 +02:00
Ms Kimsible 7dca45f99d
Inform user to fill account profile and channels (#4352)
* Add account-setup modal when login

* Add channels-setup alert into my-channels, my-playlists and upload page

Co-authored-by: Ms Kimsible <kimsible@users.noreply.github.com>
2021-08-26 08:22:33 +02:00
Chocobozzz dd24f1bb0a
Add video filters to common video pages 2021-08-25 11:24:11 +02:00
Chocobozzz 5f31aaa398
Fix player setting overflow 2021-08-18 09:54:40 +02:00
Chocobozzz 9df52d660f
Migrate client to eslint 2021-08-18 08:35:06 +02:00
Chocobozzz 134006b0d4
Update client dependencies 2021-08-11 11:49:01 +02:00
Chocobozzz 421ff4618d
Merge branch 'release/3.3.0' into develop 2021-08-05 15:17:18 +02:00
Chocobozzz ff5f37e4f3
Fix sha fallback 2021-08-05 15:17:09 +02:00
Chocobozzz 3e254de8be HLS v1 support 2021-08-05 10:57:49 +02:00
Chocobozzz 23ca2f7bc9
Fix peertube link button 2021-07-30 11:48:21 +02:00
Chocobozzz 88d36fe4dc
Correctly fix peertube button link 2021-07-29 17:16:03 +02:00
Chocobozzz 15a7eafb89
Refactor video links builders 2021-07-26 15:04:37 +02:00
Chocobozzz 9162fdd363
Refactor video links building 2021-07-26 14:12:50 +02:00
Chocobozzz a66424978c
Fix URL copy in embed 2021-07-26 13:37:18 +02:00
Chocobozzz 05287a2e36
Fix player options 2021-07-12 15:14:33 +02:00
Chocobozzz 3e9cf56480
Fix HTTP fallback with no webtorrent files 2021-07-12 14:35:17 +02:00
Chocobozzz 4b8463dee3
Fix console error when watching a video 2021-06-29 18:03:55 +02:00
Chocobozzz c6bfbaebe7
Fix error when cookies are disabled 2021-06-25 15:40:59 +02:00
Chocobozzz 2b58ca796d
Upgrade client dependencies 2021-06-25 15:37:50 +02:00
kontrollanten 72f611ca15 add client hook filter:videojs.options
closes #4086
2021-06-14 13:35:48 +02:00
Chocobozzz ffacd78f21
Load embed api resolutions on init 2021-06-08 10:17:47 +02:00
Chocobozzz 5351a0584f
Replace local menu icon 2021-05-28 14:56:42 +02:00
Chocobozzz a1eda903a4
Support '/w/' and '/w/p/' for watch page
And use them as default in client
2021-05-28 11:38:08 +02:00
Chocobozzz 2539932e16
Instance homepage support (#4007)
* Prepare homepage parsers

* Add ability to update instance hompage

* Add ability to set homepage as landing page

* Add homepage preview in admin

* Dynamically update left menu for homepage

* Inject home content in homepage

* Add videos list and channel miniature custom markup

* Remove unused elements in markup service
2021-05-27 15:59:55 +02:00
Chocobozzz db0159c7f2
Fix "stats for nerds" card in HTTP mode 2021-05-14 14:07:16 +02:00
Chocobozzz 1a5b67b66d
Fix http player defaulting to audio resolution 2021-05-14 13:58:40 +02:00
Chocobozzz 36d9a79f7b
Fix player settings dispose 2021-05-05 10:09:32 +02:00
Rigel Kent b76db2ffb4
round volume in stats card 2021-05-04 13:21:51 +02:00
Chocobozzz a45050e09e
Add player mode to player stats 2021-04-28 09:07:57 +02:00
Chocobozzz 4e11d8f3ca Cleanup stats for nerds 2021-04-28 09:05:44 +02:00
Rigel Kent ff563914bb add stats videojs plugin 2021-04-28 09:05:44 +02:00
Chocobozzz 75d7495962
Autoclose settings on outside click 2021-04-27 10:46:09 +02:00
Chocobozzz 3e0e8d4afd
Revert "Fix context menu when watching a playlist"
This reverts commit e8bb5b6b3a.

We'll refactor this error handler in hls.js v1 upgrade
2021-04-21 15:28:12 +02:00
Chocobozzz 48d7e4ad13
Better hls warn/error logging 2021-04-21 15:18:22 +02:00
Chocobozzz e8bb5b6b3a
Fix context menu when watching a playlist 2021-04-21 15:18:22 +02:00
Chocobozzz 93f30abf28
Lazy load player captions 2021-04-13 08:38:15 +02:00
Rigel Kent 83ff548125 add icons in contextmenu 2021-04-12 15:35:39 +02:00