def render(self, context):
url = self.url.resolve(context)<EOL>size = self.size.resolve(context) if self.size else None<EOL>options = self.resolve_options(context)<EOL>try:<EOL><INDENT>if not self.variable_name:<EOL><INDENT>return self.embed(url, size, context=context, **options)<EOL><DEDENT>backend = self.get_backend(url, context=context, **options)<EOL>return self.render_block(context, backend)<EOL><DEDENT>except requests.Timeout:<EOL><INDENT>logger.exception('<STR_LIT>'.format(url))<EOL><DEDENT>except UnknownBackendException:<EOL><INDENT>logger.exception('<STR_LIT>'.format(url))<EOL><DEDENT>except VideoDoesntExistException:<EOL><INDENT>logger.exception('<STR_LIT>'.format(url))<EOL><DEDENT>return '<STR_LIT>'<EOL>
Returns generated HTML.

:param context: Django template RequestContext
:type context: django.template.RequestContext
:return: Rendered HTML with embed video.
:rtype: django.utils.safestring.SafeText | str