How to edit video in javascript?

I download a video from rest API and want to add a border to all frames in a video like this . i want to save the video as well and send it back to server/ store in local disk.

Can i do this in angularjs or ionic framework?