aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-video-miniature
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-07-28 11:07:03 +0200
committerChocobozzz <me@florianbigard.com>2023-07-28 11:09:03 +0200
commit89aa3331106874266f6feeee7bff852da2c1727e (patch)
tree6b03c6c4e4019b3d71da80f88a0775c2b5cbdd65 /client/src/app/shared/shared-video-miniature
parentac8f81e3732548a28e0df03d588bf6777fad55cb (diff)
downloadPeerTube-89aa3331106874266f6feeee7bff852da2c1727e.tar.gz
PeerTube-89aa3331106874266f6feeee7bff852da2c1727e.tar.zst
PeerTube-89aa3331106874266f6feeee7bff852da2c1727e.zip
Add ability to force transcoding
Diffstat (limited to 'client/src/app/shared/shared-video-miniature')
-rw-r--r--client/src/app/shared/shared-video-miniature/video-actions-dropdown.component.ts12
1 files changed, 6 insertions, 6 deletions
diff --git a/client/src/app/shared/shared-video-miniature/video-actions-dropdown.component.ts b/client/src/app/shared/shared-video-miniature/video-actions-dropdown.component.ts
index 0a3ada711..9891aae2e 100644
--- a/client/src/app/shared/shared-video-miniature/video-actions-dropdown.component.ts
+++ b/client/src/app/shared/shared-video-miniature/video-actions-dropdown.component.ts
@@ -198,8 +198,8 @@ export class VideoActionsDropdownComponent implements OnChanges {
198 return this.video.canRemoveFiles(this.user) 198 return this.video.canRemoveFiles(this.user)
199 } 199 }
200 200
201 canRunTranscoding () { 201 canRunForcedTranscoding () {
202 return this.video.canRunTranscoding(this.user) 202 return this.video.canRunForcedTranscoding(this.user)
203 } 203 }
204 204
205 /* Action handlers */ 205 /* Action handlers */
@@ -291,10 +291,10 @@ export class VideoActionsDropdownComponent implements OnChanges {
291 } 291 }
292 292
293 runTranscoding (video: Video, type: 'hls' | 'web-video') { 293 runTranscoding (video: Video, type: 'hls' | 'web-video') {
294 this.videoService.runTranscoding([ video.id ], type) 294 this.videoService.runTranscoding({ videoIds: [ video.id ], type, askForForceTranscodingIfNeeded: true })
295 .subscribe({ 295 .subscribe({
296 next: () => { 296 next: () => {
297 this.notifier.success($localize`Transcoding jobs created for ${video.name}.`) 297 this.notifier.success($localize`Transcoding jobs created for "${video.name}".`)
298 this.transcodingCreated.emit() 298 this.transcodingCreated.emit()
299 }, 299 },
300 300
@@ -390,13 +390,13 @@ export class VideoActionsDropdownComponent implements OnChanges {
390 { 390 {
391 label: $localize`Run HLS transcoding`, 391 label: $localize`Run HLS transcoding`,
392 handler: ({ video }) => this.runTranscoding(video, 'hls'), 392 handler: ({ video }) => this.runTranscoding(video, 'hls'),
393 isDisplayed: () => this.displayOptions.transcoding && this.canRunTranscoding(), 393 isDisplayed: () => this.displayOptions.transcoding && this.canRunForcedTranscoding(),
394 iconName: 'cog' 394 iconName: 'cog'
395 }, 395 },
396 { 396 {
397 label: $localize`Run Web Video transcoding`, 397 label: $localize`Run Web Video transcoding`,
398 handler: ({ video }) => this.runTranscoding(video, 'web-video'), 398 handler: ({ video }) => this.runTranscoding(video, 'web-video'),
399 isDisplayed: () => this.displayOptions.transcoding && this.canRunTranscoding(), 399 isDisplayed: () => this.displayOptions.transcoding && this.canRunForcedTranscoding(),
400 iconName: 'cog' 400 iconName: 'cog'
401 }, 401 },
402 { 402 {