Android Example [B4X] VideoStreaming

For some time I have been studying a way to transmit and receive audio and video quickly. We already have an example created by Erel (CCTV) and I created something in B4J using VLC (here), but I was not satisfied with speed, quality and simplicity of implementation.

I made a further attempt using a Huffman compression algorithm that I implemented a few years ago, it is not yet satisfactory but it gives a general idea of how to do it.
Finally I added an algorithm that divides the moving image into a grid and updates only the squares that change... even so I'm not satisfied.
The Sender is written in B4A and the Receivers in B4A and B4J

Now I am no longer able to go further, it is beyond my competence, but I would like to share the work done to date, perhaps it can be useful to someone else.

(For the moment I will only provide you with the latest version, but the intermediate versions that I will provide you later are also interesting)

A good day
 

Attachments

Last edited:
It currently sends and receives images in JPeg but I wondered if the fluidity was gained in Webp. In tile transmission the image would be reduced by 50% per tile but the compression time could be 6/7 times longer.
Is it worth it? Who knows I should do some tests
 
@Star-Dust I didn't check the code - i am sure for your good work. I somehow streaming screen capture through mqtt with my code for remote administration app have, last 2 years i am using Delta to make grid the screen and only get the differences... It is very difficult the whole thing.... for b4j found some tips to optimize the showing images/clips - sometimes using pure java to do it...
 
Back
Top