What I would like to do seems fairly simple I just can't seem to figure it all out.
Lets say I am working on myexample.com

1. What I would like to do is take any random youtube video url let's say youtube.com/watch?v=kffacxfA7G4

2. Replace "youtube" in the url with "myexample"

3. Have the video play within myexample.com/watch?v=kffacxfA7G4

I've seen this exact thing done.
Just point me in the right direction.