Hi
Hi,
has anybody a working example how to play a simple sound sample (wav\mp3\ogg\etc.) from a memory resource stream in firemonkey? TMediaplayer only uses files.
And I like my android firemonkey app as 1 executable file if possible.
Thanks for any help
has anybody a working example how to play a simple sound sample (wav\mp3\ogg\etc.) from a memory resource stream in firemonkey? TMediaplayer only uses files.
And I like my android firemonkey app as 1 executable file if possible.
Thanks for any help
This blog/tutorial dates back to android 1.0 I think, and describes (downloading) creating a small buffer, playing it, stopping it, and starting a new player with an updated buffer. (in Java)
ReplyDeletehttps://web.archive.org/web/20110715054951/http://blog.pocketjourney.com/2008/04/04/tutorial-custom-media-streaming-for-androids-mediaplayer/
I wrote a media player many years ago that dealt with streaming back when dial-up was all the rage, and memory was in short supply. We saved buffers to temp files, played them, then deleted the temp file. For a simple sound sample, this seems like a fast and easy solution.
ReplyDeleteThanks for all the help. It will take me a bit of time to try the suggestions. But using the androidapi like Paul and Roland suggested (in 2 different ways) seems a solution. I will try it out.
ReplyDelete