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)
- flv 播放h265 视频黑屏 HOT 4
- url 配置为数组是提示不支持视频格式 HOT 8
- 进度条禁用失效 HOT 3
- uniapp接入西瓜视频播放器字幕按钮难点击 以及 iOS H5环境一点击播放就进入设备自带的全屏模式
- 播放器在matebook系列笔记本中进度条无法点击
- > 如果是这样配置则可以显示视频请求,但是 http 状态ma码 是206,还是无法播放 <img alt="image" width="1548" src="https://private-user-images.githubusercontent.com/51234167/324391263-b1acedb2-7eb5-45fe-9de4-f4b0845ad457.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTM5MzU2NjcsIm5iZiI6MTcxMzkzNTM2NywicGF0aCI6Ii81MTIzNDE2Ny8zMjQzOTEyNjMtYjFhY2VkYjItN2ViNS00NWZlLTlkZTQtZjRiMDg0NWFkNDU3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA0MjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNDI0VDA1MDkyN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTc1MWJmZDA2MTc5MzI2YTM4YWFlNDJkZWJjMzVlMjBhY2M1ZjNiY2ZmMTMwYjFhODVkYTY4NjkyYTE2MzU1YmMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.wBmQ2UUWuQ--4xyIsz7fyLbkhemiDGOyJ-CdoMiynXc">
- 官网示例代码 playBackrate 拼写错误 HOT 1
- 无法使用播放实例直接调用截图功能 HOT 1
- 华为 麦芒 20 5G - “解码错误,请重试” HOT 6
- 如何播放ws-flv直播流 HOT 4
- 最新版本的播放器支持webcodecs吗? HOT 1
- url为数组,视频格式为hls,如何配置才能播放 HOT 1
- Events.PlAY 这个事件触发不了 HOT 1
- xgplayer在苹果iPad的微信浏览器上无法观看hls直播(在safiri浏览器上可以看)
- 能支持header里面添加授权吗,token直接放URL有泄漏的风险 HOT 1
- edge浏览器不能播放hls格式的视频,chrome可以 HOT 1
- Mp4Plugin播放没有音频轨的视频报错 HOT 1
- 苹果手机在微信内置浏览器打开h5后播放器音量设置未生效 HOT 4
- 移动端第一次单击进入一定要先进入聚焦状态,然后单击暂停单击播放才能生效果吗 HOT 1
- mobile插件 开启长按倍速调整 手指轻微移动该事件就结束了 怎么解决 HOT 1
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.