Skip to content

Media ​

Media APIs support image selection, preview, and saving, as well as audio playback, recording, and video playback.

Image ​

Image APIs provide the following operations:

APIDescription
sud.chooseImageSelect an image from the album or take a photo
sud.previewImagePreview a list of images
sud.saveImageToPhotosAlbumSave a local image to the system photo album

Audio, recording, and video ​

CategoryAPIDescription
Audiosud.createInnerAudioContextCreate an audio instance and control playback
Audiosud.setInnerAudioOptionSet audio playback options
Recordingsud.getRecorderManagerGet the recorder manager
Videosud.createVideoCreate a video component