code: function rebuildPlayer({ snow, river, city }) {
    window.player && !window.player.destroyed && window.player.destroy();
    const Chimee = window.Chimee;
    const snowSwitch = {
      name: 'snow-switch',
      el: '<button>snow switch</button>',
      create() {
        this.$dom.addEventListener('click', () => {
          this.$silentLoad(snow, { repeatTimes: 5, increment: 2 });
        });
      },
    };
    const riverSwitch = {
      name: 'river-switch',
      el: '<button>river switch</button>',
      create() {
        this.$dom.addEventListener('click', () => {
          this.$silentLoad(river, { repeatTimes: 5, increment: 2 });
        });
      },
    };
    const citySwitch = {
      name: 'city-switch',
      el: '<button>city switch</button>',
      create() {
        this.$dom.addEventListener('click', () => {
          this.$silentLoad(city, { repeatTimes: 5, increment: 2 });
        });
      },
    };
    Chimee.install(snowSwitch);
    Chimee.install(riverSwitch);
    Chimee.install(citySwitch);
    Chimee.installKernel({
      flv: window.chimeeKernelFlv,
      hls: window.chimeeKernelHls,
    });
    const player = new Chimee({
      src: snow,
      box: needFlv ? 'flv' : 'hls',
      wrapper: '#wrapper',
      plugin: [ 'citySwitch', 'riverSwitch', 'snowSwitch' ],
      volume: 0.1,
      kernels: [ 'flv', 'hls' ],
      isLive: true,
      autoplay: true,
      controls: true,
    });
  
    window.player = player;
  
  }
docs: alert(11);