How aliyunvideo/aliyunplayer_web works
Project type and purpose
• This is a monorepo of front-end demo apps for the ApsaraVideo Player SDK (“AliyunPlayer_Web”). It contains multiple standalone demos (Vue, React, jQuery, custom components, live/VOD, multi-platform, WeChat mini-program) that showcase how to integrate and extend the ApsaraVideo Player with features like playlists, ads, danmu (comments), adaptive bitrate, MQTT‐based comments, etc.
File structure
• Top level:
• customComponents/ – demo of custom HTML5 player components
• H5VodVueDemo/ – Vue + Vite demo for VOD
• h5VodDemo/ – jQuery/Webpack + Gulp VOD demo
• h5LiveDemo/ – jQuery/Webpack + Gulp live‐streaming demo
• h5VodReactDemo/ – React + UmiJS demo for VOD
• multiPlatformLiveDemo/ – jQuery/Webpack multi-platform (PC & mobile) live+VOD demo
• vod-mini-program/ – WeChat Mini Program demo
• Root build configs & README
• Each demo has:
• src/ or disk/ – source or built static assets
• build scripts (webpack.config*, gulpfile.js, build_customize.sh)
• package.json, .babelrc, tsconfig* or .umirc.ts
README insights
• Each demo is standalone. They all load the ApsaraVideo Player JS/CSS, fetch video streams from the Aliyun CDN, and optionally connect to an MQTT broker (mqttws31.js) for comments/likes. Some use Babel+Webpack4, one uses Vite, one uses UmiJS, one uses the WeChat Mini Program SDK.
Capturing essential architectural elements
• On the right, list external services: Player SDK, Aliyun CDN, MQTT Broker, WeChat Runtime