Yes, it is possible to switch from live content to VOD with the same embed video code.
What you can do is create a channel playlist. This creates a single embed code, and you can load it with a live channel.
You can later remove the live channel and replace it with the VOD on your Dacast account, all without having to swap out the embeds.
Additional Resources
- Introduction to Live Streaming: Step-by-Step Guide
- How Can I Embed a Video on My Website?
- What Embed Code Should I Use?