feat(player): 添加播放时间格式切换功能 by MoYingJi · Pull Request #680 · imsyy/SPlayer

Summary of Changes

Hello @MoYingJi, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

此拉取请求的核心目的是增强用户对播放器时间显示的控制能力。通过引入可切换和可配置的时间格式选项,用户可以更灵活地查看当前播放进度、剩余时间或总时长,从而提升了播放器的用户体验和个性化设置。这一改动使得时间显示不再是单一固定模式,而是能够根据用户需求动态调整。

Highlights

  • 播放时间格式切换功能: 为播放器添加了播放时间格式切换功能,用户现在可以根据个人喜好选择不同的时间显示方式。
  • 可配置的时间显示: 在播放器底部栏和全屏播放页面,用户可以通过点击时间显示区域来快速切换时间格式,也可以在设置页面进行详细配置。
  • 新增时间格式设置项: 在播放设置中新增了“播放器时间样式”和“底栏时间样式”选项,允许用户选择“播放时间 / 总时长”、“剩余时间 / 总时长”或“播放时间 / 剩余时间”三种格式。
  • 时间格式工具函数: 引入了新的工具函数 getTimeDisplay 和相关类型,以统一和简化播放时间在不同组件中的显示逻辑。
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.