How can i make a video chat

How can i make a video chat that sends user a video to other user. similar to this picture of blocks


Thank you.

Do you simply want to send video files to each other ?

You can upload binary files to cloudDB, but such heavy use may incur the wrath of the cloudDB techs...

Consider an alternative such as Firebase Storage, which will give you 10GB of free storage.

If videos will take a heavy storage, then what about a picture?

Similarly, you can upload images to cloudDB, in their own tag's value, or you could convert them to base64 and include that as a part of a list or csv string of data in a tag's value. (Note that the base64 of an image is roughly 1.3 x the size of the actual image file size.)

What about audio?

Yes, but encode at a low bitrate to keep the file size down.

Well can you give me example of audio because i dont know how to make one
Everytime i make one the previous audio doesent save

Show your relevant blocks for recording and saving audio.

The sound recorder still has a bug in the default file path (includes a directory, My Documents with a space in it)

Use the File component to set a path to your ASD


I tried my best but i dont know what to do at the last blocks

image

  1. Don't use ! as a tag name, use a string with letters from the alphabet and if you want numbers, but you should start with a letter.

  2. Remove the spaces and punctuation marks from your filename:
    AUD from (user).3gp >> AUDfromUser.3gp

  3. It is not file:/// but file:// (two slashes only)

  4. You need to provide a full path to save a binary file to cloudDB

image


Thank you very much for correcting me.

Now am i doing it wrong?

image

  1. After the sound is recorded, save the sound file to cloudDB in its own tag, using a full path
  2. AppendValueToList of the sound files tag to your sounds cloudDB list

Another use can then return the selected sound from the list.

Thanks, you are so smart

1 Like


It occurs an error

The blocks

Also every list that has added is the same audio

image

You will need to test what has changed, what is coming back, and again use if/else statements to test for tags, just as you do with GotValue.

I have did what you did
But all of the audio that i recorded changed all of the old audio and became the same audio thay i recorded ago

You know what, audio is nothing
Video makes more sense than audio

i've done some simple chat-app with Python. Same line of thought,it's composed a client and a server. Make a client is easy, but deploy the server and write the backend program is difficult then writing client.
[mod edit - image removed due to foul language]

You can try much the same with video files.

You need to create unique tags for each video file you upload. You can use a clock component for this and the systemtime block to add a unique number in milliseconds.