mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-08 19:06:15 -08:00
- Added a check in the Artplayer constructor to throw an error if instantiated outside a browser environment. - Updated the isBrowser utility to ensure both window and document are defined. - Removed unused user agent checks for WeChat, IE, and Android from compatibility utilities. - Updated TypeScript definitions to reflect the removal of unused properties. - Added a basic test case for Artplayer initialization in SSR context.
9 lines
208 B
JavaScript
9 lines
208 B
JavaScript
import Artplayer from '../packages/artplayer/dist/artplayer.js'
|
|
|
|
console.log(Artplayer.default.html)
|
|
|
|
const art = new Artplayer.default({
|
|
container: '.artplayer-app',
|
|
url: './assets/sample/video.mp4',
|
|
})
|