master
Reza_ashrafi 3 years ago
parent b78df990bf
commit 50a2817301
  1. 1
      package.json
  2. 23
      src/components/Video.js
  3. 2
      src/screens/VideoDisplay/index.js
  4. 7
      yarn.lock

@ -19,7 +19,6 @@
"axios": "^0.24.0", "axios": "^0.24.0",
"expo": "^44.0.1", "expo": "^44.0.1",
"expo-app-loading": "~1.3.0", "expo-app-loading": "~1.3.0",
"expo-av": "~10.2.0",
"expo-barcode-scanner": "~11.2.0", "expo-barcode-scanner": "~11.2.0",
"expo-camera": "~12.1.0", "expo-camera": "~12.1.0",
"expo-device": "~4.1.0", "expo-device": "~4.1.0",

@ -1,23 +0,0 @@
import {StyleSheet} from 'react-native';
import Video from 'react-native-video';
import file from '../assets/video.mp4';
// Within your render function, assuming you have a file called
// "background.mp4" in your project. You can include multiple videos
// on a single screen if you like.
import React from 'react';
export default function CustomVideo() {
return (
<Video
source={file} // Can be a URL or a local file.
ref={ref => {
this.player = ref;
}} // Store reference
onBuffer={this.onBuffer} // Callback when remote video is buffering
onError={this.videoError} // Callback when video cannot be loaded
style={{width: '100%', height: '100%', borderRadius : 10}}
controls
/>
);
}

@ -11,7 +11,7 @@ import {
import { connect } from "react-redux"; import { connect } from "react-redux";
import Navbar from "../../components/Navbar"; import Navbar from "../../components/Navbar";
import Drawer from "../../components/Drawer"; 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";

@ -2842,13 +2842,6 @@ expo-asset@~8.4.5:
path-browserify "^1.0.0" path-browserify "^1.0.0"
url-parse "^1.4.4" url-parse "^1.4.4"
expo-av@~10.2.0:
version "10.2.0"
resolved "https://registry.yarnpkg.com/expo-av/-/expo-av-10.2.0.tgz#4bc4b1f409f3ad2e247586f22e4fb9e1aa666b0a"
integrity sha512-jo7Nv3IgJPAiOerKRwlL4guKkULZfvE5KIRZmgLurgPvJFHHAye4pFe2IlqQftKd66NHo1vq2zIGF3B3fsTPmw==
dependencies:
"@expo/config-plugins" "^4.0.2"
expo-barcode-scanner@~11.2.0: expo-barcode-scanner@~11.2.0:
version "11.2.0" version "11.2.0"
resolved "https://registry.yarnpkg.com/expo-barcode-scanner/-/expo-barcode-scanner-11.2.0.tgz#9d316a36962f74f117f19f7c722de1334a4fd8d2" resolved "https://registry.yarnpkg.com/expo-barcode-scanner/-/expo-barcode-scanner-11.2.0.tgz#9d316a36962f74f117f19f7c722de1334a4fd8d2"

Loading…
Cancel
Save