Comments (4)
能贴一下你的tsconfig么?
from xgplayer.
@leonardoFu
全局tsconfig:
{
"compilerOptions": {
"module": "commonjs",
"target": "es5",
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"noEmitHelpers": false,
"noImplicitAny": false,
"sourceMap": true,
"declaration": true,
"rootDir": "aot",
"outDir": "dist",
"lib": [
"es6",
"dom"
],
"typeRoots": [
"./node_modules/@types"
]
},
"files": [
"aot/index.ts"
],
"exclude": [
"node_modules",
"src",
"example"
],
"angularCompilerOptions": {
"genDir": "./aot/factories"
}
}
还有一个在某个目录下的tsconfig:
{
"compilerOptions": {
"baseUrl": "tsconfig",
"declaration": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"lib": [
"es6",
"dom"
],
"mapRoot": "./",
"module": "es6",
"moduleResolution": "node",
"outDir": "../dist1/out-tsc",
"sourceMap": true,
"target": "es5",
"typeRoots": [
"../node_modules/@types"
]
}
}
实际使用是这两个tsconfig合并起来的
from xgplayer.
The module should be imported in typescript using
import * as Player from 'xgplayer';
rather than
import Player from 'xgplayer';
from xgplayer.
@zhangxin92 好的,谢谢。
from xgplayer.
Related Issues (20)
- 动态设置poster图片链接不生效? HOT 3
- 截图插件改进建议,否则真心不好用 HOT 1
- Failed to execute 'appendBuffer' on 'SourceBuffer': The SourceBuffer is full, and cannot free space to append additional buffers. HOT 2
- 播放本地视频问题 HOT 1
- 最新版本的xgplayer可以支持jquery使用吗?不使用VUE HOT 1
- iOS 17 以上,使用西瓜视频播放器播放 mp3,无法真正全屏,好像只撑满父盒子,iOS 16是好的 HOT 1
- xgplayer-react 不更新了么,我看了下现在xgplayer-react 的版本还是2.18.0 HOT 1
- 移动端视频点击播发后progress进度条会回退0~1s,你们的官网也有出现该问题。 HOT 1
- 在播放完当前视频后,使用playNext切换下一集,页面初始时显示“重播”按钮。 HOT 1
- Uncaught TypeError: Cannot read properties of null (reading 'currentURL') HOT 2
- Danmu组件panel参数设置无效
- 支持flv和mp4播放,progress进度条出不来 HOT 1
- MP4插件播放视频在ios浏览器未自动降级
- 如何取消画面中 播放/暂停 的动画 HOT 1
- 升级依赖版本后导致自定义皮肤报错的问题
- 插件 xgplayer-hls 中,处理的 subtitleStream 丢失了 前100个切片
- 对应的错误码,官网文档找不到
- 移动端加载问题
- 播放编码h265的flv流,一直加载
- 设置了loop为true之后,Events.ENDED无法接收 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xgplayer.