Emily Baldoni and Justin Baldoni Emily Baldoni and Justin Baldoni

Jane the Virgin star Justin Baldoni has viral videos down to a science.

Baldoni and his wife, Swedish actress Emily Foxler, announced that they're expecting a baby with what might be the best baby announcement video ever.

See more celebrity baby news

The nearly 10-minute clip is a compilation of the couple breaking the baby news to their friends and family members, and the overjoyed reactions that resulted. At the end of the clip, they open an envelope to find out the sex of their baby, which is due in June. (They've decided to keep the sex a secret for now.)

Art is imitating life for Baldoni, who plays Raphael, the biological father of Jane's (Gina Rodriguez) baby on The CW's breakout hit.

When he proposed to Foxler, Baldoni put together a 27-minute short film to commemorate the moment.

Check out their baby announcement here: