Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Don't unpause on transcription click

Chocobozzz728a144702f0
diff --git a/client/src/app/+video-watch/shared/player-widgets/video-transcription.component.scss b/client/src/app/+video-watch/shared/player-widgets/video-transcription.component.scss
index 794c4a9699..3c3ec55234 100644
--- a/client/src/app/+video-watch/shared/player-widgets/video-transcription.component.scss
+++ b/client/src/app/+video-watch/shared/player-widgets/video-transcription.component.scss
@@ -1,15 +1,15 @@
-@use '_variables' as *;
-@use '_mixins' as *;
-@use '_form-mixins' as *;
+@use "_variables" as *;
+@use "_mixins" as *;
+@use "_form-mixins" as *;
.segment {
&.active,
&:hover {
- background: pvar(--bg-secondary-300);
+ background: pvar(--bg-secondary-400);
}
}
-input[type=text] {
+input[type="text"] {
@include peertube-input-text(100%);
}
diff --git a/client/src/standalone/player/src/peertube-player.ts b/client/src/standalone/player/src/peertube-player.ts
index 7869b3c255..eebe8ec82e 100644
--- a/client/src/standalone/player/src/peertube-player.ts
+++ b/client/src/standalone/player/src/peertube-player.ts
@@ -193,7 +193,7 @@ export class PeerTubePlayer {
}
setCurrentTime (currentTime: number) {
- if (this.player.paused()) {
+ if (!this.player.hasStarted_) {
this.currentLoadOptions.startTime = currentTime
this.player.play()