cocos creator 2.3.3版本,VideoPlayer加载缓存中的视频播放不了

3D版本怎么没有VideoPlayer这个控件了呀

怎么用videoplayer播放url中的mp4资源呀

可以把 resource Type 改成 remote,然后输入远程视频地址。

老铁,你的问题解决了吗

可以自定义引擎解决,将 engine/cocos2d/videoplayer/CCVideoPlayer.js 中的 clip 相关代码改成如下内容:(前提是 native 播放引擎支持播放本地链接的视频)

        clip: {
            tooltip: CC_DEV && 'i18n:COMPONENT.videoplayer.video',
            get: function () {
                return this._clip;
            },
            set: function (value) {
                if ((typeof value) === 'string') {
                    this._clip = {nativeUrl: value};
                } else {
                    this._clip = value;
                }
                // this._clip = value;
                this._updateVideoSource();
            },
            type: cc.Asset
        },

请问 这问题你解决了么

已找到问题
使用的Cocos版本 2.4.8 (2.3.3 及以上版本应该类似)
Cocos端代码

cc.assetManager.loadRemote(path, cc.Asset, async (err, res) => {
                    if(err) {
                        return
                    } else {
                        videoPlayer.resourceType = cc.VideoPlayer.ResourceType.LOCAL;
                        //@ts-ignore
                        videoPlayer.clip = res;
                        videoPlayer.node.once("ready-to-play", () => callback());
                    }
                });

Android 端修改

兄弟,多谢,可以了.