mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-27 01:21: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-libmedia
|
||||
|
||||
libmedia proxy for ArtPlayer
|
||||
|
||||
## Demo
|
||||
|
||||
[https://artplayer.org](https://artplayer.org/?libs=./uncompiled/artplayer-proxy-libmedia/index.js&example=libmedia)
|
||||
|
||||
## License
|
||||
|
||||
MIT © Harvey Zack
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"license": "MIT",
|
||||
"version": "1.0.0",
|
||||
"name": "artplayer-proxy-libmedia",
|
||||
"types": "types/artplayer-proxy-libmedia.d.ts",
|
||||
"description": "libmedia proxy for ArtPlayer",
|
||||
"main": "dist/artplayer-proxy-libmedia.js",
|
||||
"legacy": "dist/artplayer-proxy-libmedia.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 artplayerProxyLibmedia(option) {
|
||||
return (art) => {
|
||||
return document.createElement('video');
|
||||
};
|
||||
}
|
||||
|
||||
if (typeof window !== 'undefined') {
|
||||
window['artplayerProxyLibmedia'] = artplayerProxyLibmedia;
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
import type Artplayer from 'artplayer';
|
||||
|
||||
export = artplayerProxyLibmedia;
|
||||
export as namespace artplayerProxyLibmedia;
|
||||
|
||||
type Option = {
|
||||
//
|
||||
};
|
||||
|
||||
type Result = {
|
||||
name: 'artplayerProxyLibmedia';
|
||||
};
|
||||
|
||||
declare const artplayerProxyLibmedia: (option: Option) => (art: Artplayer) => Result;
|
||||
Reference in new issue
Block a user