There is a way to record the multibody animation video in MATLAB using the smwritevideo function available in the Simscape Multibody toolbox.
This function saves the video in the current MATLAB folder. The video file format is that specified in the Video Creator tool. Kindly refer to the documentation page of smwritevideo for more information.
Hope this helps!