(function(global, factory) {
  typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && define.amd ? define(["exports"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global.__VEPLAYER_BIZ_VOD__ = {}));
})(this, function(exports2) {
  "use strict";
  const load = window["VePlayer"].load;
  const register = window["VePlayer"].register;
  const DynamicModule = window["VePlayer"].DynamicModule;
  const VePlayerBase = window["VePlayer"].VePlayerBase;
  const setModuleSystem = window["VePlayer"].setModuleSystem;
  const registerPlugin = window["VePlayer"].registerPlugin;
  setModuleSystem("umd");
  async function createVodPlayer(options) {
    return await VePlayerBase.create({
      url: "//sf1-cdn-tos.huoshanstatic.com/obj/media-fe/xgplayer_doc_video/mp4/xgplayer-demo-360p.mp4",
      ...options
    });
  }
  if (typeof VePlayer.register !== "undefined") {
    VePlayer.registerPlugin(DynamicModule.BizVod, {
      createVodPlayer
    });
  } else {
    registerPlugin(DynamicModule.BizVod, {
      createVodPlayer
    });
  }
  exports2.createVodPlayer = createVodPlayer;
  exports2.load = load;
  exports2.register = register;
});
