The Shared Screen with speaker view option means it will record in speaker view, unless you are sharing screen, in which case it will record the shared content. To ensure your video is captured along with the shared screen, make sure that the Record thumbnails when sharing option is also enabled for cloud recordings.
Hope that helps and please make sure to mark the solution as accepted if this information is what you needed.