杜比HDR

This commit is contained in:
Developer
2026-03-19 16:38:18 +08:00
parent 462a090599
commit 46796d3d6d
5 changed files with 38 additions and 10 deletions

View File

@@ -407,6 +407,14 @@ export const NativeVideoPlayer = forwardRef<NativeVideoPlayerRef, Props>(
videoRef.current?.seek(initialTime);
}
}}
onError={(e) => {
// 杜比视界播放失败时自动降级到 1080P
if (currentQn === 126) {
onQualityChange(80);
return;
}
console.warn('Video playback error:', e);
}}
/>
) : (
<View style={styles.placeholder} />
@@ -572,7 +580,7 @@ export const NativeVideoPlayer = forwardRef<NativeVideoPlayerRef, Props>(
q.qn === currentQn && styles.qualityItemActive,
]}
>
{q.desc}
{q.desc}{q.qn === 126 ? ' DV' : ''}
</Text>
{q.qn === currentQn && (
<Ionicons name="checkmark" size={16} color="#00AEEC" />