From c9c62d3e48c46410c2635aadce8b985b1a7b0ef8 Mon Sep 17 00:00:00 2001 From: Developer Date: Fri, 6 Mar 2026 14:52:28 +0800 Subject: [PATCH] 1 --- components/NativeVideoPlayer.tsx | 47 +++++++---- components/VideoPlayer.tsx | 5 +- fixbug.md | 134 +++++++++++++++++++++++++++++++ services/bilibili.ts | 33 ++++++-- 4 files changed, 193 insertions(+), 26 deletions(-) create mode 100644 fixbug.md 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