4919 Commits

Author SHA1 Message Date
Kavin
5321c71841 Merge pull request #4245 from t6fb3m59/upstream-pr
Fix position saving for videos and have history update when opened
2026-06-01 06:35:33 +05:30
LogicalKarma
174ca1a072 fix(player): resume from saved position and protect it across keep-alive
Clicking a video from history (or any cached watch page) restarted it from 0
instead of resuming, and history bars showed stale positions. Four shared-path
bugs, all engine-agnostic:

- The resume position was computed but never applied: Shaka's load(uri, startTime)
  doesn't perform the initial seek for lazily-fetched segment indexes, so playback
  began at 0. Apply the resume explicitly with a runtime seek once load() resolves.

- initialSeekComplete (gates progress saving until the resume seek lands) was never
  reset per-load. On a reactivated player it stayed true from the previous play, so
  a timeupdate at currentTime=0 during rebuild churn overwrote the saved position
  before the resume read ran. Reset it at the start of loadVideo.

- Leaving a watch page (destroy) empties the media element -> currentTime snaps to
  0 and a stray timeupdate fires while initialSeekComplete is still true, clobbering
  the saved position. Gate the save on destroying as well.

- HistoryPage: re-read watch_history in onActivated so progress bars reflect the
  current saved position instead of a stale first-mount snapshot. Kept off onMounted
  to avoid double-loading (both fire on first keep-alive mount).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-01 01:03:21 +03:00
Kavin
7714f10eed Merge pull request #4246 from t6fb3m59/upstream-pr-firefox
Firefox fixes: slow video loading and video player highlight
2026-05-31 23:57:46 +05:30
LogicalKarma
3b7b40b39e docs(firefoxMediaCapabilitiesFix): link Firefox tracker bug 2043895
Add the upstream Mozilla tracker bug for the slow decodingInfo path.

Refs:
  https://bugzilla.mozilla.org/show_bug.cgi?id=2043895
  https://github.com/TeamPiped/Piped/issues/4238
2026-05-31 21:25:00 +03:00
LogicalKarma
e006840fba docs(firefoxMediaCapabilitiesFix): document hack tradeoffs and measured perf
- Replace shaka-player#4775 link (closed) with TeamPiped/Piped#4238 as the
  ongoing tracker.
- Add measured rough per-call cost: Chromium ~0.1 ms vs Firefox ~20 ms.
- Call out explicitly that this is a hack: forcing smooth/powerEfficient to
  true throws away signals Shaka would otherwise see. If anything in the
  player chain reads those fields (preferredDecodingAttributes is set, a
  downstream consumer ranks variants on power efficiency, or a Shaka
  upgrade changes filtering), Shaka will pick streams the device cannot
  decode in real time — frame drops, software-decode CPU spikes, battery
  drain. Today (Shaka 5.1, Piped default config) the fields are not read
  and the shim is harmless; revisit on every Shaka upgrade.

Refs: https://github.com/TeamPiped/Piped/issues/4238
2026-05-31 21:25:00 +03:00
LogicalKarma
c4f86d2a7e fix(player): suppress Firefox blue :focus outline on <video> element
VideoPlayer calls videoEl.focus() on every seek-bar mouseup (existing
upstream code, so hotkeys-js continues receiving keys). Firefox/Gecko
draws the system :focus outline whenever a <video> element is focused;
Chromium uses :focus-visible heuristics on media elements and doesn't
render it for click-driven focus, which is why this is Gecko-only.

Add a targeted CSS rule outside the Tailwind @layer so it wins the
cascade against any layered author or vendor rule, and !important to
override the UA focus ring.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-31 21:25:00 +03:00
LogicalKarma
6b666b4b6f fix(VideoPlayer): work around slow Firefox MediaCapabilities.decodingInfo
Firefox's navigator.mediaCapabilities.decodingInfo costs ~14 ms per call
(out-of-process RDD decoder probe). Shaka Player calls it once per Variant
in the DASH manifest while filtering supported variants, and YouTube
manifests routinely have 1000+ variants, so player initialization stalls
15-20 s on Gecko-based browsers before the first SourceBuffer is added.

Wrap decodingInfo to delegate "supported" checks to
MediaSource.isTypeSupported (sub-ms on Firefox) with a per-MIME cache.
DRM probes and non-media-source queries fall through to native.
Wrapper is gated to Gecko UAs so Chromium and Safari are unaffected.

Refs: https://github.com/shaka-project/shaka-player/issues/4775

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-31 21:25:00 +03:00
github-actions[bot]
de44e80a5c Merge pull request #4235 from TeamPiped/weblate
Translations update from Hosted Weblate
2026-05-31 18:24:09 +00:00
ssantos
5f8ea8560d Translated using Weblate (Portuguese (Portugal))
Currently translated at 100.0% (234 of 234 strings)

Translation: Piped/Frontend
Translate-URL: https://hosted.weblate.org/projects/piped/frontend/pt_PT/
2026-05-31 18:22:34 +00:00
ssantos
352082cff6 Translated using Weblate (Portuguese)
Currently translated at 100.0% (234 of 234 strings)

Translation: Piped/Frontend
Translate-URL: https://hosted.weblate.org/projects/piped/frontend/pt/
2026-05-31 18:22:34 +00:00
ssantos
c391a3b05b Translated using Weblate (Portuguese (Portugal))
Currently translated at 99.5% (233 of 234 strings)

Translation: Piped/Frontend
Translate-URL: https://hosted.weblate.org/projects/piped/frontend/pt_PT/
2026-05-31 18:22:33 +00:00
Milo Ivir
17d386dc8b Translated using Weblate (Croatian)
Currently translated at 100.0% (234 of 234 strings)

Translation: Piped/Frontend
Translate-URL: https://hosted.weblate.org/projects/piped/frontend/hr/
2026-05-31 18:22:33 +00:00
Kavin
46cb37045a Add pnpm workspace. 2026-05-31 23:52:22 +05:30
github-actions[bot]
da7ab357b4 Merge pull request #4232 from TeamPiped/weblate
Translations update from Hosted Weblate
2026-05-04 16:12:42 +00:00
Ghost of Sparta
63b75ebae8 Translated using Weblate (Hungarian)
Currently translated at 100.0% (234 of 234 strings)

Translation: Piped/Frontend
Translate-URL: https://hosted.weblate.org/projects/piped/frontend/hu/
2026-05-04 16:09:49 +00:00
github-actions[bot]
11f65bdf16 Merge pull request #4229 from TeamPiped/weblate
Translations update from Hosted Weblate
2026-04-28 01:11:42 +00:00
Lendrush
a6d50fe12d Translated using Weblate (Armenian)
Currently translated at 100.0% (234 of 234 strings)

Translation: Piped/Frontend
Translate-URL: https://hosted.weblate.org/projects/piped/frontend/hy/
2026-04-28 01:09:51 +00:00
github-actions[bot]
030993d148 Merge pull request #4227 from TeamPiped/weblate
Translations update from Hosted Weblate
2026-04-23 13:11:33 +00:00
Ecron
428845f7f4 Translated using Weblate (Catalan)
Currently translated at 100.0% (234 of 234 strings)

Translation: Piped/Frontend
Translate-URL: https://hosted.weblate.org/projects/piped/frontend/ca/
2026-04-23 13:09:49 +00:00
renovate[bot]
7d01d9f255 Lock file maintenance (#4221)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-04-20 00:59:26 +00:00
renovate[bot]
32f9bdb109 Update dependency dompurify to v3.4.0 [SECURITY] 2026-04-17 04:39:10 +05:30
renovate[bot]
d80e808fbb Update dependency shaka-player to v5.1.0 2026-04-17 04:38:45 +05:30
github-actions[bot]
15bd0bfb72 Merge pull request #4213 from TeamPiped/weblate
Translations update from Hosted Weblate
2026-04-14 10:11:39 +00:00
Quentin PAGÈS
caa0a14ffc Translated using Weblate (Occitan)
Currently translated at 100.0% (234 of 234 strings)

Translation: Piped/Frontend
Translate-URL: https://hosted.weblate.org/projects/piped/frontend/oc/
2026-04-14 10:09:52 +00:00
github-actions[bot]
452d2ebbf0 Merge pull request #4211 from TeamPiped/weblate
Translations update from Hosted Weblate
2026-04-13 23:12:23 +00:00
Sergio Marques
9743963405 Translated using Weblate (Portuguese)
Currently translated at 100.0% (234 of 234 strings)

Translation: Piped/Frontend
Translate-URL: https://hosted.weblate.org/projects/piped/frontend/pt/
2026-04-14 01:10:42 +02:00
renovate[bot]
1cdb9df139 Update dependency eslint-plugin-better-tailwindcss to v4.4.1 2026-04-14 00:22:25 +05:30
renovate[bot]
84c599ea36 Update dependency shaka-player to v5.0.10 2026-04-14 00:20:55 +05:30
renovate[bot]
0d2d8e5041 Update vite 2026-04-14 00:20:13 +05:30
renovate[bot]
2630a99387 Update dependency prettier to v3.8.2 2026-04-14 00:19:30 +05:30
renovate[bot]
8a78225bed Update dependency globals to v17.5.0 2026-04-13 23:47:34 +05:30
renovate[bot]
7a766fd410 Update dependency fast-xml-parser to v5.5.12 2026-04-13 23:46:30 +05:30
renovate[bot]
9e35a9284d Update dependency reka-ui to v2.9.6 2026-04-13 23:46:16 +05:30
renovate[bot]
77eac72bb8 Lock file maintenance (#4207)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-04-13 01:40:28 +00:00
renovate[bot]
735d61d1f1 Update dependency fast-xml-parser to v5.5.11 2026-04-08 23:48:06 +05:30
renovate[bot]
72d76b390f Update dependency vite to v8.0.7 2026-04-08 17:04:28 +05:30
renovate[bot]
237a692328 Update dependency vue-i18n to v11.3.2 2026-04-08 17:04:12 +05:30
renovate[bot]
976d047800 Update dependency reka-ui to v2.9.5 2026-04-08 17:03:57 +05:30
github-actions[bot]
79f7b377a6 Merge pull request #4195 from TeamPiped/weblate
Translations update from Hosted Weblate
2026-04-07 06:11:44 +00:00
on9686
b2fe8108dd Translated using Weblate (Korean)
Currently translated at 100.0% (234 of 234 strings)

Translation: Piped/Frontend
Translate-URL: https://hosted.weblate.org/projects/piped/frontend/ko/
2026-04-07 06:09:49 +00:00
renovate[bot]
73bd4fce12 Update dependency reka-ui to v2.9.4 2026-04-06 22:33:08 +05:30
renovate[bot]
f8ebcd1707 Update dependency fast-xml-parser to v5.5.10 2026-04-06 22:32:07 +05:30
renovate[bot]
aef03b9fad Update vue monorepo to v3.5.32 2026-04-06 22:29:43 +05:30
renovate[bot]
e62b36efe5 Update dependency hotkeys-js to v4.0.3 2026-04-06 22:29:09 +05:30
renovate[bot]
efaf07b088 Update dependency vue-i18n to v11.3.1 2026-04-06 22:27:01 +05:30
renovate[bot]
2a2a7ca3cc Update dependency vite to v8.0.5 2026-04-06 22:25:55 +05:30
renovate[bot]
3694c46bd0 Update dependency eslint to v10.2.0 2026-04-06 22:22:54 +05:30
renovate[bot]
17149cebfb Lock file maintenance (#4192)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-04-06 01:37:26 +00:00
github-actions[bot]
d85c548dee Merge pull request #4190 from TeamPiped/weblate
Translations update from Hosted Weblate
2026-04-04 02:11:35 +00:00
George Stamate
c4297c49df Translated using Weblate (Romanian)
Currently translated at 100.0% (234 of 234 strings)

Translation: Piped/Frontend
Translate-URL: https://hosted.weblate.org/projects/piped/frontend/ro/
2026-04-04 02:09:49 +00:00