Commit Graph

419 Commits (7a4fd56ccd86518a6b14c407fc977c7904337448)

Author SHA1 Message Date
Chocobozzz 2d056f6604
Try to recover from network errors 2021-02-09 11:46:30 +01:00
Rigel Kent 3d4e112d16 add best trending strategy based on Reddit's best
inspired from https://www.reddit.com/r/changelog/comments/7spgg0/best_is_the_new_hotness/
this implementation only adds freshness, and doesn't personalize based
on subscribed communities yet.
2021-02-04 09:04:47 +01:00
Chocobozzz cb5c2abc99
Improve parse log with sql 2021-02-01 15:04:45 +01:00
Chocobozzz d0dd9813d5
Fix hls error handling 2021-01-29 14:05:41 +01:00
Chocobozzz e25f83ce21
Correctlu throws an error on manifestIncompatibleCodecsError 2021-01-29 14:05:41 +01:00
Rigel Kent 5bcbcbe338 modularize abstract video list header and implement video hotness recommendation variant 2021-01-28 15:55:34 +01:00
Kimsible 51a8397006
User dropdown and notifications popover improvements (#3344)
* hove user dropdown on avatar and username
* rename avatar-notification to notification component
* use a link on mobile for notification component
* add profile user dropdown and mobile notifications link as reusable active link
* replace markAllAsRead inbox glyphicon to ok in notification popover
* remove keyboard shortcuts from user dropdown on mobile
* use common bell icon instead of inbox-full for notifications
* remove duplicated notification in user dropdown since the bell appears on the right
* adjust sensitive icon in user dropdown
* align vertically user buttons popover and dropdown
* adjust ellipsis on user display name and username in menu
* adjust notification bell for mobile in menu
* display background of user dropdown avatar and username for touchscreens
* add right arrow indicator on mobile

Co-authored-by: kimsible <kimsible@users.noreply.github.com>
Co-authored-by: Rigel Kent <sendmemail@rigelk.eu>
2020-12-13 14:54:12 +01:00
Chocobozzz e46c70d858
Fix ; 2020-12-07 17:03:22 +01:00
Chocobozzz 6a882bc400
Relax webtorrent file check 2020-12-07 16:53:11 +01:00
kontrollanten 77002f5291 wt-plugin: tighten sanity check 2020-12-07 16:52:35 +01:00
kontrollanten a325db1776 Revert "refactor(wt-plugin): create getVideoFile fn"
This reverts commit 9110f52c4f.
2020-12-07 16:52:35 +01:00
kontrollanten 8426a71144 Revert "refactor(wt-plugin): tighten TS definitions"
This reverts commit cdca521e15.
2020-12-07 16:52:35 +01:00
kontrollanten d94ca8d0b7 refactor(wt-plugin): tighten TS definitions 2020-12-07 16:52:35 +01:00
kontrollanten 46d992d208 refactor(wt-plugin): create getVideoFile fn 2020-12-07 16:52:35 +01:00
kontrollanten a5a69fc727 wt-plugin: clearify err msg 2020-12-07 16:52:35 +01:00
Chocobozzz 10f26f4203
Fix viewers for lives 2020-12-07 16:07:52 +01:00
kontrollanten adc1f09c0d hls-plugin: destroy hls upon third err
According to hls.js docs `hls.destroy()` should be called
https://github.com/video-dev/hls.js/blob/master/docs/API.md#final-step-destroying-switching-between-streams
2020-12-07 08:59:08 +01:00
Chocobozzz 5f8327c507
Update i18n with new player keys 2020-12-04 16:37:21 +01:00
Florian CUNY 171528373e
add 'total downloaded' stats from server and peers in player (#3394)
Implements https://github.com/Chocobozzz/PeerTube/issues/3384
This will only work with HLS. The display for Webtorrent is left untouched.

Co-authored-by: Rigel Kent <par@rigelk.eu>
2020-12-04 16:30:01 +01:00
Chocobozzz fc41887463
Fix 00:00 player timestamp 2020-11-25 11:56:19 +01:00
kimsible c418d48300 Add new default different avatar for channel and account 2020-11-25 11:12:06 +01:00
Rigel Kent afff310e50 allow private syndication feeds via a user feedToken 2020-11-25 11:07:56 +01:00
Chocobozzz 4f926722ea
Upgrade client dependencies
Migrate removed primeng theme to custom CSS
2020-11-19 15:25:41 +01:00
Chocobozzz e14de000f9
Update live settings edge delay 2020-11-18 11:32:57 +01:00
Chocobozzz 1648dcb509
Increase live delay 2020-11-17 14:05:15 +01:00
Chocobozzz 805bec52cd
Replace keyboard shortcut icon
Use svg instead
2020-11-16 15:55:18 +01:00
Chocobozzz 501af82d99
Delay notification when waiting for a live 2020-11-12 17:13:32 +01:00
Chocobozzz 25b7c84724
Try to optimize sha segments fetching 2020-11-10 14:21:26 +01:00
Chocobozzz 210856a7be
Try to fix live segments check 2020-11-10 14:15:59 +01:00
Chocobozzz 6d61da4e32
HLS player fallback for non https context 2020-11-10 10:36:50 +01:00
Chocobozzz 053aed43fb Regenerate miniature on live save 2020-11-09 15:33:04 +01:00
Chocobozzz d846d99c6c Add modal to display live information 2020-11-09 15:33:04 +01:00
Chocobozzz c6c0fa6cd8 Live streaming implementation first step 2020-11-09 15:33:04 +01:00
Chocobozzz 1a568b6fca
Fix play of videos on ios
When the user already played a video
2020-08-27 08:39:44 +02:00
Chocobozzz ebc8dd52ca
Correctly fix autoplay with webtorrent 2020-08-19 16:27:44 +02:00
Chocobozzz 9eccae74c8
Try to fix autoplay with ios/safari
* Disable autoplay on first load because we have weird issues (player
 starts to play and stop so we loose the big play button). We also don't
 want to autoplay muted videos (bad UX IMHO and we don't have ads to
 display)
 * Enable autoplay when we already played a video (fixes the issue with
 playlists)
2020-08-19 16:17:39 +02:00
Chocobozzz aea53cc649
Fix incorrect resolution with webtorrent videos 2020-08-14 17:45:00 +02:00
kimsible 438c256b26 Move markdown icon on right and correct colors 2020-08-14 15:03:38 +02:00
kimsible 3c176894ba Add markown compatible help icon in comment textarea 2020-08-14 15:03:38 +02:00
Chocobozzz 241c1a558c
Fix icon names 2020-08-07 14:55:55 +02:00
Chocobozzz d5cefc1fa5
Merge branch 'feature/e2e' into develop 2020-08-07 14:01:11 +02:00
Chocobozzz 951b582f52
Add ability to share playlists in modal 2020-08-07 13:43:48 +02:00
Chocobozzz 189ab8deb3
Add ability to disable peertube button link in embed 2020-08-07 11:42:53 +02:00
Chocobozzz 7f90579c04
Add playlist embed E2E test 2020-08-07 11:12:59 +02:00
Chocobozzz 1a8c2d74d1 Handle start at/stop at in playlist embed 2020-08-07 08:58:29 +02:00
Chocobozzz 56674bb9f8 Handle unavailable videos in embed playlists 2020-08-07 08:58:29 +02:00
Chocobozzz a950e4c82b Add previous button 2020-08-07 08:58:29 +02:00
Chocobozzz 4572c3d0d9 Handle basic playlist in embed 2020-08-07 08:58:29 +02:00
Chocobozzz 5abc96fca2 Add logic to handle playlist in embed 2020-08-07 08:58:29 +02:00
Chocobozzz bd45d503e5 Reorganize shared models 2020-08-07 08:28:14 +02:00
Chocobozzz 583eb04b54 Upgrade to angular 10 2020-08-07 08:28:14 +02:00
Chocobozzz b12ce2b851
Fix isIOS function 2020-08-03 16:07:22 +02:00
Chocobozzz dca0fe12ec
Fix resolution for portrait videos 2020-08-03 16:03:52 +02:00
Chocobozzz e85bfe96fd
Fixes video hotkey part 1
A patch has to be merged in videojs hotkey plugin too
2020-07-31 17:11:28 +02:00
Chocobozzz b6a8cfc571
Detect ipad desktop as ios too 2020-07-31 16:08:52 +02:00
Chocobozzz 441e453ae5 Add abuse message management in admin 2020-07-31 11:35:19 +02:00
Rigel Kent bc99dfe54e variable columns for users list, more columns possible, badge display for statuses 2020-07-29 18:15:53 +02:00
Kim 345b4a22a8
Update my-account sub-menus icons (#2977)
* Update user sub-menus icons

* Update admin sub-menu icons

* Add solendp to credits

Co-authored-by: kimsible <kimsible@users.noreply.github.com>
2020-07-23 14:42:06 +02:00
Chocobozzz 69a019968e
Fallback to built in HLS if possible 2020-07-20 10:13:56 +02:00
Rigel Kent ea7337cfde
add check-params test for user list
fixes #2918
2020-07-03 10:29:03 +02:00
Chocobozzz 35f0a5e665
Fix player menu on mobile 2020-07-02 15:10:06 +02:00
Rigel Kent 0a4cb95c98 simplify navigation within most admin menus 2020-07-02 09:22:59 +02:00
Rigel Kent c41c0e28ed switch from softies to feathericons
also organize icons in folders per origin
2020-07-01 17:03:48 +02:00
Rigel Kent 0350384781
replace current ownership transfer icon with softies forward icon 2020-06-28 14:15:38 +02:00
Chocobozzz 3cd56a291c
Exclude 0p from auto webtorrent quality 2020-06-24 11:50:54 +02:00
Chocobozzz 7ede74add2
Support player hotkeys when it is not focused 2020-06-23 16:57:35 +02:00
Caroline Chuong d6d951ddc0 Remove uneccessary details to link titles 2020-06-18 09:02:23 +02:00
Rigel Kent 5baee5fca4
rename blacklist to block/blocklist, merge block and auto-block views
- also replace whitelist with allowlist
- add advanced filters for video-block-list view
- move icons in video-block-list and video-abuse-list to left side
for visibility
- add robot icon to depict automated nature of a block in
video-block-list

resolves #2790
2020-06-10 21:12:05 +02:00
Rigel Kent c2caa99b94
Add channel/account avatars in miniature (#2838)
* add small avatar to miniature

* fix svg size for trending and search icons in plugins view

* parametrize avatar in miniature display options
2020-06-08 08:52:06 +02:00
Chocobozzz e7809de955
Fix support button color 2020-06-05 09:17:55 +02:00
Rigel Kent 80c7779efe
fix mascot sizes, fix tick, delete extraneous .png icons
follows PR #2822
2020-06-04 20:57:10 +02:00
Rigel Kent 81fe3c67c5 fix duplicate id in svg, empty alt in base email 2020-06-04 09:05:44 +02:00
Chocobozzz 3e2bc4ea49
Fix webtorrent play on Safari 2020-05-12 10:32:56 +02:00
Chocobozzz 72efdda586
Try to fix auto play on apple devices 2020-05-11 17:48:56 +02:00
Chocobozzz 6422847473
Fix autoplay on Safari 2020-05-11 17:48:56 +02:00
Chocobozzz 1151f5210c
Add ability to update embed captions 2020-05-06 11:54:33 +02:00
Kim b15fe00f74
Add maximized mode to markdown-textarea + CSS improvements (#2660)
* Add arrows-angle-contract/expand bootstrap icons

* Add grey textarea-background-color

* Add maximized support to markdown-textarea + improve column display

* Refactor CSS + add ResizeObservable

* Replace bootstrap icons with softies

* Add ResizeObserver typing definition

* Add focus on textarea + Fix Observables

* Propage component changes on markdown plugins

* Ignore ResizeObserver not implemented in typescript yet

* Move observers from constructor to click event

* Add scss and css variables

* Replace textareaWidth with textareaMaxWidth to fix others textareas

* Clean unused css rules

* Fix ResizeObserver unknown by TypeScript compiler

* Set max-width: 100% for small and mobile views

* Fix textarea/preview height on maximized mode

* Add common padding textarea/preview side-by-side

* Hide scrollbar sub-menu on small-views

* Add maximized mode for mobile views

* Fix sass calculate syntax

* Revert custom CSS variable for inputBorderRadius and inputBorderColor

* Remove unsued methods

* Fix missing implement method

Co-authored-by: kimsible <kimsible@users.noreply.github.com>
2020-04-28 14:53:43 +02:00
Chocobozzz 512decf37e
Fix videojs 2020-04-21 11:02:28 +02:00
Chocobozzz 7e37e11111
Fix videojs typings 2020-04-17 14:12:43 +02:00
Chocobozzz 9cdeb80650
Fix videojs subtitles 2020-04-08 09:36:51 +02:00
Chocobozzz fd69c52f84
Use hls.js light
Because we don't need subtitling and alternate-audio features
2020-04-08 09:12:52 +02:00
Chocobozzz bc30363602
Don't force autoplay
Don't use muting to autoplay videos. If the web browser does not want to
autoplay the video, it's okay.
2020-04-07 11:05:43 +02:00
Chocobozzz 4adebd513e
Client dependencies upgrade 2020-04-01 14:06:46 +02:00
Rigel Kent 03efb1419d
Better use of space and icons in plugins administration interface 2020-03-10 23:48:12 +01:00
Rigel Kent d3217560a6
Add visitor settings, rework logged-in dropdown (#2514)
* Add visitor settings, rework logged-in dropdown

* Make user dropdown P2P switch functional

* Fix lint

* Fix unnecessary notification when user logs out

* Simplify visitor settings code and remove unnecessary icons

* Catch parsing errors and reindent menu styles
2020-02-28 13:52:21 +01:00
Chocobozzz 5289137643
Remove resume parameter when sharing a video 2020-02-10 16:49:40 +01:00
Chocobozzz abb3097e81
Improve embed title background opacity 2020-02-03 13:33:42 +01:00
Chocobozzz 83fcadac86
Move streamroot plugin in core project
To avoid an already bundled HLS.js library, and adapt some parts of the
code
2020-01-31 14:13:00 +01:00
Chocobozzz cf59a2a0c3
Merge branch 'release/2.1.0' into develop 2020-01-29 14:23:20 +01:00
Chocobozzz 8ff604c7e3
Fix wrong audio only resolution label for hls 2020-01-29 14:22:32 +01:00
Chocobozzz cf57794e9b
Fix webtorrent resolution issue 2020-01-29 14:20:32 +01:00
Chocobozzz f5fcd9f725
Correctly type videojs player 2020-01-29 11:48:15 +01:00
Rigel Kent 29128b2f5c
Add miniature quick actions to add video to Watch later playlist 2020-01-02 14:50:14 +01:00
Chocobozzz f2aa2c3cca
Allow iframes to open links 2019-12-27 13:04:36 +01:00
Rigel Kent 223b24e618
Fix upnext, refactor avatar menu, add to playlist overflow 2019-12-20 17:49:57 +01:00
Rigel Kent 1dc240a948
Add next video button to the player 2019-12-19 21:34:45 +01:00
Rigel Kent 10475dea7d
improve notification popup interactivity: read all, layout, position
fixes #1730
2019-12-19 14:53:01 +01:00
Rigel Kent 96f6278f3e
respect video history on explicit playlist click
also correct font-weight for .title-page-single, and tooltip dynamic
text for playlist loop button.

fixes #1889
2019-12-18 23:39:11 +01:00
Rigel Kent 62ab565d1c
Add play/pause bezels to the video player 2019-12-18 20:20:11 +01:00
Chocobozzz 9f0327aeb3
Fix build 2019-12-18 11:01:59 +01:00
Chocobozzz 6377a9f2b0
Fix test embed page 2019-12-18 10:14:23 +01:00
Chocobozzz 3f9c4955af
Speedup embed first paint 2019-12-18 10:14:22 +01:00
Rigel Kent 3bcb4fd741
add 'up next' screen on autoplay 2019-12-17 16:49:33 +01:00
Rigel Kent 706c5a4743 change repeat icon and factorize functions 2019-12-13 09:13:43 +01:00
Rigel Kent 88a7f93f8e add loop setting for playlists, and use sessionStorage 2019-12-13 09:13:43 +01:00
Chocobozzz fe9d05310b
Fix cellular detection in player 2019-12-09 10:23:23 +01:00
Chocobozzz 39aad8cc85
Don't seed on cellular networks 2019-12-06 17:25:15 +01:00
Chocobozzz 3d9a63d3d8
Add hook to alter player build options 2019-12-05 17:06:18 +01:00
Chocobozzz 3a1fed11c5
Support playlists in share modal 2019-12-05 10:05:00 +01:00
Chocobozzz 64ff48cb8d
Change the support icon 2019-12-03 18:54:49 +01:00
Chocobozzz 43c66a91df
Add ability to disable P2P in HLS player too 2019-11-29 14:14:47 +01:00
Chocobozzz d275e75453
Focus player on video loading 2019-11-28 11:08:04 +01:00
Chocobozzz aedf50d142
Fix magnet uri player copy 2019-11-27 11:18:34 +01:00
Chocobozzz 918058dea3
Fix welcome mascot 2019-11-27 10:29:27 +01:00
Chocobozzz 52201311e1
Add codec information in HLS playlist 2019-11-26 16:25:36 +01:00
Chocobozzz 84ddb975d1
Don't autoload HLS fragments 2019-11-25 17:13:47 +01:00
Chocobozzz 3a149e9f8b
Add audio only transcoding tests 2019-11-25 10:59:49 +01:00
frankdelange 5c7d650827
Add audio-only option to transcoders and player
This patch adds an audio-only option to PeerTube by means of a new transcoding configuration which creates mp4 files which only contain an audio stream. This new transcoder has a resolution of '0' and is presented in the preferences and in the player resolution menu as 'Audio-only' (localised). When playing such streams the player shows the file thumbnail as background and disables controls autohide.

Audio-only files can be shared and streamed just like any other file. They can be downloaded as well, the resulting file will be an mp4 container with a single audio stream.

This patch is a proof of concept to show the feasibility of 'true' audio-only support. There are better ways of doing this which also enable multiple audio streams for a given video stream (e.g. DASH) but as this would entail a fundamental change in the way PeerTube works it is a bridge too far for a simple proof of concept.
2019-11-25 10:59:47 +01:00
Chocobozzz d7a25329f9
Add ability to disable webtorrent
In favour of HLS
2019-11-25 10:59:43 +01:00
Chocobozzz d33338d71f
Optimize mascot images 2019-11-06 10:04:00 +01:00
Chocobozzz e81461950a
Increase 404 mascot size 2019-10-30 11:05:45 +01:00
Chocobozzz 767619f639
Add mascot to 404 page 2019-10-30 10:04:53 +01:00
Chocobozzz 42aac9fcfc
Fix player captions menu 2019-10-28 09:37:33 +01:00
Chocobozzz b82df0a399
Cleanup HLS redundancy manager in client
With the new p2p-media-loader release
2019-09-05 17:21:44 +02:00
Chocobozzz 1eb23e12f7
Add contributors in about peertube page 2019-09-05 15:40:09 +02:00
Chocobozzz da33241770
Improve HLS redundancy 2019-08-23 10:28:21 +02:00
Chocobozzz e028d98372
Fix start time on HLS videos 2019-08-13 11:08:36 +02:00
Chocobozzz dfe4294a72
Fix nl_NL locale 2019-08-13 11:04:27 +02:00
Chocobozzz d1f21ebba6
Fix control bar inactive timeout 2019-08-07 12:07:58 +02:00
Chocobozzz 16b5525950
Update Angular -> 8.2.0 2019-08-01 11:38:47 +02:00
Chocobozzz bfbd912886 Fix broken playlist api 2019-08-01 09:11:04 +02:00
Chocobozzz 85394ba22a
Fix webtorrent player 2019-07-30 10:54:14 +02:00
Chocobozzz 41b15c8921
Update client dependencies 2019-07-25 11:00:45 +02:00
Chocobozzz 6702a1b2cc Add ability to search available plugins 2019-07-24 10:58:16 +02:00
Chocobozzz 2f4c784a92
Add params to share modal 2019-06-12 16:44:15 +02:00
Chocobozzz 011e1e6b37
Speedup video watch layout build 2019-06-11 16:26:48 +02:00
Chocobozzz 5efab5467c
Add more embed parameters 2019-06-11 16:05:03 +02:00
Chocobozzz 536598cfaf
Add audio support in upload 2019-05-16 17:16:47 +02:00
Chocobozzz 5fb6996b81
Add default playlist image 2019-04-24 16:26:23 +02:00
Chocobozzz 2c22613c2f
Add logs page in client 2019-04-11 10:14:08 +02:00
Chocobozzz 31b6ddf866
Add ability to disable tracker 2019-04-10 09:23:18 +02:00
Chocobozzz 8ce1ba6e3e
Add new instance follower notification in client 2019-04-09 10:42:07 +02:00
Chocobozzz c47106315a
tslint update 2019-04-02 18:30:26 +02:00
Chocobozzz a55052c9ba
Add my library section in menu 2019-03-20 13:53:51 +01:00
Chocobozzz 9a18a62520 Handle theater mode for playlists 2019-03-18 11:17:59 +01:00
Chocobozzz e2f01c47e0 Playlist support in watch page 2019-03-18 11:17:59 +01:00
Chocobozzz c5a1ae500e Playlist videos component 2019-03-18 11:17:59 +01:00
Chocobozzz f0a3988066 Add to playlist dropdown 2019-03-18 11:17:59 +01:00
Chocobozzz 96cb4527f1
Try to fix p2p-media-loader on ios 2019-02-20 11:26:14 +01:00
Chocobozzz 41d713446c
Lazy import some modules 2019-02-15 15:52:18 +01:00