reactjs 无法在react应用程序上使用本地托管的视频

jgwigjjp  于 2023-02-15  发布在  React
关注(0)|答案(1)|浏览(181)

我正在使用一个视频作为react的背景,在视频加载后,服务器停止,我得到这个消息,我尝试了2个不同的库有一个playeer和html标签的视频,我得到相同的消息一遍又一遍,没有语法错误的实际标签,因为改变网址与youtube视频工程完美的罚款

throw er; // Unhandled 'error' event
      ^

TypeError: Cannot set property closed of #<Readable> which has only a getter
    at FsReadStream.close (C:x
\node_modules\memfs\lib\volume.js:2047:17)
    at FsReadStream._destroy (C:\x\node_modules\memfs\lib\volume.js:2032:10)
    at _destroy (node:internal/streams/destroy:109:10)
    at class_1.destroy (node:internal/streams/destroy:71:5)     
    at class_1.<anonymous> (C:\x\node_modules\memfs\lib\volume.js:1962:22)
    at class_1.emit (node:events:539:35)
    at endReadableNT (node:internal/streams/readable:1344:12)   
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Emitted 'error' event on class_1 instance at:
    at emitErrorNT (node:internal/streams/destroy:151:8)        
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)   
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)```

相关问题