Can I embed a YouTube video into a PyCharm Edu Task Description?

I would like to embed a YouTube video into the Task Description for a lesson. I used the embed code from the YouTube website (actually it's an iframe, but the embed tag doesn't work either). The YT video appears, but when I click the Play button I just get a spinning circle.

Also, if I try to click on the View on YouTube button in the player, it loads the YouTube website into the Task Description window rather than popping out a new browser window as I'd expect.

What do I need to do to get a YouTube video to play, either within PyCharm or in a pop-out browser?

 

0
正式评论

Hello Barry,

We're sorry to hear that you have such issues with the EduTools plugin.

This appears to be a known issue, and we are already working on it: https://youtrack.jetbrains.com/issue/EDU-2560.

As a workaround, you can insert the link with a clickable image into the task.html file so the video will be opened in a browser:

<p><a href="http://www.youtube.com/watch?v=ThwuT3_AG6w"><img src="http://img.youtube.com/vi/ThwuT3_AG6w/0.jpg" alt="" /></a></p>

Please let us know if it helps.

请先登录再写评论。