massoudss / waveformSeekBar

Android Waveform SeekBar library
488 stars 81 forks source link

Upload file from url #26

Closed AleAmla987 closed 3 years ago

AleAmla987 commented 3 years ago

Hello! How can I load a file from a url and thus implement the layout? That integer array what does it have to refer to? what should i add? affects the design only or refers to the duration of the audio waveform SeekBar.set Sample From (samples: Int Array) // or Java array => new int [] {/ samples /} I send you a hug from Argentina

massoudss commented 3 years ago

Hi You have to download your file first and generate sample array from saved audio file. If you want show waveform without downloading the file, you should precompute sample array and save it on server side.