ArminKH
Well-Known Member
hi as you can see in media player tutorial we have a sub named "ConvertToTimeFormat"
now i want to change for example 3:05 to Milliseconds
some thing like this
thank u
B4X:
'converts milliseconds to m:ss format.
Sub ConvertToTimeFormat(ms As Int) As String
Dim seconds, minutes As Int
seconds = Round(ms / 1000)
minutes = Floor(seconds / 60)
seconds = seconds Mod 60
Return NumberFormat(minutes, 1, 0) & ":" & NumberFormat(seconds, 2, 0) 'ex: 3:05
End Sub
some thing like this
B4X:
Sub ConvertToMediaFormat(Time As String) As Int
End Sub
Last edited: