Subtle coding problem (chatbox & video processing)

Ok… I know I am very bad at coding, or anything that touch to this domain really… but why should the api third app could not have the same interface has aistudio have? well… not my problem here, I just wanna say why any AI of gemini is able to simply code the… you know… when you upload a video, you have the video in your chat bar, it stay there, it charge, in process, render, transcript, and then once it is charged, you can finally upload it on the main chat box… but this is where the ai is unable to find a solution… aistudio have a backend server to do that stuff for videos, but not the third app… somewhat, I managed in 17 days to find a way to implement how aistudio does it’s video processing, but the only hic is the same… the chatbox…

Here my problem: The video process normally with all the security features I told the ai to implement IN ORDER to not make a fuss about it. Everything work well, problem? I press enter, the video is supposed to show in the chatbox above your text, but? it crash the app… … … And this has been going for these all 17 days… so I tried to find out why it would not work… and for now, my only fix was to remove how the video was shown in the chatbox… by text only… and the chatbox never crashed again…

If anyone have a tip on how to fix this while making sure the video still show above your text like it does on aistudio, I would like to hear it, because beside maybe making a whole media studio that work outside the chatbox, I don’t see how… and the media studio would be terrible, because it is not linked to the chatbox, which is where I’m discussing with the llm at the same time after having uploaded the video… can’t separate thing if I need everything in the same boat.

By the way, using 2.5 pro still, since 3.0 was only doing errors on errors permanently. (3.0’s better when to code mundane things in one go from scratch tho)