Hi,
Trying to create a better looking audio recording. It seems ok visually and ui behaviors work too but won’t record anything.
How to actually trigger the same behavior as the official Audio Recorder?
Hi,
Trying to create a better looking audio recording. It seems ok visually and ui behaviors work too but won’t record anything.
How to actually trigger the same behavior as the official Audio Recorder?
The AI component can create a file, but it’s a file stored temporarily in your device memory. It can’t actually upload a file to glide. Due to it’s sandboxed nature, you also can’t download the file to your device at this time, although a couple of us have asked to have that changed. No guarantees though.
You can maybe ask it to provide a playback option to see if it actually recorded anything (not sure if it has mic access), but permanent storage of a binary file is a no-go from the custom AI component to the best of my knowledge.
No need permanent storage, it should just mimic the standard component (creates a url for the file)
But the mic access is not happening.
Is there a way to clone an official component and then just modify appearance?
Sure, you can easily modify the appearance with custom CSS.
in fact, I also was able to stack two and more native components with CSS in the Z-axis using relative positioning. So, yes, the look you’re going after with the additional buttons is achievable.
Here are some examples of components where I did this:
The native component creates an audio file and uploads it to permanent storage. The file needs to be stored somewhere so you can retrieve it and play it later. The custom component can’t do that.