Files
ArtPlayer/packages/artplayer-proxy-webav/package.json
T
Harvey Zack 8613164368 refactor: Update loadedTime and playing getters in Artplayer
The code changes update the loadedTime and playing getters in Artplayer to handle different scenarios. The loadedTime getter now checks for the presence of the loadedTime property in the video element and returns it if available, otherwise it falls back to the previous logic of retrieving the buffered end time. Similarly, the playing getter now checks for the presence of the playing property in the video element and returns it if available, otherwise it falls back to the previous logic of determining if the video is playing based on its current time, paused state, ended state, and ready state. These updates improve the reliability and compatibility of Artplayer's loadedTime and playing functionality.
2024-08-21 21:56:08 +08:00

28 lines
704 B
JSON

{
"license": "MIT",
"version": "1.0.0",
"name": "artplayer-proxy-webav",
"types": "types/artplayer-proxy-webav.d.ts",
"description": "webav proxy for ArtPlayer",
"main": "dist/artplayer-proxy-webav.js",
"legacy": "dist/artplayer-proxy-webav.legacy.js",
"author": "Harvey Zack <laozhaochaguan@gmail.com>",
"browserslist": "last 1 Chrome version",
"homepage": "https://artplayer.org",
"repository": {
"type": "git",
"url": "git+https://github.com/zhw2590582/ArtPlayer.git"
},
"bugs": {
"url": "https://github.com/zhw2590582/ArtPlayer/issues"
},
"keywords": [
"html5",
"video",
"player"
],
"dependencies": {
"@webav/av-cliper": "^0.14.14"
}
}