mediaelement - VB.net getting tag info into mp3 files -


how can internal info sound files using mediaelement?

i know how duration of song file naturalduration property want access author , others tag many mp3 files include themselves. there way using mediaelement? know how wmp , need mediaelement because application uwp application.

thanks!!!

ok, late , may not elegant solution getting duration of mp3 file. used musicproperties class. class access music tag information file.

public function infomp3(elfichero string) string

dim salida string = "" dim mitask = task.run(async function() task(of string)                           dim musicfile storagefile = await storagefile.getfilefrompathasync(elfichero)                           dim fileproperties storageitemcontentproperties = musicfile.properties                           dim musicfileproperties musicproperties = await fileproperties.getmusicpropertiesasync()                           dim tiempo = musicfileproperties.duration                           dim horas string                           if tiempo.hours < 10                               horas = "0" & tiempo.hours.tostring                           else                               horas = tiempo.hours.tostring                           end if                           dim minutos string                           if tiempo.minutes < 10                               minutos = "0" & tiempo.minutes.tostring                           else                               minutos = tiempo.minutes.tostring                           end if                           dim segundos string                           if tiempo.seconds < 10                               segundos = "0" & tiempo.seconds.tostring                           else                               segundos = tiempo.seconds.tostring                           end if                           dim autor = musicfileproperties.artist                           dim titulo = musicfileproperties.title                            dim presalida string = "[" & horas & ":" & minutos & ":" & segundos & "];[" & titulo & "];[" & autor & "]    " & elfichero                           return presalida                       end function) mitask.wait() salida = mitask.result return salida 

end function access files later on windows 10, have save permission files and/or folders. when select them.

... dim listtoken = windows.storage.accesscache.storageapplicationpermissions.futureaccesslist.add(rutas) ...

where rutas sotoragefolder object.


Comments