Jump to content

How to display HD logo only for videos 1080P and not 720P


phseven

Recommended Posts

In Website UI -> Page components -> include_list_videos_block_common.tpl you can change this:

{{if $item.is_hd==1}}<span class="is-hd">HD</span>{{/if}}

With this:

{{assign var="hd_format_postfix" value="_1080p.mp4"}}
{{if $item.formats[$hd_format_postfix].postfix}}<span class="is-hd">HD</span>{{/if}}

It is expected that you have video format with postfix "_1080p.mp4" (as by default KVS installation), otherwise please update this with your postfix format that you actually have for 1080p.

Please also note that HD term is 720p and upwards (The number of lines in the vertical display resolution. High-definition television (HDTV) resolution is 1,080 or 720 lines):

https://en.wikipedia.org/wiki/High-definition_video

PS: in player cannot change this and HD icon will be both for 720p and 1080p. For 2160p it should show 4k icon.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...