##// END OF EJS Templates
Fixed some silly mistakes...
Danny Staple -
Show More
@@ -21,6 +21,8 b' class YouTubeVideo(object):'
21 vid = YouTubeVideo("abc", start=30)
21 vid = YouTubeVideo("abc", start=30)
22 display(vid)
22 display(vid)
23
23
24 To calculate seconds from time as hours, minutes, seconds use int(timedelta(hours=1, minutes=46, seconds=40).total_seconds())
25
24 Other parameters can be provided as documented at
26 Other parameters can be provided as documented at
25 https://developers.google.com/youtube/player_parameters#parameter-subheader
27 https://developers.google.com/youtube/player_parameters#parameter-subheader
26 """
28 """
@@ -29,7 +31,7 b' class YouTubeVideo(object):'
29 self.id = id
31 self.id = id
30 self.width = width
32 self.width = width
31 self.height = height
33 self.height = height
32 self.params = **kwargs
34 self.params = kwargs
33
35
34 def _repr_html_(self):
36 def _repr_html_(self):
35 """return YouTube embed iframe for this video id"""
37 """return YouTube embed iframe for this video id"""
@@ -45,5 +47,4 b' class YouTubeVideo(object):'
45 frameborder="0"
47 frameborder="0"
46 allowfullscreen
48 allowfullscreen
47 ></iframe>
49 ></iframe>
48 """%(self.width, self.height, self.id, self.start, params)
50 """%(self.width, self.height, self.id, params) No newline at end of file
49
General Comments 0
You need to be logged in to leave comments. Login now