mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-07-11 15:02:57 +01:00
Chore: log cleanups, and Vo settings enablement
Added the ability to swap VO options for android only between "GPU" and "GPU-next" Removed some console logs from previous debugging Added the ability to see what VO is being used to render in the video player Signed-off-by: Lance Chant <13349722+lancechant@users.noreply.github.com>
This commit is contained in:
@@ -912,20 +912,6 @@ export const Controls: FC<Props> = ({
|
||||
setFocusPlayButton(false);
|
||||
}, [setShowControls]);
|
||||
|
||||
// On initial mount when controls start visible, focus the play button.
|
||||
// playButtonRef transitions from null → View on first render; once set,
|
||||
// this effect won't re-fire (playButtonRef is a stable reference).
|
||||
const initialFocusDone = useRef(false);
|
||||
useEffect(() => {
|
||||
if (!initialFocusDone.current && playButtonRef && showControls) {
|
||||
initialFocusDone.current = true;
|
||||
const t = setTimeout(() => {
|
||||
playButtonRef.focus();
|
||||
}, 100);
|
||||
return () => clearTimeout(t);
|
||||
}
|
||||
}, [showControls, playButtonRef]);
|
||||
|
||||
// When controls hide (and no skip/countdown overlay is visible), move focus
|
||||
// to the invisible overlay so hidden buttons can't receive select events.
|
||||
useEffect(() => {
|
||||
@@ -1226,7 +1212,6 @@ export const Controls: FC<Props> = ({
|
||||
<Animated.View
|
||||
style={[styles.bottomContainer, bottomAnimatedStyle]}
|
||||
pointerEvents={showControls ? "auto" : "none"}
|
||||
focusable={showControls}
|
||||
>
|
||||
<View
|
||||
style={[
|
||||
|
||||
@@ -350,6 +350,12 @@ export const TechnicalInfoOverlay: FC<TechnicalInfoOverlayProps> = memo(
|
||||
Buffer: {info.cacheSeconds.toFixed(1)}s
|
||||
</Text>
|
||||
)}
|
||||
{info?.voDriver && (
|
||||
<Text style={textStyle}>
|
||||
VO: {info.voDriver}
|
||||
{info.hwdec ? ` / ${info.hwdec}` : ""}
|
||||
</Text>
|
||||
)}
|
||||
{info?.droppedFrames !== undefined && info.droppedFrames > 0 && (
|
||||
<Text style={[textStyle, styles.warningText]}>
|
||||
Dropped: {info.droppedFrames} frames
|
||||
|
||||
Reference in New Issue
Block a user