diff --git a/components/NativeVideoPlayer.tsx b/components/NativeVideoPlayer.tsx index 753d8b3..3931be7 100644 --- a/components/NativeVideoPlayer.tsx +++ b/components/NativeVideoPlayer.tsx @@ -1,6 +1,6 @@ -import React, { useRef, useState } from 'react'; +import React from 'react'; import { View, StyleSheet, Dimensions } from 'react-native'; -import { Video, ResizeMode, AVPlaybackStatus } from 'expo-av'; +import { WebView } from 'react-native-webview'; const { width } = Dimensions.get('window'); const VIDEO_HEIGHT = width * 0.5625; @@ -9,23 +9,36 @@ interface Props { uri: string; } +const buildHtml = (uri: string) => ` + + + + + + + + + + + +`; + export function NativeVideoPlayer({ uri }: Props) { - const videoRef = useRef