Implementing a video player with YouTube API