reza added some thing

master
Reza_ashrafi 3 years ago
parent 48de8b9d4d
commit b78df990bf
  1. BIN
      src/assets/video.mp4
  2. 10
      src/screens/VideoDisplay/index.js

Binary file not shown.

@ -14,7 +14,7 @@ import Drawer from "../../components/Drawer";
import { Video, AVPlaybackStatus } from "expo-av"; import { Video, AVPlaybackStatus } from "expo-av";
import tw from "tailwind-rn"; import tw from "tailwind-rn";
import Season from './components/Season'; import Season from './components/Season';
import movie from "../../assets/video.mp4"; // import movie from "../../assets/video.mp4";
const { height, width } = Dimensions.get("window"); const { height, width } = Dimensions.get("window");
@ -23,7 +23,7 @@ function VideoDisplay({
type: "کتاب ها", type: "کتاب ها",
name: "ریاضی", name: "ریاضی",
grade: "پایه هفتم ابتدایی", grade: "پایه هفتم ابتدایی",
video: movie, // video: movie,
season: { season: {
name: "فصل اول: مباحث جوشش مواد مذاب در مرکز زمین", name: "فصل اول: مباحث جوشش مواد مذاب در مرکز زمین",
duration: "2:30:13", duration: "2:30:13",
@ -71,7 +71,7 @@ function VideoDisplay({
style={styles.container} style={styles.container}
> >
<View style={tw("flex flex-col")}> <View style={tw("flex flex-col")}>
<Video {/* <Video
ref={video} ref={video}
style={{ width: "100%", height: (width * 9) / 16 - 16 }} style={{ width: "100%", height: (width * 9) / 16 - 16 }}
source={product.video} source={product.video}
@ -79,7 +79,7 @@ function VideoDisplay({
resizeMode="cover" resizeMode="cover"
isLooping isLooping
onPlaybackStatusUpdate={(status) => setStatus(() => status)} onPlaybackStatusUpdate={(status) => setStatus(() => status)}
/> /> */}
<Season season={product.season} /> <Season season={product.season} />
</View> </View>
</ScrollView> </ScrollView>
@ -99,4 +99,4 @@ const styles = StyleSheet.create({
paddingHorizontal: 16, paddingHorizontal: 16,
}, },
}); });
export default VideoDisplay; export default VideoDisplay;
Loading…
Cancel
Save