Making a replay button

1.when my movie starts how can i make a play button?
2.when my movie ends how can i make a replay button?