admin: show expected go-vod version

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/877/head
Varun Patil 2023-10-15 14:28:18 -07:00
parent 5e10d60123
commit 080bf1358d
3 changed files with 4 additions and 2 deletions

View File

@ -155,10 +155,11 @@ class AdminController extends GenericApiController
$extGoVod = Util::getSystemConfig('memories.vod.external'); $extGoVod = Util::getSystemConfig('memories.vod.external');
$status['govod'] = $this->getExecutableStatus( $status['govod'] = $this->getExecutableStatus(
static fn () => BinExt::getGoVodBin(), static fn () => BinExt::getGoVodBin(),
static fn ($p) => BinExt::testStartGoVod(), static fn () => BinExt::testStartGoVod(),
!$extGoVod, !$extGoVod,
!$extGoVod, !$extGoVod,
); );
$status['govod_want'] = BinExt::GOVOD_VER;
// Check for VA-API device // Check for VA-API device
$devPath = '/dev/dri/renderD128'; $devPath = '/dev/dri/renderD128';

View File

@ -57,6 +57,7 @@ export type ISystemStatus = {
ffmpeg: IBinaryStatus; ffmpeg: IBinaryStatus;
ffprobe: IBinaryStatus; ffprobe: IBinaryStatus;
govod: IBinaryStatus; govod: IBinaryStatus;
govod_want: string;
vaapi_dev: 'ok' | 'not_found' | 'not_readable'; vaapi_dev: 'ok' | 'not_found' | 'not_readable';
action_token: string; action_token: string;

View File

@ -24,7 +24,7 @@
@update:checked="update('memories.vod.external')" @update:checked="update('memories.vod.external')"
type="switch" type="switch"
> >
{{ t('memories', 'Enable external transcoder (go-vod)') }} {{ t('memories', 'Enable external transcoder (go-vod {version})', { version: status?.govod_want }) }}
</NcCheckboxRadioSwitch> </NcCheckboxRadioSwitch>
<NcTextField <NcTextField