Hi all
I am using the following code to try to read file duration in ms of an audio file.
Having DIMed MB as mediabrowser
and assigned AudioFileToPlay
MB.Initialize("MB")
FilePath = File.DirInternal & "/"
mapdata = MB.GetAudioFileInfo(FilePath,AudioFileToPlay)
Dim sduration As Map
sduration = mapdata.Get("Duration")
sduration.Initialize
File.WriteMap(File.DirDefaultExternal, "AFDString.txt", sduration)
AFDString = File.ReadString(File.DirDefaultExternal,"AFDString.txt")
Msgbox(AFDString,"")
The message box reads "#Fri Dec 13 10:46:25 GMT 2013" not file duration.
What am I doing wrong?
I am using the following code to try to read file duration in ms of an audio file.
Having DIMed MB as mediabrowser
and assigned AudioFileToPlay
MB.Initialize("MB")
FilePath = File.DirInternal & "/"
mapdata = MB.GetAudioFileInfo(FilePath,AudioFileToPlay)
Dim sduration As Map
sduration = mapdata.Get("Duration")
sduration.Initialize
File.WriteMap(File.DirDefaultExternal, "AFDString.txt", sduration)
AFDString = File.ReadString(File.DirDefaultExternal,"AFDString.txt")
Msgbox(AFDString,"")
The message box reads "#Fri Dec 13 10:46:25 GMT 2013" not file duration.
What am I doing wrong?