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

怎么修改播放器css样式?查了api,没有暴露classname和style 。 #272

Open
pxim opened this issue Apr 22, 2022 · 7 comments
Open

Comments

@pxim
Copy link

pxim commented Apr 22, 2022

💬 Questions and Help

怎么修改播放器css样式?
查了api,没有暴露classname和style。

用的最新版本。

@ambar
Copy link
Collaborator

ambar commented Apr 22, 2022

未开放样式定制,你可以考虑用 layerContent 实现自己的定制或者说明一下需要定制是什么。

@pxim
Copy link
Author

pxim commented Apr 24, 2022

image
就是改 控制栏 ,中间的 播放,暂停 大按钮 样式;调整 控制栏 按钮 顺序等

@pxim
Copy link
Author

pxim commented Apr 24, 2022

image
我现在是这样改的,只是这种 随机数的 classname,让我很没有安全感

@ambar
Copy link
Collaborator

ambar commented Apr 26, 2022

按钮顺序不可调整。你可以实现自己的控制条。
其他考虑使用 props 控制(如 hideCover)。

@pxim
Copy link
Author

pxim commented Apr 26, 2022

hideCover

好的,谢谢

layerContent, 这个有用法案例么,不太清理这个api的具体含义

@ambar
Copy link
Collaborator

ambar commented Apr 26, 2022

layerContent 就是用来加覆盖层的,比如 layerContent={<MyLogo />} —— 我们内部有些案例,不过没完全实现过控制条,你可以尝试一下。

@pxim
Copy link
Author

pxim commented Apr 26, 2022

layerContent 就是用来加覆盖层的,比如 layerContent={<MyLogo />} —— 我们内部有些案例,不过没完全实现过控制条,你可以尝试一下。

这样呀,那我试一下,谢谢了

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

2 participants