vs打包pc播放视频报错jsb.VideoPlayer is not a constructor

  • Creator 版本: 3.5

  • 目标平台:windows pc

  • 重现方式:播放视频

  • 首个报错:
    D/jswrapper (135): JS: [ERROR]: TypeError: jsb.VideoPlayer is not a constructor
    TypeError: jsb.VideoPlayer is not a constructor
    at VideoPlayerImplJSB.createVideoPlayer (jsb-adapter/jsb-engine.js:5088:21)
    at VideoPlayerImplJSB.syncClip (jsb-adapter/jsb-engine.js:5038:12)
    at xpe.syncSource (src/cocos-js/cc.js:3:491971)
    at xpe.__preload (src/cocos-js/cc.js:3:492039)
    at eval (eval at sP (src/cocos-js/cc.js:1:1551591), :3:65)
    at pP._invoke (src/cocos-js/cc.js:1:1551649)
    at pP.invoke (src/cocos-js/cc.js:1:1553890)
    at yP.activateNode (src/cocos-js/cc.js:1:1554624)
    at e.set active [as active] (src/cocos-js/cc.js:1:1450725)
    at P.onClickVideo (assets/main/index.js:21:3301)
    E/jswrapper (296): ERROR: Uncaught TypeError: jsb.VideoPlayer is not a constructor, location: jsb-adapter/jsb-engine.js:0:0

  • 之前哪个版本是正常的:

  • 手机型号:

  • 手机浏览器:

  • 编辑器操作系统:

  • 重现概率:

https://docs.cocos.com/creator/3.5/api/zh/class/VideoPlayer

谢谢 看见了,就挺奇怪的,cocos2dx都支持的功能怎么到了creator这反而不支持了