Android Code Snippet [B4X] Audio Over MQTT

Hi everyone,
I attached simple example for streaming audio from B4A to B4J over internet using MQTT.
Enjoy without limitations of Server/Client problems over internet such as ISP block.
You can use this approach to create a lot of things such as Radio station, voice call, etc ...
 

Attachments

  • B4A-audioovermqtt.zip
    10.1 KB · Views: 172
  • B4J-audioovermqtt.zip
    3.7 KB · Views: 154

Magma

Expert
Licensed User
Longtime User
nice...

I want to ask you about: broker.hivemq.com

-Is there a limit at this free/test mqtt (at the "broker")... limit at time of connection.. or something ? -seems to fast-
-also (you or other) do you know what credentials (guest, password?) may need to setup at any mqtt to have free access like the broker.

Also as I understand this example you ve created is one way B4A recording->B4J listening-play-audio... right ?
 

epiCode

Active Member
Licensed User
nice...

I want to ask you about: broker.hivemq.com

-Is there a limit at this free/test mqtt (at the "broker")... limit at time of connection.. or something ? -seems to fast-
-also (you or other) do you know what credentials (guest, password?) may need to setup at any mqtt to have free access like the broker.

Also as I understand this example you ve created is one way B4A recording->B4J listening-play-audio... right ?
It is a free broker service
No credentials needed as anyone can listen to any topic - so technically no privacy but good for testing
Limitation: 100 devices
 
Top