mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-27 09:41:20 -08:00
refactor: Update video element in Artplayer to support custom canvas or video
This commit is contained in:
1 parent
7fa69a7de8
commit
7f6c9c8ee1
27 files changed
+326
-287
No files matched your search
@@ -0,0 +1,11 @@
|
||||
# artplayer-proxy-webav
|
||||
|
||||
webav proxy for ArtPlayer
|
||||
|
||||
## Demo
|
||||
|
||||
[https://artplayer.org](https://artplayer.org/?libs=./uncompiled/artplayer-proxy-webav/index.js&example=webav)
|
||||
|
||||
## License
|
||||
|
||||
MIT © Harvey Zack
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"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"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
export default function artplayerProxyWebAV(option) {
|
||||
return (art) => {
|
||||
return document.createElement('video');
|
||||
};
|
||||
}
|
||||
|
||||
if (typeof window !== 'undefined') {
|
||||
window['artplayerProxyWebAV'] = artplayerProxyWebAV;
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
import type Artplayer from 'artplayer';
|
||||
|
||||
export = artplayerProxyWebAV;
|
||||
export as namespace artplayerProxyWebAV;
|
||||
|
||||
type Option = {
|
||||
//
|
||||
};
|
||||
|
||||
type Result = {
|
||||
name: 'artplayerProxyWebAV';
|
||||
};
|
||||
|
||||
declare const artplayerProxyWebAV: (option: Option) => (art: Artplayer) => Result;
|
||||
Reference in new issue
Block a user