Anyone know how I can use the MEDIAPLAYERSTREAM or something like that when I need the POST some data to create a sound and download automaticly?
Let me explain:
I have a service API in my company that create a sound automaticly, but I need send some parameters in JSON format, like type of voice, message, etc.
*************************************************************************
Dim In As InputStream = File.OpenInput("/sdcard/Download/","File.json")
Dim size As Long = File.size("/sdcard/Download/","File.json")
Dim request as HttpRequest
request.InitializePost("http://test.creawavestudio.com/pocpsa/api", In, size)
request.Timeout = 60000
objHttpClient.Execute(request, 1000)
*************************************************************************
But when pass into event objHttpClient_ResponseSuccess
and I get que File and save to .MP3 like this
Response.GetAsynchronously("ResponseCrea", File.OpenOutput("/sdcard/Download/","File.mp3", False), True, TaskId)
Work very well, but is not STREAMING, is Download and Play with Media Player
and the MEDIAPLAYERSTREAM is work only with a URL of the MP3
How I can play this, without wait the entire download?
Please help Me!
Let me explain:
I have a service API in my company that create a sound automaticly, but I need send some parameters in JSON format, like type of voice, message, etc.
*************************************************************************
Dim In As InputStream = File.OpenInput("/sdcard/Download/","File.json")
Dim size As Long = File.size("/sdcard/Download/","File.json")
Dim request as HttpRequest
request.InitializePost("http://test.creawavestudio.com/pocpsa/api", In, size)
request.Timeout = 60000
objHttpClient.Execute(request, 1000)
*************************************************************************
But when pass into event objHttpClient_ResponseSuccess
and I get que File and save to .MP3 like this
Response.GetAsynchronously("ResponseCrea", File.OpenOutput("/sdcard/Download/","File.mp3", False), True, TaskId)
Work very well, but is not STREAMING, is Download and Play with Media Player
and the MEDIAPLAYERSTREAM is work only with a URL of the MP3
How I can play this, without wait the entire download?
Please help Me!