media module provides multimedia programming support. Currently only music playing and media file scanning are supported.
Play music. In 'async function' can be used keyword 'await' to wait for the music to be played.
The music file path, or the URL.
The volume of the music, a float number between 0 and 1, default is 1.
Whether to loop the music, if looping is true, the music will be looped, default is false.
Scan file. Used to add music files to the media library, and to add images to the system album.
The file path to be scanned.