UNPKG

@huddly/sdk-interfaces

Version:

Module for describing the Huddly SDK using interfaces

37 lines (36 loc) 1.24 kB
export default interface ICnnControl { /** * Convenience function for setting up the camera * for starting/stopping cnn feature. * Should be called before any other methods. * * @returns {Promise<any>} Returns a promise which * resolves in case the cnn feature init is completed * otherwise it rejects with a rejection message! * @memberof ICnnControl */ init(): Promise<any>; /** * Enables the cnn feature persistently. The enable state * is persistent on camera reboot/power cycle. * * @returns {Promise<void>} A void function. * @memberof ICnnControl */ enable(idleTimeMs?: number): Promise<void>; /** * Disables the cnn feature persistently. The disabled state * is persistent on camera reboot/power cycle. * * @returns {Promise<void>} A void function. * @memberof ICnnControl */ disable(idleTimeMs?: number): Promise<void>; /** * Checks if cnn feature is enabled on the camera. Returns true if yes, false otherwise. * * @returns {Promise<Boolean} Returns a promise which resolves to true if cnn features is enabled * false if disabled. */ isEnabled(): Promise<Boolean>; }