Commit Graph

302 Commits (5a637488778055906dbacdca735565b2f46f0cf7)

Author SHA1 Message Date
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 69a019968e
Fallback to built in HLS if possible 2020-07-20 10:13:56 +02:00
Chocobozzz 35f0a5e665
Fix player menu on mobile 2020-07-02 15:10:06 +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 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
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
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
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
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 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 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 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 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 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 31b6ddf866
Add ability to disable tracker 2019-04-10 09:23:18 +02:00
Chocobozzz c47106315a
tslint update 2019-04-02 18:30:26 +02: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 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
Chocobozzz 4c280004ce Use a single file instead of segments for HLS 2019-02-11 09:13:02 +01:00
Chocobozzz 6ec0b75beb Fallback HLS to webtorrent 2019-02-11 09:13:02 +01:00
Chocobozzz 0920929696 Add hls support on server 2019-02-11 09:13:02 +01:00
Chocobozzz 4348a27d25 Add lazy loading in player 2019-02-11 09:13:02 +01:00
Chocobozzz 3b6f205c34 Correctly implement p2p-media-loader 2019-02-11 09:13:02 +01:00
Chocobozzz 2adfc7ea9a Refractor videojs player
Add fake p2p-media-loader plugin
2019-02-11 09:13:02 +01:00
Chocobozzz c32bf839c1
Fix captions in HTTP fallback 2019-01-14 09:07:08 +01:00
Chocobozzz 3b019808ef
Set last subtitle or subtitle in URL 2018-12-17 14:15:30 +01:00
Chocobozzz fe05c3acbd
Fix player progress bar when changing resolution 2018-11-16 09:16:41 +01:00
BO41 951ef8294e add noImplicitThis flag (#1324) 2018-10-24 21:50:18 +02:00
Chocobozzz e280dd0681
Fix webtorrent disabled by default 2018-10-19 14:56:26 +02:00
Chocobozzz c199c427d4
Better typings 2018-10-18 14:35:31 +02:00
BO41 244b4ae397 NoImplicitAny flag true (#1157)
this enables the `noImplicitAny` flag in the Typescript compiler

> When the noImplicitAny flag is true and the TypeScript compiler cannot infer the type, it still generates the JavaScript files, but it also reports an error. Many seasoned developers prefer this stricter setting because type checking catches more unintentional errors at compile time.

closes: #1131
replaces #1137
2018-10-18 09:08:59 +02:00
Chocobozzz a73115f31a
Fix webtorrent disabling 2018-10-17 10:47:15 +02:00
Rigel Kent ed638e5325
move to boolean switch 2018-10-13 11:53:48 +02:00
Rigel Kent 64cc5e8575
add webtorrent opt-out settings
- add a key in localstorage to remember the opt-out
- add a user setting
2018-10-13 11:53:42 +02:00
Chocobozzz 6e46de095d
Add user history and resume videos 2018-10-05 11:22:38 +02:00
Rigel Kent 0f40d69a0f
adding shortcuts to videojs, adding frame-by-frame support 2018-09-30 15:18:03 +02:00
Chocobozzz 287918da17
Hide useless error when destroying fake renderer 2018-09-28 14:22:43 +02:00
Chocobozzz 5363a766d9
Fix playback rate hotkey 2018-09-24 17:44:50 +02:00
Chocobozzz 0b4e5fe327
Merge branch 'develop' into unused-imports 2018-09-24 10:40:27 +02:00
BO41 23db998f07 remove unused imports 2018-09-22 20:11:16 +02:00
Rigel Kent 52b1ba03f4
add chevron hotkeys to change playback rate 2018-09-22 19:01:59 +02:00
Chocobozzz ae04a0ce12
Upgrade client dependencies 2018-09-21 09:26:52 +02:00
Chocobozzz b335ccec49
Fix ios player playback/subtitles menu 2018-09-17 15:01:04 +02:00
Glandos 4ccb6c0830 Add more playback speed (0.75 and 1.25)
Those speeds are much more closer to the normal speed. They are useful for listening to human speeches.
2018-08-31 17:19:38 +02:00
Chocobozzz b224ddd88b
Fix player playback (video never ends) 2018-08-28 10:23:21 +02:00
Chocobozzz 11b8762f9c
Add start at checkbox in share modal 2018-08-27 16:04:06 +02:00
Chocobozzz 5d128505dc Cache player translations 2018-08-27 09:41:54 +02:00
Chocobozzz 95d5113575
Translate player according to the interface lang 2018-08-16 11:11:20 +02:00
Chocobozzz 3dfa849402
Translate subtitle langs in player 2018-08-16 10:48:35 +02:00
Chocobozzz ad77475251
Sort video captions 2018-07-25 15:11:25 +02:00
Chocobozzz 0f7fedc398
Improve frontend accessibility
In particular checkboxes, likes/dislikes, share button, video thumbnails
and help buttons
2018-07-17 14:56:15 +02:00
Chocobozzz 6d88de7253
Correctly handle error when remote instance is down 2018-07-16 19:15:20 +02:00
Chocobozzz 1f6824c958
Improve start time param
Can handle 2m42s for example
2018-07-16 16:13:35 +02:00
Chocobozzz 16f7022b06 Handle subtitles in player 2018-07-16 11:50:08 +02:00
William Lahti 999417328b Ability to programmatically control embeds (#776)
* first stab at jschannel based player api

* semicolon purge

* more method-level docs; consolidate definitions

* missing definitions

* better match peertube's class conventions

* styling for embed tester

* basic docs

* add `getVolume`

* document the test-embed feature
2018-07-10 17:47:56 +02:00
Chocobozzz 0b755f3b27
Fix video resolution limit 2018-07-10 09:50:38 +02:00
Chocobozzz 5634dfc811 Merge branch 'ctrl-number-hotkeys' into 'develop'
Disable hotkeys modifiers for numbers in the player

See merge request chocobozzz/PeerTube!14
2018-07-09 15:04:50 +02:00
Gaëtan Rizio 8244e18719 [#766] Fix the change of speed when quality changes
When changing the `playbackRate` of the video then changing the quality,
the `playbackRate` returned to its initial value (1).

The reason behind it is that the callback was not called when change
of the quality was done if there was no error.

This commit does the following:

* Ensure the callback (`done`) is called after changing the quality
2018-07-09 14:27:12 +02:00
Rigel Kent c4ccb08ab0
(client/player) disable hotkeys modifiers for numbers
fixes #771
2018-07-06 21:35:02 +02:00
Nitesh Sawant 06aa2726d7 filter to Cap the maximum resolution to the screen resolution 2018-06-30 12:44:10 +02:00
Chocobozzz 395ecf709d
Fix FPS label in resolution menu 2018-06-29 17:45:05 +02:00
Chocobozzz 3a6f351b25
Handle higher FPS for high resolution (test) 2018-06-29 17:10:54 +02:00
Chocobozzz 70b40c2ed3
Don't log "The play() request was interrupted..." 2018-06-29 17:10:51 +02:00
Chocobozzz 1b952dd426
Reset published date on publish 2018-06-28 16:58:15 +02:00
Chocobozzz 332e7032c5
Log into the console torrent errors 2018-06-25 08:27:40 +02:00
Rigel Kent 5511da6289 Fix #639 providing magnet URI in player and download modal 2018-06-24 17:42:05 +02:00
Chocobozzz c4082b8b4e
Disable auto resolution on HTTP fallback 2018-06-22 15:11:04 +02:00
Chocobozzz 1a49822c32
Add title in player peers info to show total downloaded/uploaded data 2018-06-22 15:11:04 +02:00
Chocobozzz 575712a5c9
Fix HTTP fallback when having videostream issues on firefox 2018-06-20 08:57:52 +02:00
Chocobozzz 1ee156b2c5
Add margin for http fallback display 2018-06-18 10:26:19 +02:00
Chocobozzz 7b3a99d517
Move player local storage functions in their own file 2018-06-18 10:26:19 +02:00
Chocobozzz f5a2dc48eb
Don't send view on private video 2018-06-18 10:26:18 +02:00
Chocobozzz b7f1747dc7
Create webtorrent client on player load
So we don't run Angular change detection every 250ms on webtorrent
import, when https://github.com/mafintosh/speedometer/pull/7 will be
merged
2018-06-18 10:26:18 +02:00
Chocobozzz db5529f548
Add time mouse display to see where we seek the video 2018-06-13 16:14:31 +02:00
Rigel Kent 7754034641 (embed) sandbox the iframe 2018-06-11 17:18:04 +02:00
Chocobozzz 054a103b28
Add theatre mode 2018-06-11 16:49:56 +02:00
Chocobozzz 4a7591e1a8
Remove video not found 2018-06-08 15:35:18 +02:00
Chocobozzz 6d272f396c
Smooth resolution change? 2018-06-08 15:01:22 +02:00
Chocobozzz 91d9558963
Fix seeking on auto resolution change 2018-06-08 14:20:43 +02:00
Chocobozzz 2ce2fd7f45
Improve player progress bar 2018-06-08 10:37:13 +02:00
Chocobozzz 8eb8bc201e
Pick average video file insead of max quality 2018-06-07 17:57:11 +02:00
Chocobozzz 6cca7360eb
Reduce bundle sizes 2018-06-07 16:50:33 +02:00
Chocobozzz 3baf9be283
Fix player resolution change that plays even if the video was paused 2018-06-07 14:58:41 +02:00
Chocobozzz cc69c8db39
Fix markdown links truncating 2018-06-07 10:32:50 +02:00
Chocobozzz 9f16472264
Rename fr locale -> fr-FR 2018-06-06 18:04:33 +02:00
Chocobozzz 74b7c6d48e
Little i18n refractoring 2018-06-06 17:37:13 +02:00
Chocobozzz e945b184a0
Localize player 2018-06-06 16:48:40 +02:00
Chocobozzz 3f9b33b02b
Remove bad import 2018-05-31 09:57:03 +02:00
Chocobozzz 77728efa62
Fix player progress bar 2018-05-31 09:51:51 +02:00
Chocobozzz 960a11e89d
Add context menu to player 2018-05-30 17:10:00 +02:00
Chocobozzz 04bf312cda
Improve create transcoding jobs tests 2018-05-30 11:12:09 +02:00
Chocobozzz b4f8277cb6
Fix resume video after peertube embed link click 2018-05-30 10:49:27 +02:00
Chocobozzz fc73684ada
Resume video on peertube link click in embed 2018-05-28 11:36:29 +02:00