Skip to content

Variable: Audio ​

ts
Audio: {
(src?): HTMLAudioElement;
  prototype: HTMLAudioElement;
};

Defined in: types/desktop-engine.d.ts:5367

Makes an audio element and, with src, starts loading it: a package file or, with the "network" permission, an http(s) URL. Formats are the ones macOS decodes (MP3, AAC / M4A, WAV, AIFF, CAF, FLAC, ALAC); playing needs the "audio" permission

Type Declaration ​

Parameters ​

ParameterType
src?string

Returns ​

HTMLAudioElement

NameTypeDefined in
prototypeHTMLAudioElementtypes/desktop-engine.d.ts:5368

The SDK is released under the Apache License 2.0