Skip to content

Commit

Permalink
admin: show expected go-vod version
Browse files Browse the repository at this point in the history
Signed-off-by: Varun Patil <radialapps@gmail.com>
  • Loading branch information
pulsejet committed Oct 15, 2023
1 parent 5e10d60 commit 080bf13
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/Controller/AdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,11 @@ public function getSystemStatus(): Http\Response
$extGoVod = Util::getSystemConfig('memories.vod.external');
$status['govod'] = $this->getExecutableStatus(
static fn () => BinExt::getGoVodBin(),
static fn ($p) => BinExt::testStartGoVod(),
static fn () => BinExt::testStartGoVod(),
!$extGoVod,
!$extGoVod,
);
$status['govod_want'] = BinExt::GOVOD_VER;

// Check for VA-API device
$devPath = '/dev/dri/renderD128';
Expand Down
1 change: 1 addition & 0 deletions src/components/admin/AdminTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export type ISystemStatus = {
ffmpeg: IBinaryStatus;
ffprobe: IBinaryStatus;
govod: IBinaryStatus;
govod_want: string;
vaapi_dev: 'ok' | 'not_found' | 'not_readable';

action_token: string;
Expand Down
2 changes: 1 addition & 1 deletion src/components/admin/sections/VideoTranscoder.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
@update:checked="update('memories.vod.external')"
type="switch"
>
{{ t('memories', 'Enable external transcoder (go-vod)') }}
{{ t('memories', 'Enable external transcoder (go-vod {version})', { version: status?.govod_want }) }}
</NcCheckboxRadioSwitch>

<NcTextField
Expand Down

0 comments on commit 080bf13

Please sign in to comment.