mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-01-15 15:48:05 +00:00
feat: add Dolby Vision badge (#1177)
This commit is contained in:
@@ -183,6 +183,12 @@ const VideoStreamInfo = ({ source }: { source?: MediaSourceInfo }) => {
|
|||||||
|
|
||||||
if (!source || !videoStream) return null;
|
if (!source || !videoStream) return null;
|
||||||
|
|
||||||
|
// Dolby Vision video check
|
||||||
|
const isDolbyVision =
|
||||||
|
videoStream.VideoRangeType === "DOVI" ||
|
||||||
|
videoStream.DvVersionMajor != null ||
|
||||||
|
videoStream.DvVersionMinor != null;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<View className='flex-row flex-wrap gap-2'>
|
<View className='flex-row flex-wrap gap-2'>
|
||||||
<Badge
|
<Badge
|
||||||
@@ -195,6 +201,15 @@ const VideoStreamInfo = ({ source }: { source?: MediaSourceInfo }) => {
|
|||||||
iconLeft={<Ionicons name='film-outline' size={16} color='white' />}
|
iconLeft={<Ionicons name='film-outline' size={16} color='white' />}
|
||||||
text={`${videoStream.Width}x${videoStream.Height}`}
|
text={`${videoStream.Width}x${videoStream.Height}`}
|
||||||
/>
|
/>
|
||||||
|
{isDolbyVision && (
|
||||||
|
<Badge
|
||||||
|
variant='gray'
|
||||||
|
iconLeft={
|
||||||
|
<Ionicons name='sparkles-outline' size={16} color='white' />
|
||||||
|
}
|
||||||
|
text={"DV"}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
<Badge
|
<Badge
|
||||||
variant='gray'
|
variant='gray'
|
||||||
iconLeft={
|
iconLeft={
|
||||||
|
|||||||
Reference in New Issue
Block a user