def render(self, name, value='<STR_LIT>', attrs=None, size=(<NUM_LIT>, <NUM_LIT>), renderer=None):
if VERSION < (<NUM_LIT:1>, <NUM_LIT:11>):<EOL><INDENT>output = super(AdminVideoWidget, self).render(name, value, attrs)<EOL><DEDENT>else:<EOL><INDENT>output = super(AdminVideoWidget, self).render(name, value, attrs, renderer)<EOL><DEDENT>if not value:<EOL><INDENT>return output<EOL><DEDENT>try:<EOL><INDENT>backend = detect_backend(value)<EOL>return mark_safe(self.output_format.format(<EOL>video=backend.get_embed_code(*size),<EOL>input=output,<EOL>))<EOL><DEDENT>except (UnknownBackendException, VideoDoesntExistException):<EOL><INDENT>return output<EOL><DEDENT>
:type name: str
:type attrs: dict