Video editor plugin

I am using video editor in such a way that
I capture video using media capture plugin then I call video editor plugin using file url provided by media capture.
My intens is to compress video size.
But video editor plugin works only sometime not all the time.
When I used progress to display it in console.log
It gets stop at 0.94(94%)
and neither call success nor call error.
Any idea or any other solution to compress video size.