cookpete / react-player

A React component for playing a variety of URLs, including file paths, YouTube, Facebook, Twitch, SoundCloud, Streamable, Vimeo, Wistia and DailyMotion
https://cookpete.github.io/react-player
MIT License
8.89k stars 1.12k forks source link

Minified React error #130 #1831

Closed jiahuamld closed 3 weeks ago

jiahuamld commented 3 weeks ago

Be sure to search for your issue before opening a new one. <ReactPlayer ref={playerRef} width={'100%'} height={'520px'} url={D.video.videoUrl} playing={D.isPlaying} // controls // onPlay={() => setD((draft) => ({ ...draft, isPlaying: true }))} onEnded={() => { console.log('视频播放已完成') // 当前的视频数据 接口设置学完 记录学习进度等 }} />

Current Behavior

image

Expected Behavior

Steps to Reproduce

1. 1. 1.

Environment

Other Information

jiahuamld commented 3 weeks ago

import ReactPlayer from 'react-player'

jiahuamld commented 3 weeks ago

当这个组件渲染时 报错130

luwes commented 3 weeks ago

duplicate of #1746