Commit Graph

503 Commits (77b70702d2193d78bf6fbd07f0fc7335e34957f8)

Author SHA1 Message Date
Chocobozzz 77b70702d2
Add video chapters support 2023-08-28 16:17:31 +02:00
Chocobozzz 8e4fba97b2
Automatically adapt player ratio 2023-08-18 09:48:45 +02:00
Chocobozzz 3a4992633e
Migrate server to ESM
Sorry for the very big commit that may lead to git log issues and merge
conflicts, but it's a major step forward:

 * Server can be faster at startup because imports() are async and we can
   easily lazy import big modules
 * Angular doesn't seem to support ES import (with .js extension), so we
   had to correctly organize peertube into a monorepo:
    * Use yarn workspace feature
    * Use typescript reference projects for dependencies
    * Shared projects have been moved into "packages", each one is now a
      node module (with a dedicated package.json/tsconfig.json)
    * server/tools have been moved into apps/ and is now a dedicated app
      bundled and published on NPM so users don't have to build peertube
      cli tools manually
    * server/tests have been moved into packages/ so we don't compile
      them every time we want to run the server
 * Use isolatedModule option:
   * Had to move from const enum to const
     (https://www.typescriptlang.org/docs/handbook/enums.html#objects-vs-enums)
   * Had to explictely specify "type" imports when used in decorators
 * Prefer tsx (that uses esbuild under the hood) instead of ts-node to
   load typescript files (tests with mocha or scripts):
     * To reduce test complexity as esbuild doesn't support decorator
       metadata, we only test server files that do not import server
       models
     * We still build tests files into js files for a faster CI
 * Remove unmaintained peertube CLI import script
 * Removed some barrels to speed up execution (less imports)
2023-08-11 15:02:33 +02:00
Chocobozzz ac8f81e373
Reduce hls.js not supported log
Happens often on iOS
2023-07-28 09:18:12 +02:00
Chocobozzz 809fecf2b4
Correctly dispose player components 2023-07-27 14:49:58 +02:00
Chocobozzz 39c0ceee8b
Fix player error modal
Not hidden when we change the video
2023-07-27 14:44:34 +02:00
Chocobozzz f42fcb4b58
Implement video file replacement in client 2023-07-25 11:53:08 +02:00
Chocobozzz c6867725fb
Add p2p info to metrics 2023-07-21 11:42:52 +02:00
Chocobozzz 305facdfab
Add peers number and p2p enabled label to metrics 2023-07-20 12:06:39 +02:00
Chocobozzz 8a9d247105
Fix "undefined" in stats card 2023-07-20 11:18:47 +02:00
Chocobozzz 4ddf488ab5
Improve player settings menu style 2023-07-20 10:53:22 +02:00
Chocobozzz c8defc41ee
Fix max settings panel height 2023-07-20 10:26:14 +02:00
Chocobozzz bfd01f289d
Fix player metrics 2023-07-19 10:20:01 +02:00
Chocobozzz 9a72e4fe9e
Improve settings menu label handler 2023-07-17 11:31:46 +02:00
Chocobozzz e29221f855
Fix e2e tests 2023-07-17 11:31:46 +02:00
Chocobozzz 28dd2f14f5
Some player fixes on Android, Safari and iOS 2023-07-17 11:31:46 +02:00
Chocobozzz 930e1b939a
Fix HLS player on mobile 2023-07-17 11:31:46 +02:00
Chocobozzz 9bb541bec7
Round HTTP/P2P network stats 2023-07-17 11:31:46 +02:00
Chocobozzz 9bc85bd2f8
Prevent multiple sha requests 2023-07-17 11:31:46 +02:00
Chocobozzz a1bd2b77d9
Remove webtorrent support from client 2023-07-10 16:08:28 +02:00
Chocobozzz 52807a075f
Fix storyboard on firefox 2023-06-29 10:16:57 +02:00
Chocobozzz d8f39b126d
Add storyboard support 2023-06-29 10:16:55 +02:00
Wicklow 40346ead2b
Feature/password protected videos (#5836)
* Add server endpoints

* Refactoring test suites

* Update server and add openapi documentation

* fix compliation and tests

* upload/import password protected video on client

* add server error code

* Add video password to update resolver

* add custom message when sharing pw protected video

* improve confirm component

* Add new alert in component

* Add ability to watch protected video on client

* Cannot have password protected replay privacy

* Add migration

* Add tests

* update after review

* Update check params tests

* Add live videos test

* Add more filter test

* Update static file privacy test

* Update object storage tests

* Add test on feeds

* Add missing word

* Fix tests

* Fix tests on live videos

* add embed support on password protected videos

* fix style

* Correcting data leaks

* Unable to add password protected privacy on replay

* Updated code based on review comments

* fix validator and command

* Updated code based on review comments
2023-06-29 09:48:55 +02:00
Chocobozzz 5490930428
Remove suppressImplicitAnyIndexErrors
It's deprecated by TS
2023-05-24 16:56:05 +02:00
Chocobozzz d0fbc9fd0a
Fix lint 2023-05-24 15:27:15 +02:00
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