(self)
| 210 | return self.data |
| 211 | |
| 212 | def _repr_html_(self): |
| 213 | src = """ |
| 214 | <audio {element_id} controls="controls" {autoplay}> |
| 215 | <source src="{src}" type="{type}" /> |
| 216 | Your browser does not support the audio element. |
| 217 | </audio> |
| 218 | """ |
| 219 | return src.format(src=self.src_attr(), type=self.mimetype, autoplay=self.autoplay_attr(), |
| 220 | element_id=self.element_id_attr()) |
| 221 | |
| 222 | def src_attr(self): |
| 223 | import base64 |
nothing calls this directly
no test coverage detected