集成

第一步、package.json添加依赖库

  • @extscreen/es3-player
  • @extscreen/es3-audio-service-player

第二步、集成ESPlayer

点击查看详细

第三步、集成ESAudioServicePlayer

main.ts中集成

import { createESAudioServicePlayer } from "@extscreen/es3-audio-service-player";

const audioServicePlayer = createESAudioServicePlayer();
app.use(audioServicePlayer);

Source

Docs