Show More
@@ -323,7 +323,8 b' class YouTubeVideo(IFrame):' | |||||
323 | self.id=id |
|
323 | self.id=id | |
324 | src = "https://www.youtube.com/embed/{0}".format(id) |
|
324 | src = "https://www.youtube.com/embed/{0}".format(id) | |
325 | if allow_autoplay: |
|
325 | if allow_autoplay: | |
326 |
kwargs. |
|
326 | extras = list(kwargs.get("extras", [])) + ['allow="autoplay"'] | |
|
327 | kwargs.update(autoplay=1, extras=extras) | |||
327 | super(YouTubeVideo, self).__init__(src, width, height, **kwargs) |
|
328 | super(YouTubeVideo, self).__init__(src, width, height, **kwargs) | |
328 |
|
329 | |||
329 | def _repr_jpeg_(self): |
|
330 | def _repr_jpeg_(self): |
General Comments 0
You need to be logged in to leave comments.
Login now