I have a golang script that need to be fixed. Im new to golang and i need some help
The script is part of bigger project, the task is to build a simple web server that serve static AES encrypted video files, the server should decrypt the files on the fly before sending it to the player, without loading all the file to memory and without using temporary files.
The player might be html5 video player or android device.
The player should be able to do rewind,forward and pause of the video stream.
I have the script ready, however, its only working on a small files, when it exceed a certain size, the file is corrupted, i need help to solve this problem.
the script is attached
i can also provide the script used to encrypt files.