custom plugin to record the video in iOS