The AVplayer doesn't seem to play uncompressed .wav files. Nothing can be heard and my research shows only AAC or MP3 format. Too bad, I thought I had found a solution.
What I need is an audio player that already plays the beginning of a local file while more data is added to it in the background. Is this possible? Any ideas? The MediaPlayer plays the file but doesn't let append data to it anymore. Unfortunately I can't get any further here.
What I need is an audio player that already plays the beginning of a local file while more data is added to it in the background. Is this possible? Any ideas? The MediaPlayer plays the file but doesn't let append data to it anymore. Unfortunately I can't get any further here.
B4X:
Private Sub CreatePlayerAV(url As String) As NativeObject
Dim u As NativeObject
u = u.Initialize("NSURL").RunMethod("URLWithString:", Array(url))
Dim player As NativeObject
player = player.Initialize("AVPlayer").RunMethod("alloc", Null) _
.RunMethod("initWithURL:", Array(u))
Return player
End Sub
Dim sUrl As String = File.Combine(folder, filename)
playerAV = CreatePlayerAV(sUrl)