|
|
@ -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> |
|
|
|