设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
查看: 1516|回复: 0
打印 上一主题 下一主题

[有事请教] 求一个MV的插件转MZ!

[复制链接]

Lv1.梦旅人

梦石
0
星屑
82
在线时间
14 小时
注册时间
2022-1-8
帖子
4
跳转到指定楼层
1
发表于 2022-1-26 16:23:41 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
10星屑
各路大神,能否将这个插件YSP_VideoPlayer.js转MZ支持。万分感谢!
/*:
* @plugindesc v1.0.0 Plugin used for playing video.
* @author Dr.Yami
*
* @help
* 使用脚本调用:
*   ysp.VideoPlayer.loadVideo(videoName) - 播放视频
*   ysp.VideoPlayer.releaseVideo(videoName) - 释放视频内存
*   ysp.VideoPlayer.newVideo(videoName, id) - 创建一个带有id的视频对象
*   ysp.VideoPlayer.playVideoById(id) - 按id播放视频对象
*   ysp.VideoPlayer.stopVideoById(id) - 通过id停止视频对象
*   ysp.VideoPlayer.setLoopById(id) - 让一个视频对象循环播放的id
*   ysp.VideoPlayer.getVideoById(id) - 通过id获取视频对象
*   ysp.VideoPlayer.isReady() - 检查是否所有的视频都已加载
*
* 视频对象是一个PIXI。 精灵对象,可以通过修改x和y道具重新定位  
* 要预加载一个(或多个)视频,使用loadVideo(videoName)在一个事件中跟随一个循环,
* 当isReady()返回true时打破循环  
*/

! function(t) {
    console.log(t);
    function e(r) {
        if (n[r]) return n[r].exports;
        var o = n[r] = {
            i: r,
            l: !1,
            exports: {}
        };
        return t[r].call(o.exports, o, o.exports, e), o.l = !0, o.exports
    }
    var n = {};
    e.m = t, e.c = n, e.d = function(t, n, r) {
        e.o(t, n) || Object.defineProperty(t, n, {
            configurable: !1,
            enumerable: !0,
            get: r
        })
    }, e.n = function(t) {
        var n = t && t.__esModule ? function() {
            return t.default
        } : function() {
            return t
        };
        return e.d(n, "a", n), n
    }, e.o = function(t, e) {
        return Object.prototype.hasOwnProperty.call(t, e)
    }, e.p = "", e(e.s = 35)
}([function(t, e) {
    var n = t.exports = "undefined" != typeof window && window.Math == Math ? window : "undefined" != typeof self && self.Math == Math ? self : Function("return this")();
    "number" == typeof __g && (__g = n)
}, function(t, e, n) {
    t.exports = !n(11)(function() {
        return 7 != Object.defineProperty({}, "a", {
            get: function() {
                return 7
            }
        }).a
    })
}, function(t, e, n) {
    var r = n(10),
        o = n(15);
    t.exports = n(1) ? function(t, e, n) {
        return r.f(t, e, o(1, n))
    } : function(t, e, n) {
        return t[e] = n, t
    }
}, function(t, e) {
    t.exports = function(t) {
        return "object" == typeof t ? null !== t : "function" == typeof t
    }
}, function(t, e, n) {
    var r = n(28),
        o = n(12);
    t.exports = function(t) {
        return r(o(t))
    }
}, function(t, e) {
    var n = t.exports = {
        version: "2.4.0"
    };
    "number" == typeof __e && (__e = n)
}, function(t, e, n) {
    var r = n(3);
    t.exports = function(t) {
        if (!r(t)) throw TypeError(t + " is not an object!");
        return t
    }
}, function(t, e) {
    var n = {}.hasOwnProperty;
    t.exports = function(t, e) {
        return n.call(t, e)
    }
}, function(t, e) {
    var n = Math.ceil,
        r = Math.floor;
    t.exports = function(t) {
        return isNaN(t = +t) ? 0 : (t > 0 ? r : n)(t)
    }
}, , function(t, e, n) {
    var r = n(6),
        o = n(24),
        u = n(25),
        i = Object.defineProperty;
    e.f = n(1) ? Object.defineProperty : function(t, e, n) {
        if (r(t), e = u(e, !0), r(n), o) try {
            return i(t, e, n)
        } catch (t) {}
        if ("get" in n || "set" in n) throw TypeError("Accessors not supported!");
        return "value" in n && (t[e] = n.value), t
    }
}, function(t, e) {
    t.exports = function(t) {
        try {
            return !!t()
        } catch (t) {
            return !0
        }
    }
}, function(t, e) {
    t.exports = function(t) {
        if (void 0 == t) throw TypeError("Can't call method on  " + t);
        return t
    }
}, function(t, e, n) {
    var r = n(17)("keys"),
        o = n(18);
    t.exports = function(t) {
        return r[t] || (r[t] = o(t))
    }
}, function(t, e, n) {
    var r = n(3),
        o = n(0).document,
        u = r(o) && r(o.createElement);
    t.exports = function(t) {
        return u ? o.createElement(t) : {}
    }
}, function(t, e) {
    t.exports = function(t, e) {
        return {
            enumerable: !(1 & t),
            configurable: !(2 & t),
            writable: !(4 & t),
            value: e
        }
    }
}, function(t, e) {
    var n = {}.toString;
    t.exports = function(t) {
        return n.call(t).slice(8, -1)
    }
}, function(t, e, n) {
    var r = n(0),
        o = r["__core-js_shared__"] || (r["__core-js_shared__"] = {});
    t.exports = function(t) {
        return o[t] || (o[t] = {})
    }
}, function(t, e) {
    var n = 0,
        r = Math.random();
    t.exports = function(t) {
        return "Symbol(".concat(void 0 === t ? "" : t, ")_", (++n + r).toString(36))
    }
}, function(t, e) {
    t.exports = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")
}, , function(t, e, n) {
    var r = n(0),
        o = n(5),
        u = n(22),
        i = n(2),
        c = function(t, e, n) {
            var f, a, s, p = t & c.F,
                l = t & c.G,
                d = t & c.S,
                v = t & c.P,
                y = t & c.B,
                x = t & c.W,
                h = l ? o : o[e] || (o[e] = {}),
                _ = h.prototype,
                b = l ? r : d ? r[e] : (r[e] || {}).prototype;
            l && (n = e);
            for (f in n)(a = !p && b && void 0 !== b[f]) && f in h || (s = a ? b[f] : n[f], h[f] = l && "function" != typeof b[f] ? n[f] : y && a ? u(s, r) : x && b[f] == s ? function(t) {
                var e = function(e, n, r) {
                    if (this instanceof t) {
                        switch (arguments.length) {
                            case 0:
                                return new t;
                            case 1:
                                return new t(e);
                            case 2:
                                return new t(e, n)
                        }
                        return new t(e, n, r)
                    }
                    return t.apply(this, arguments)
                };
                return e.prototype = t.prototype, e
            }(s) : v && "function" == typeof s ? u(Function.call, s) : s, v && ((h.virtual || (h.virtual = {}))[f] = s, t & c.R && _ && !_[f] && i(_, f, s)))
        };
    c.F = 1, c.G = 2, c.S = 4, c.P = 8, c.B = 16, c.W = 32, c.U = 64, c.R = 128, t.exports = c
}, function(t, e, n) {
    var r = n(23);
    t.exports = function(t, e, n) {
        if (r(t), void 0 === e) return t;
        switch (n) {
            case 1:
                return function(n) {
                    return t.call(e, n)
                };
            case 2:
                return function(n, r) {
                    return t.call(e, n, r)
                };
            case 3:
                return function(n, r, o) {
                    return t.call(e, n, r, o)
                }
        }
        return function() {
            return t.apply(e, arguments)
        }
    }
}, function(t, e) {
    t.exports = function(t) {
        if ("function" != typeof t) throw TypeError(t + " is not a function!");
        return t
    }
}, function(t, e, n) {
    t.exports = !n(1) && !n(11)(function() {
        return 7 != Object.defineProperty(n(14)("div"), "a", {
            get: function() {
                return 7
            }
        }).a
    })
}, function(t, e, n) {
    var r = n(3);
    t.exports = function(t, e) {
        if (!r(t)) return t;
        var n, o;
        if (e && "function" == typeof(n = t.toString) && !r(o = n.call(t))) return o;
        if ("function" == typeof(n = t.valueOf) && !r(o = n.call(t))) return o;
        if (!e && "function" == typeof(n = t.toString) && !r(o = n.call(t))) return o;
        throw TypeError("Can't convert object to primitive value")
    }
}, function(t, e, n) {
    var r = n(27),
        o = n(19);
    t.exports = Object.keys || function(t) {
        return r(t, o)
    }
}, function(t, e, n) {
    var r = n(7),
        o = n(4),
        u = n(29)(!1),
        i = n(13)("IE_PROTO");
    t.exports = function(t, e) {
        var n, c = o(t),
            f = 0,
            a = [];
        for (n in c) n != i && r(c, n) && a.push(n);
        for (; e.length > f;) r(c, n = e[f++]) && (~u(a, n) || a.push(n));
        return a
    }
}, function(t, e, n) {
    var r = n(16);
    t.exports = Object("z").propertyIsEnumerable(0) ? Object : function(t) {
        return "String" == r(t) ? t.split("") : Object(t)
    }
}, function(t, e, n) {
    var r = n(4),
        o = n(30),
        u = n(31);
    t.exports = function(t) {
        return function(e, n, i) {
            var c, f = r(e),
                a = o(f.length),
                s = u(i, a);
            if (t && n != n) {
                for (; a > s;)
                    if ((c = f[s++]) != c) return !0
            } else
                for (; a > s; s++)
                    if ((t || s in f) && f[s] === n) return t || s || 0; return !t && -1
        }
    }
}, function(t, e, n) {
    var r = n(8),
        o = Math.min;
    t.exports = function(t) {
        return t > 0 ? o(r(t), 9007199254740991) : 0
    }
}, function(t, e, n) {
    var r = n(8),
        o = Math.max,
        u = Math.min;
    t.exports = function(t, e) {
        return t = r(t), t < 0 ? o(t + e, 0) : u(t, e)
    }
}, , , , function(t, e, n) {
    "use strict";

    function r(t) {
        return t && t.__esModule ? t : {
            default: t
        }
    }
    var o = n(36),
        u = r(o);
    (0, r(n(42)).default)(Spriteset_Base), window.ysp = window.ysp || {}, window.ysp.VideoPlayer = u.default
}, function(t, e, n) {
    "use strict";
    Object.defineProperty(e, "__esModule", {
        value: !0
    });
    var r = n(37),
        o = function(t) {
            return t && t.__esModule ? t : {
                default: t
            }
        }(r),
        u = {},
        i = {},
        c = function(t) {
            
            //if (u[t + ".mp4"]) return u[t + ".mp4"];

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-5-9 05:33

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表