I have a function to play only the audio of a video mp4 file... part of the function is this (for simplicity I just write the error producing part):
const vid