Add Auto switching of video/audio element based on file extension