Devtools gets disconnected while embeding youtube videos

I am trying to embed youtube video in my code but the browsers devtools gets disconnected and the app crashes. Can anyone tell me how to embed youtube video correctly in my app.

Thanking you in advance