Skip to content
This repository was archived by the owner on Dec 4, 2025. It is now read-only.
This repository was archived by the owner on Dec 4, 2025. It is now read-only.

播放视频闪退 #118

@LLLLLuuusa

Description

@LLLLLuuusa

描述 / Description

我们在调用视频库时发生了闪退,具体日志如下:
Image
根据调试我们发现@react-native-oh-tpl/react-native-video/RNCVideo.ts的onVideoLoadStart该函数在调用ctx.rnInstance.emitComponentEvent的时候,this.descriptor.rawProps.src.isNetwork传递过来的参数为空值,不知道是否因为这里产生的问题

Image

这是我们的案例:

Image

复现步骤 / Steps to reproduce

1.rnoh版本:rnoh-react-native-harmony-0.72.27
2.rn版本:react-native": "0.72.5",
3.简单调用视频库:
import Video from 'react-native-video'; <Video source={{ uri: "https://videocdn.hulizhushou.com/o_1ic5bm2uq1obi10ba1ogv1sp51btr7.480_2.mp4" }} // 从 props 获取视频源 style={{ width: '100%', height: 200 }} />

库版本 / Library version

5.2.1-0.2.38

React Native OpenHarmony version

0.72.5

构建类型 / Build type

None

设备 / Device

Simulator

设备版本 / Device model

模拟器

已悉知 / Acknowledgements

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions