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

适配新版番剧页面 #4007

Closed
timewind82 opened this issue Feb 19, 2023 · 13 comments
Closed

适配新版番剧页面 #4007

timewind82 opened this issue Feb 19, 2023 · 13 comments
Labels
adaptation 适配性改动

Comments

@timewind82
Copy link

对应功能

自定义顶栏 Commit: 156c9ce

问题描述

自定义顶栏在以网页全屏的状态下播放部分番剧时,顶栏无法随之隐藏,直接遮挡了顶部视频内容。

image

脚本版本

v2.6.2-24-g156c9ce2d

脚本管理器及版本

Tampermonkey 4.18.1

浏览器及版本

Edge 版本 110.0.1587.49

播放器版本

3.26.1-7452583b

播放策略

AVC

错误信息

附加截图

No response

@the1812
Copy link
Owner

the1812 commented Feb 19, 2023

哪个番剧, 我随便找了个是没问题的

@timewind82
Copy link
Author

timewind82 commented Feb 19, 2023

目前我碰到的稳定复现的是EVA:https://www.bilibili.com/bangumi/play/ep29857

包括后续的剧场版比如EVA的Q:https://www.bilibili.com/bangumi/play/ss1640

@the1812
Copy link
Owner

the1812 commented Feb 19, 2023

image
未能复现

@the1812 the1812 added the unable-to-reproduce 无法重现此问题 label Feb 20, 2023
@homura1521
Copy link

吹响吧!上低音号 https://www.bilibili.com/bangumi/play/ss1547 也出现了
image

@the1812
Copy link
Owner

the1812 commented Feb 21, 2023

我好像明白了... 你们的是新版播放器 看底下的弹幕发送栏可以看出来
image

@timewind82
Copy link
Author

那应该是3.26.1播放器的问题,我在3.26.0-dc55d742播放器下自定义顶栏是可以正常隐藏的

@MaboroneSeika
Copy link

请问是如何更改播放器版本的?

@Adiwon
Copy link

Adiwon commented Mar 3, 2023

提供一个临时性解决方案:先把页面往下滚动一点,让顶栏消失,此时再点网页全屏按钮就好了。

@the1812 the1812 added adaptation 适配性改动 and removed unable-to-reproduce 无法重现此问题 labels Mar 5, 2023
@the1812 the1812 changed the title “自定义顶栏”功能运行不正常 适配新版番剧页面 Mar 25, 2023
@lovelyCARDINAL
Copy link
Contributor

$('.squirtle-video-pagefullscreen.squirtle-video-item.active')[0] 存在时,自定义栏必须隐藏应该可行?

@pencilqaq
Copy link
Contributor

是z-index在作祟 话说这样式是谁写的 这10001的的用意是什么
image

@pencilqaq
Copy link
Contributor

pencilqaq commented Apr 3, 2023

是z-index在作祟 话说这样式是谁写的 这10001的的用意是什么 image

知道了在普通视频页面上 z-index<=0 会被播放器挡住 z-index<=2000会被分享按钮的悬浮标签挡住(如图)
image
在番剧页面 z-index<=12 会被暂定图片和弹幕发送按钮挡住(如图)
image
image
同样在番剧页面 z-index>130 时开启网页全屏 自定义顶栏不会隐藏

@pencilqaq
Copy link
Contributor

这样来看 13<=z-index<=130 是比较合理的改动 毕竟正常人应该不会像图里那样使用 分享功能

@the1812
Copy link
Owner

the1812 commented Apr 3, 2023

是的 以前也没设多大 然后会被各种东西挡住 最后就变成这个值了
提升一下播放器网页全屏时的 z-index 就行

后来改成了检测全屏时降为 1, 所以问题出在番剧区检测全屏的逻辑 (playerModePolyfill) 挂了
image

the1812 added a commit that referenced this issue Apr 4, 2023
the1812 added a commit that referenced this issue Apr 8, 2023
the1812 added a commit that referenced this issue Apr 8, 2023
@the1812 the1812 closed this as completed Apr 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
adaptation 适配性改动
Projects
Archived in project
Development

No branches or pull requests

7 participants