Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

播放器控制按钮不显示 #7

Closed
BraveSLC opened this issue May 5, 2023 · 1 comment
Closed

播放器控制按钮不显示 #7

BraveSLC opened this issue May 5, 2023 · 1 comment

Comments

@BraveSLC
Copy link

BraveSLC commented May 5, 2023

版本:
"react": "17.x",
"typescript": "^4.1.2",
"xgplayer-react": "^2.4.0"

问题:
使用官方示例,视频播放器下方控制按钮不显示,包括:暂停、音量、全屏等。

复现:
运行官方示例:

import Xgplayer from 'xgplayer-react';

let config = {
  id: 'mse',
  fluid: true,
  videoInit: true,
  url: '***',
  playsinline: true,
};
let Player = null;

<Xgplayer config={config} playerInit={(player) => { Player = player; }} />

@BraveSLC
Copy link
Author

BraveSLC commented May 5, 2023

已解决,样式被 bootstrap theme.css 覆盖了

@BraveSLC BraveSLC closed this as completed May 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant