To play YouTube just provide a link to the video:
Since early 2018 the YouTube API does not allow to manually choose the playback quality and resets the settings to automatic mode. We recommend to disable the quality selection for this video service.
For the correct YouTube analytics and the counting of views you need show native red button. To display this button you need: