I am making a web app to control a dji ryze tello drone. The drone has a camera which sends the live mp4 video-feed to my backend. I recieve 30 frames a second in base64 on my backend and i am using a websocket to send the base64 data to the frontend. The video format is mp4.
How could i possibly display this video feed live per frame on my frontend?
some info;
how i recieve the data:
function initVideoFeed(socket) {
videoFeed.on('message', (frame) => {
socket.emit('videoFrame', frame) // sends the base64 to my frontend
})
}
This is how i recieve the frames in base64 on my backend: "<Buffer 65 15 dd 07 89 ab e0 ab 46 93 33 5e 06 0f 25 7d 0a f1 85 4d 8c a7 aa be 9c d8 3e 6a af 60 cc 6a b9 be 82 b2 71 55 63 b2 2a 0b 82 23 40 5b 79 0f 40 58 ... 1410 more bytes>"
I have searched online for hours but could only get information on how to send video files to the frontend. I however, do not have files but a continuous feed of frames. That is why i resorted to my last option, which is to ask it on stackoverflow.
I would greatly appreciate any information about my problem(;
Thank you very much!
edit: I will post the code on github once i succeed