Is it possible to play a streaming sound coming in from Bluetooth?
Is it possible in from within a J2ME program to stream sound over a Bluetooth connection, for instance from a streaming server on another phone, or开发者_运维问答 from a PC with a Bluetooth dongle?
I tried this a few years ago using an SPP input stream and JSR 135, as described in funkybro's answer. The results (like most results using Bluetooth and J2ME) were inconsistent. Some phones played the sound without issue. On others, the playback skipped. And, on some phones, it needed to receive the entire sound before it would play.
Yeah should be.
Step 1 is to get hold of an InputStream
over a Bluetooth connection, most likely using something like SPP.
Step 2, pump that InputStream
into a Player using JSR 135's Manager.createPlayer()
.
HTH
精彩评论