What can be an efficient way to determine videos that may be embedded in a post?
If the embed code is directly added to a post, it is easy to determine using regular expressions but some plugins embed videos through shortcodes or in custom fields. In these cases, the actual embed code is added at the time of rendering the post.