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

调用视频API下的非B站站点功能问题 #92

Open
RainEffect opened this issue Mar 21, 2019 · 9 comments
Open

调用视频API下的非B站站点功能问题 #92

RainEffect opened this issue Mar 21, 2019 · 9 comments
Assignees
Labels
bug bug
Milestone

Comments

@RainEffect
Copy link

RT,如某网站调用视频API进行外接,但如果我启动了"设置>视频>自动播放视频"的话,那么这些调用API的视频均会立即播放!
如果同时调用多个API,那我网页声音爆炸吵(认真脸)!

这个BUG有点。。。啊~
image

个人觉得可行的修复方式:
检查window.location.host,如非bilibili站点,则关闭部分功能的直接使用,
例如:自动播放,使用默认播放器模式,自动展开弹幕列表,自动从历史记录点播放,等...
建议外接的视频API保留功能:逐帧播放。

@the1812 the1812 added the bug bug label Mar 22, 2019
@the1812 the1812 self-assigned this Mar 22, 2019
@the1812 the1812 added this to the v1.7.22 milestone Apr 2, 2019
@RainEffect
Copy link
Author

image
最新版依然没有修复利用API自动播放的问题。。。

@the1812
Copy link
Owner

the1812 commented Apr 6, 2019

外接的API是什么样的, 有测试网页吗?
我只做了分享那里<iframe>的屏蔽. 非bilibili站点的话(非*.bilibili.com)脚本也不会执行.
image

export function isEmbeddedPlayer()
{
    return location.host === "player.bilibili.com";
}

@RainEffect
Copy link
Author

示例网站:http://www.mcbbs.net/thread-780518-1-1.html

进入后两个B站播放器会同时播放,仅此。

@the1812
Copy link
Owner

the1812 commented Apr 20, 2019

现在应该不会同时播放了吧, 我在你发的网址里测试过了

@the1812 the1812 closed this as completed Apr 21, 2019
@RainEffect
Copy link
Author

RainEffect commented Jan 13, 2020

它又自动播放起来了,该处理了
实例地址:已删除

@the1812 the1812 reopened this Jan 13, 2020
@the1812
Copy link
Owner

the1812 commented Jan 13, 2020

这个网站里的本身就是设成自动播放, 即使不开脚本也是一进去就播放

@RainEffect
Copy link
Author

噢,是我没看到,抱歉。

@RainEffect
Copy link
Author

关于自动播放问题……它又回来了……
实例地址:mcbbs

使用版本:1.12.10

@RainEffect RainEffect reopened this Jun 20, 2021
@the1812
Copy link
Owner

the1812 commented Jun 21, 2021

我没在里面看到内嵌b站视频
另外, 自动播放现在由b站管理 (播放器设置里可以调), 脚本已删除此功能

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bug
Projects
None yet
Development

No branches or pull requests

2 participants