cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Tell us what you want to see on the Community here!
Close

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to get properties of a music file from metadata (Swift 5)

Highlighted

How to get properties of a music file from metadata (Swift 5)

Helpful | Level 5

I'd like to get such properties of a music file as its artwork, duration, file size. But I do not find these properties in "entry" in the "result.entries" array.

Screen Shot 2020-08-25 at 09.53.58.png

1 Accepted Solution

Accepted Solutions
Highlighted

Re: How to get properties of a music file from metadata (Swift 5)

Dropboxer

The Dropbox API does not extract and return media information such as artwork and duration for audio files, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. That being the case, to access this information, you'd need to download the file and extract the desired information from the audio file data.

 

The Dropbox API does return file size information, but you'll need to cast the Metadata as FileMetadata first, like in this example, to access the properties specific to FileMetadata. Then you can access FileMetadata.size.

View solution in original post

1 Reply 1
Highlighted

Re: How to get properties of a music file from metadata (Swift 5)

Dropboxer

The Dropbox API does not extract and return media information such as artwork and duration for audio files, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. That being the case, to access this information, you'd need to download the file and extract the desired information from the audio file data.

 

The Dropbox API does return file size information, but you'll need to cast the Metadata as FileMetadata first, like in this example, to access the properties specific to FileMetadata. Then you can access FileMetadata.size.

View solution in original post

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?