mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-04-07 09:31:53 +01:00
@@ -19,9 +19,7 @@ const SkipButton: React.FC<SkipButtonProps> = ({
|
||||
onPress={onPress}
|
||||
className='bg-black/60 rounded-md px-3 py-3 border border-neutral-900'
|
||||
>
|
||||
<Text maxFontSizeMultiplier={1.2} className='text-white font-bold'>
|
||||
{buttonText}
|
||||
</Text>
|
||||
<Text className='text-white font-bold'>{buttonText}</Text>
|
||||
</TouchableOpacity>
|
||||
</View>
|
||||
);
|
||||
|
||||
@@ -102,7 +102,6 @@ const SliderScrubber: React.FC<SliderScrubberProps> = ({
|
||||
contentFit='cover'
|
||||
/>
|
||||
<Text
|
||||
maxFontSizeMultiplier={1.2}
|
||||
style={{
|
||||
position: "absolute",
|
||||
bottom: 5,
|
||||
@@ -127,16 +126,10 @@ const SliderScrubber: React.FC<SliderScrubberProps> = ({
|
||||
maximumValue={max}
|
||||
/>
|
||||
<View className='flex flex-row items-center justify-between mt-0.5'>
|
||||
<Text
|
||||
maxFontSizeMultiplier={1.2}
|
||||
className='text-[12px] text-neutral-400'
|
||||
>
|
||||
<Text className='text-[12px] text-neutral-400'>
|
||||
{formatTimeString(currentTime, "ms")}
|
||||
</Text>
|
||||
<Text
|
||||
maxFontSizeMultiplier={1.2}
|
||||
className='text-[12px] text-neutral-400'
|
||||
>
|
||||
<Text className='text-[12px] text-neutral-400'>
|
||||
-{formatTimeString(remainingTime, "ms")}
|
||||
</Text>
|
||||
</View>
|
||||
|
||||
@@ -195,7 +195,6 @@ export const TechnicalInfoOverlay: FC<TechnicalInfoOverlayProps> = memo(
|
||||
<View style={styles.infoBox}>
|
||||
{playMethod && (
|
||||
<Text
|
||||
maxFontSizeMultiplier={1.2}
|
||||
style={[
|
||||
styles.infoText,
|
||||
{ color: getPlayMethodColor(playMethod) },
|
||||
@@ -205,31 +204,28 @@ export const TechnicalInfoOverlay: FC<TechnicalInfoOverlayProps> = memo(
|
||||
</Text>
|
||||
)}
|
||||
{transcodeReasons && transcodeReasons.length > 0 && (
|
||||
<Text
|
||||
maxFontSizeMultiplier={1.2}
|
||||
style={[styles.infoText, styles.reasonText]}
|
||||
>
|
||||
<Text style={[styles.infoText, styles.reasonText]}>
|
||||
{transcodeReasons.map(formatTranscodeReason).join(", ")}
|
||||
</Text>
|
||||
)}
|
||||
{info?.videoWidth && info?.videoHeight && (
|
||||
<Text maxFontSizeMultiplier={1.2} style={styles.infoText}>
|
||||
<Text style={styles.infoText}>
|
||||
{info.videoWidth}x{info.videoHeight}
|
||||
</Text>
|
||||
)}
|
||||
{info?.videoCodec && (
|
||||
<Text maxFontSizeMultiplier={1.2} style={styles.infoText}>
|
||||
<Text style={styles.infoText}>
|
||||
Video: {formatCodec(info.videoCodec)}
|
||||
{info.fps ? ` @ ${formatFps(info.fps)} fps` : ""}
|
||||
</Text>
|
||||
)}
|
||||
{info?.audioCodec && (
|
||||
<Text maxFontSizeMultiplier={1.2} style={styles.infoText}>
|
||||
<Text style={styles.infoText}>
|
||||
Audio: {formatCodec(info.audioCodec)}
|
||||
</Text>
|
||||
)}
|
||||
{(info?.videoBitrate || info?.audioBitrate) && (
|
||||
<Text maxFontSizeMultiplier={1.2} style={styles.infoText}>
|
||||
<Text style={styles.infoText}>
|
||||
Bitrate:{" "}
|
||||
{info.videoBitrate
|
||||
? formatBitrate(info.videoBitrate)
|
||||
@@ -239,22 +235,17 @@ export const TechnicalInfoOverlay: FC<TechnicalInfoOverlayProps> = memo(
|
||||
</Text>
|
||||
)}
|
||||
{info?.cacheSeconds !== undefined && (
|
||||
<Text maxFontSizeMultiplier={1.2} style={styles.infoText}>
|
||||
<Text style={styles.infoText}>
|
||||
Buffer: {info.cacheSeconds.toFixed(1)}s
|
||||
</Text>
|
||||
)}
|
||||
{info?.droppedFrames !== undefined && info.droppedFrames > 0 && (
|
||||
<Text
|
||||
maxFontSizeMultiplier={1.2}
|
||||
style={[styles.infoText, styles.warningText]}
|
||||
>
|
||||
<Text style={[styles.infoText, styles.warningText]}>
|
||||
Dropped: {info.droppedFrames} frames
|
||||
</Text>
|
||||
)}
|
||||
{!info && !playMethod && (
|
||||
<Text maxFontSizeMultiplier={1.2} style={styles.infoText}>
|
||||
Loading...
|
||||
</Text>
|
||||
<Text style={styles.infoText}>Loading...</Text>
|
||||
)}
|
||||
</View>
|
||||
</Animated.View>
|
||||
|
||||
Reference in New Issue
Block a user