Giter VIP home page Giter VIP logo

Comments (8)

xfangfang avatar xfangfang commented on August 15, 2024

【switch版B站客户端终于稳定啦,耗时半年解决了那一个关键的bug】 【精准空降到 10:47】 https://www.bilibili.com/video/BV1xM411C7kr/?share_source=copy_web&vd_source=e5f8f52ed6023559ceaa6a1f7fb2a454&t=647

from wiliwili.

Leadrive avatar Leadrive commented on August 15, 2024

@xfangfang 刚才没说清楚,我是在LINUX下运行的,确实没找到哪个快捷键。播放页面中也没有。麻烦指点一二,谢谢!

from wiliwili.

xfangfang avatar xfangfang commented on August 15, 2024

@Leadrive 上面的视频中有关于快捷键的详细说明,直接点链接进去就是了。

from wiliwili.

Leadrive avatar Leadrive commented on August 15, 2024

@xfangfang 看到视频说了,长按右摇杆是快进,对应到键盘上,是哪个键呢?

from wiliwili.

xfangfang avatar xfangfang commented on August 15, 2024

1F4F67C4-5972-4B48-9DD1-8E277C711439

这个并不是为桌面用户制作的客户端,如果有其他需求欢迎为项目提交pr

from wiliwili.

xfangfang avatar xfangfang commented on August 15, 2024

@Leadrive 稍微更新了一下代码添加了几个按键映射,具体内容可以看:#47

播放页面按 P 可以倍速,不过目前的倍速设定是2倍速,如果需要自定义倍速,可以fork项目,将下列代码中的 set speed 2.0 改成自己想要的值(当时临时实现的这个功能,所以需要改好几个地方),提交代码之后Github actions就会自动编译了。

switch (click_state) {
case ClickState::IDLE:
if (state.buttons[BUTTON_RSB]) {
mpvCore->command_str("set speed 2.0");
rsb_press_time = getCPUTimeUsec();
click_state = ClickState::PRESS;
}
break;
case ClickState::PRESS:
if (!state.buttons[BUTTON_RSB]) {
mpvCore->command_str("set speed 1.0");
int64_t current_time = getCPUTimeUsec();
if (current_time - rsb_press_time < CHECK_TIME) {
// 点击事件
brls::Logger::debug("点击");
rsb_press_time = current_time;
click_state = ClickState::FAST_RELEASE;
} else {
click_state = ClickState::IDLE;
}
}
break;
case ClickState::FAST_RELEASE:
if (state.buttons[BUTTON_RSB]) {
mpvCore->command_str("set speed 2.0");
int64_t current_time = getCPUTimeUsec();
if (current_time - rsb_press_time < CHECK_TIME) {
rsb_press_time = current_time;
click_state = ClickState::FAST_PRESS;
} else {
rsb_press_time = current_time;
click_state = ClickState::PRESS;
}
}
break;
case ClickState::FAST_PRESS:
if (!state.buttons[BUTTON_RSB]) {
int64_t current_time = getCPUTimeUsec();
if (current_time - rsb_press_time < CHECK_TIME) {
rsb_press_time = current_time;
// 双击事件
mpvCore->command_str("set speed 2.0");
click_state = ClickState::CLICK_DOUBLE;
} else {
mpvCore->command_str("set speed 1.0");
click_state = ClickState::IDLE;
}
}
break;
case ClickState::CLICK_DOUBLE:
brls::Logger::debug("speed lock: 2.0");
click_state = ClickState::IDLE;
break;
}

from wiliwili.

Leadrive avatar Leadrive commented on August 15, 2024

@xfangfang 非常感谢,这个感觉是基本功能,希望后续能完善一下,最好能在播放界面选择。

from wiliwili.

xfangfang avatar xfangfang commented on August 15, 2024

感觉用官方的客户端会更好一些,功能也更多。
这个主要是满足switch用户的基本需求,提供其他平台客户端的自动构建更多的是保证每一次提交代码都能正常编译,同时也方便潜在的开发者上手提交pr,而不是作为官方客户端的替代品。
还是希望有需求自己来改,同时欢迎给项目提交pr,目前的结果已经是我日常可以使用的程度啦,可能一时半会不会添加新功能。

from wiliwili.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.