-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
添加新组件“视频页默认定位”(videoDefaultLocation) #2960
Merged
the1812
merged 14 commits into
the1812:preview-features
from
timongh:feat-default-location
Feb 13, 2022
Merged
添加新组件“视频页默认定位”(videoDefaultLocation) #2960
the1812
merged 14 commits into
the1812:preview-features
from
timongh:feat-default-location
Feb 13, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
我有点担心,我弄的这几个按钮,用户会不会搞不懂它们的用法? 本来想多写点简介把用法写清楚;但是简介多了就难看了,用户要是一打开面板就看见一大堆字,估计连看下去的欲望都没有了。 |
简介就是把用法写清楚的地方, 长一点没关系. class 建议用具体一些的名称, 即使是使用 scoped, b 站的样式依然能够产生影响 |
先别合并,我还想再研究一下等待加载的逻辑。再优化优化 |
突然想到,视频页面、番剧页面等各个页面,都是不一样的。全部使用同一个默认位置不太合理。 似乎原来的“播放器定位”的逻辑才是正确的。应该按照播放器定位,而不是页面顶部定位。 所以我白写了?🤔 |
你可以先限制为只对视频生效 |
Ok,功能方面写完了。但关于内部的 ExtendBox,还有一部分样式没写:
不过最近写这个写累了,近期可能都不想再改了,就这样先合并了吧。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
与“播放器定位”组件的关系
新组件与原来的“播放器定位”(playerFocus)是差不多的。但“播放器定位”的缺点是:
总的来说就是:在未使用其他插件时,“播放器定位”开箱即用,比较方便。但与其他功能配合时,自定义比较麻烦。
新组件介绍
新组件同样是用于播放器定位,但添加了比较灵活的自定义方式。下面是其使用演示:
org.mp4