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} ref={videoRef}
style={styles.videoPlayer} style={styles.videoPlayer}
source={{ uri: currentEpisode?.url || "" }} source={{ uri: currentEpisode?.url || "" }}
usePoster
posterSource={{ uri: detail?.poster ?? "" }} posterSource={{ uri: detail?.poster ?? "" }}
resizeMode={ResizeMode.CONTAIN} resizeMode={ResizeMode.CONTAIN}
onPlaybackStatusUpdate={handlePlaybackStatusUpdate} onPlaybackStatusUpdate={handlePlaybackStatusUpdate}

View File

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

View File

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

View File

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