YouTube provides an embed code through an iFrame, and various player parameters to handle the playback and look.