TV 上的播放控件
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
视频播放是电视上最重要的功能之一。Android TV 中各应用中的视频播放器必须具有相同的行为。以下是有关视频播放器控件在 Android TV 上应如何运作的建议。
摘要
按钮 |
操作 |
中锋 |
播放或暂停 |
右单按 |
快进 +N 秒 |
左单按 |
快退 -N 秒 |
按住右侧 |
正在向前拖动 |
按住左侧 |
调试快退 |
向上或向下滑动 |
预览信息(进度、名称等) |
播放或暂停
在播放视频或音频时,按中间的方向键按钮会暂停正在播放的媒体,并显示进度条和播放按钮等媒体播放控件(如果适用)。
图 1. 播放媒体时,按方向键中间的按钮会暂停播放。再次按下该按钮可恢复播放。
快退和快进
当视频或音频正在播放或暂停时,可通过按向左或向右方向键来控制快退和快进。快退或快进时,播放或暂停状态会保持下来。
图 2. 当用户按一次向左或向右方向键按钮时,播放会快退或快进一定秒数。
按方向键向上或向下按钮可以显示控件,但不会暂停视频。
图 3. 用户只需按向上或向下方向键按钮即可显示媒体相关信息,而无需暂停播放。
大象梦 © 2006,Blender Foundation/荷兰 Media Art Institute/www.elephantsdream.org
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-27。
[null,null,["最后更新时间 (UTC):2025-07-27。"],[],[],null,["# Playback controls on TV\n\nVideo playback is one of the most important features on TV. It's important\nthat video players in apps across Android TV behave the same. Here are the\nrecommendations on how video player controls should work on Android TV.\n\nSummary\n-------\n\n| Button | Action |\n|----------------------|-----------------------------------------|\n| Center | Play or pause |\n| Right single press | Forward +N seconds |\n| Left single press | Rewind -N seconds |\n| Press and hold right | Scrubbing forward |\n| Press and hold left | Scrubbing rewind |\n| Up or down | Peek information---progress, name, etc. |\n\n| **Important:** Refer to the [TV App quality requiments](/docs/quality-guidelines/tv-app-quality) for Media Playback before publishing.\n\nPlay or pause\n-------------\n\nWhile a video or audio is playing, pressing the center D-pad button\npauses the media that is playing and, if applicable, shows\nmedia playback controls like the progress bar and play button.\n**Figure 1.** When media is playing, pressing the center D-pad button pauses playback. Pressing the button again resumes playback.\n\nRewind and fast-forward\n-----------------------\n\n\nRewind and fast-forward are controlled by pressing the left or right D-pad\nbutton when a video or audio is playing or paused. The playing or paused state\nis maintained when rewinding or fast-forwarding.\n**Figure 2.** When the left or right D-pad button is pressed once, playback rewinds or fast-forwards by a set number of seconds.\n\nPeek information\n----------------\n\nPressing the up or down D-pad button peeks up controls but does not pause the\nvideo.\n**Figure 3.** Users can press the up or down D-pad button to show information about the media without pausing playback. Elephants dream © 2006, Blender Foundation/Netherlands Media Art Institute/www.elephantsdream.org"]]