node-av / lib / avGetHardwareDeviceTypeName
Function: avGetHardwareDeviceTypeName()
avGetHardwareDeviceTypeName(
type):FFHWDeviceType
Defined in: src/lib/utilities.ts:403
Get hardware device type name.
Returns the string name for a hardware device type enum value.
Direct mapping to av_hwdevice_get_type_name().
Parameters
type
Hardware device type enum
Returns
Device type name (e.g. "videotoolbox", "cuda"), or null if unknown
Example
typescript
import { AV_HWDEVICE_TYPE_VIDEOTOOLBOX, AV_HWDEVICE_TYPE_CUDA } from 'node-av/constants';
const name1 = avGetHardwareDeviceTypeName(AV_HWDEVICE_TYPE_VIDEOTOOLBOX); // Returns "videotoolbox"
const name2 = avGetHardwareDeviceTypeName(AV_HWDEVICE_TYPE_CUDA); // Returns "cuda"See
av_hwdevice_get_type_name - FFmpeg Doxygen
