mirror of
https://github.com/zimplexing/OrionTV.git
synced 2026-02-04 03:36:29 +08:00
feat: update PlayScreen and VideoLoadingAnimation styles, and log play record saving in playerStore
This commit is contained in:
@@ -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}
|
||||||
|
|||||||
@@ -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遥控器事件处理
|
||||||
|
|||||||
@@ -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: {
|
||||||
|
|||||||
@@ -254,6 +254,7 @@ const usePlayerStore = create<PlayerState>((set, get) => ({
|
|||||||
...existingRecord,
|
...existingRecord,
|
||||||
...updates,
|
...updates,
|
||||||
});
|
});
|
||||||
|
console.log("Play record saved")
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user