feat: update PlayScreen and VideoLoadingAnimation styles, and log play record saving in playerStore

This commit is contained in:
zimplexing
2025-07-18 19:08:49 +08:00
parent bd7087264d
commit e8a1ea2717
4 changed files with 16 additions and 17 deletions

View File

@@ -126,7 +126,6 @@ export default function PlayScreen() {
ref={videoRef}
style={styles.videoPlayer}
source={{ uri: currentEpisode?.url || "" }}
usePoster
posterSource={{ uri: detail?.poster ?? "" }}
resizeMode={ResizeMode.CONTAIN}
onPlaybackStatusUpdate={handlePlaybackStatusUpdate}

View File

@@ -111,18 +111,18 @@ export default function SettingsScreen() {
),
key: "livestream",
},
{
component: (
<VideoSourceSection
onChanged={markAsChanged}
onFocus={() => {
setCurrentFocusIndex(3);
setCurrentSection("videoSource");
}}
/>
),
key: "videoSource",
},
// {
// component: (
// <VideoSourceSection
// onChanged={markAsChanged}
// onFocus={() => {
// setCurrentFocusIndex(3);
// setCurrentSection("videoSource");
// }}
// />
// ),
// key: "videoSource",
// },
];
// TV遥控器事件处理

View File

@@ -229,7 +229,6 @@ const styles = StyleSheet.create({
flex: 1,
alignItems: "center",
justifyContent: "center",
backgroundColor: "#2d3748",
overflow: "hidden",
},
loadingContainer: {
@@ -237,8 +236,8 @@ const styles = StyleSheet.create({
zIndex: 10,
},
videoIcon: {
width: 120,
height: 120,
width: 100,
height: 100,
marginBottom: 30,
},
videoFrame: {
@@ -303,7 +302,7 @@ const styles = StyleSheet.create({
},
shape: {
position: "absolute",
backgroundColor: "rgba(255, 255, 255, 0.03)",
backgroundColor: "rgba(255, 255, 255, 0.05)",
borderRadius: 50,
},
shape1: {

View File

@@ -254,6 +254,7 @@ const usePlayerStore = create<PlayerState>((set, get) => ({
...existingRecord,
...updates,
});
console.log("Play record saved")
}
},