NGUP915
V2EX  ›  问与答

react + vedio.js 解码 265 格式无法引入 videojs-contrib-hls

  •  
  •   NGUP915 · May 10, 2024 · 1164 views
    This topic created in 742 days ago, the information mentioned may be changed or developed.

    只要一引入这段代码,运行就会报错

    import 'videojs-contrib-hls'
    
    

    报错如下:

    runtime.js:39 Uncaught ReferenceError: arguments is not defined
        at eval (index.js:3:1)
        at 30443 (vendors.js:25100:1)
        at options.factory (runtime.js:700:31)
        at __webpack_require__ (runtime.js:36:33)
        at fn (runtime.js:358:21)
        at eval (flash-source-buffer.js:46:1)
        at 23240 (vendors.js:24244:1)
        at options.factory (runtime.js:700:31)
        at __webpack_require__ (runtime.js:36:33)
        at fn (runtime.js:358:21)
    

    尝试降低版本( vediojs 、videojs-contrib-hls 均降低),也不行

    NGUP915
        1
    NGUP915  
    OP
       May 10, 2024
    求助
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2423 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 00:35 · PVG 08:35 · LAX 17:35 · JFK 20:35
    ♥ Do have faith in what you're doing.