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}
|
||||
style={styles.videoPlayer}
|
||||
source={{ uri: currentEpisode?.url || "" }}
|
||||
usePoster
|
||||
posterSource={{ uri: detail?.poster ?? "" }}
|
||||
resizeMode={ResizeMode.CONTAIN}
|
||||
onPlaybackStatusUpdate={handlePlaybackStatusUpdate}
|
||||
|
||||
@@ -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遥控器事件处理
|
||||
|
||||
@@ -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: {
|
||||
|
||||
@@ -254,6 +254,7 @@ const usePlayerStore = create<PlayerState>((set, get) => ({
|
||||
...existingRecord,
|
||||
...updates,
|
||||
});
|
||||
console.log("Play record saved")
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user