了解常见使用场景
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。

设计媒体应用时,请优先考虑以下用例。允许用户执行以下操作:
聆听已下载的媒体内容
以下示例展示了如何帮助用户收听下载的媒体内容。
用户可以从实体页面手动下载媒体项。向用户显示下载位置、进度和大小。
浏览已下载的媒体内容
当用户浏览媒体内容时,显示最近下载的媒体内容。
移除已下载的媒体内容
如果内容已经下载,请显示一项用于从设备中移除下载的媒体的操作。
选择输出设备
如果源设备是手表,请在用户开始听音乐之前提示用户选择音频输出。在用户选择输出设备后,播放媒体并在媒体控件上显示输出设备图标(例如头戴式耳机或耳机)。
没有输出的媒体播放器
系统输出切换器(对话框)
具有输出的媒体播放器
流式传输媒体
通过手表在线播放内容会消耗电池电量。当用户选择在手表上听音乐时,应用可在浏览列表中显示最近用过的下载内容,以便用户优先聆听已下载的内容。添加一个按钮,点按该按钮可将用户带到完整的下载内容列表,如下图所示。
如需了解详情,请参阅 GitHub 上的 Media Toolkit。
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-27。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-07-27。"],[],[],null,["# Explore common use cases\n\nWhen designing media apps, prioritize the following use cases. Allow users to do\nthe following:\n\n- Listen to downloaded media\n- Stream media from the watch\n\nListen to downloaded media\n--------------------------\n\nThe following examples show how to help users listen to downloaded media.\n\n### Download media\n\nUsers can manually download media items from an entity page. Show the user the\ndownload location, progress, and size. \n\n\u003cbr /\u003e\n\nEntity page\n\n\u003cbr /\u003e\n\nSize of download (Dialog)\n\n\u003cbr /\u003e\n\nDownload progress\n\n\u003cbr /\u003e\n\n### Browse downloaded media\n\nWhen the user browses media, display recently downloaded media. \n\n\u003cbr /\u003e\n\nDownloads\n\n\u003cbr /\u003e\n\nBrowse\n\n\u003cbr /\u003e\n\nEntity page\n\n\u003cbr /\u003e\n\n### Remove downloaded media\n\nIf content is already downloaded, show an action to remove the downloaded media\nfrom the device. \n\n\u003cbr /\u003e\n\nDownloaded\n\n\u003cbr /\u003e\n\nRemove download (Dialog)\n\n\u003cbr /\u003e\n\nEntity page\n\n\u003cbr /\u003e\n\n### Select output device\n\nIf the source device is the watch, prompt users to [select audio output](/training/wearables/apps/audio#prompt-the-user-to-connect-a-headset)\nbefore they start listening to music. After the user selects an output device,\nplay the media and display the output device icon---such as a headset or buds---on\nthe media controls. \n\n\u003cbr /\u003e\n\nMedia Player **without** output\n\n\u003cbr /\u003e\n\nSystem output switcher (Dialog)\n\n\u003cbr /\u003e\n\nMedia Player **with** output\n\n\u003cbr /\u003e\n\nStream media\n------------\n\nStreaming from the watch drains the battery. Prioritize downloaded content\nwhen users choose to listen on the watch by displaying recently used downloads\non the browse list. Add a button that takes users to a full list of downloads,\nas shown in the following images. \n\n\u003cbr /\u003e\n\nPrioritize downloaded content\n\n\u003cbr /\u003e\n\nDownloads button\n\n\u003cbr /\u003e\n\nDownloads list\n\n\u003cbr /\u003e\n\nFor more information, see the [Media Toolkit](https://github.com/google/horologist/tree/main/media) on GitHub."]]