external_video_tag
Creates an HTML <iframe> tag that includes the player for a specified external video. The external_video_tag helper can accept a media object or an external_video_url.
If the video has alternative text, it will be included in the <iframe> title attribute.
Parameters
media{Object}: The media object. This parameter is required.external_video_url{String}: The external video URL. This parameter is required.[HTML attributes]{Object}: You can define HTML attributes by adding parameters that correspond to the attribute names and assigning them the desired values.returns{String}: The<iframe>tag.
Usage
{{external_video_tag (external_video_url media)}}
Example
{{ external_video_tag (external_video_url media) class="youtube-video" color="white" }}
Was this article helpful to you?