First Method: Use below code to play youtube video in loop and most important is please change youtube embed link…