(self, video='', poster=None, autoplay=False, loop=False, *args, **kwargs)
| 4193 | def attr_type(self, value): self.attributes['type'] = str(value).lower() |
| 4194 | |
| 4195 | def __init__(self, video='', poster=None, autoplay=False, loop=False, *args, **kwargs): |
| 4196 | super(VideoPlayer, self).__init__(*args, **kwargs) |
| 4197 | self.type = 'video' |
| 4198 | self.attributes['src'] = video |
| 4199 | self.attributes['preload'] = 'auto' |
| 4200 | self.attributes['controls'] = None |
| 4201 | self.attributes['poster'] = poster |
| 4202 | self.set_autoplay(autoplay) |
| 4203 | self.set_loop(loop) |
| 4204 | |
| 4205 | def set_autoplay(self, autoplay): |
| 4206 | if autoplay: |
nothing calls this directly
no test coverage detected