メディアの表示と再生について
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
メディアの表示と再生は、Android アプリのエクスペリエンスに欠かせない要素となっています。アプリに画像や動画を統合する場合でも、没入感のある音声エクスペリエンスを提供する場合でも、メディアはユーザー インタラクションを豊かにし、アプリのエンゲージメントを高めます。
Android では、メディアの統合の複雑さを最小限に抑えながら、ユーザー エクスペリエンスを統合し、一貫性を保つために API を継続的に進化させています。このページでは、アプリの開始とレベルアップに役立つリソースを紹介します。
主な Android メディア API とコンセプトを理解する
Android には、さまざまなレベルで動作する API があり、アプリで利用可能なハードウェア機能とソフトウェア機能を最大限に活用できます。
画像の表示
アプリでスムーズなユーザー エクスペリエンスを構築するには、最高品質の画像を効率的に読み込むことが重要です。役立つリソースは次のとおりです。
音声と動画の再生とストリーミング
Jetpack Media3 には、シームレスなメディア再生、メディア ブラウジング、効率的なリソース管理などの高度な機能が用意されています。詳細:
アプリをレベルアップする
アプリには、ユーザーの期待に応え、それを上回る機能をサポートする必要があります。そのための 1 つの方法は、プレミアム デバイスが提供する高度なメディア機能をサポートすることです。アプリを目立たせるための具体的な方法をいくつかご紹介します。
メディアの表示と再生のエクスペリエンスを次のレベルに引き上げ、ユーザーを感動させるために検討すべき機能については、ガイド全体をご覧ください。
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。Java および OpenJDK は Oracle および関連会社の商標または登録商標です。
最終更新日 2025-03-26 UTC。
[null,null,["最終更新日 2025-03-26 UTC。"],[],[],null,["# About media display and playback\n\nMedia display and playback have become essential components of the Android app\nexperience. Whether your app integrates images and videos or delivers immersive\naudio experiences, media enriches user interactions and elevates app engagement.\n\nAndroid continues to evolve APIs to minimize the complexity of integrating media\nwhile making the user experience more integrated and consistent, and this page\nconnects you to resources to both help you get started and level up your app.\n\nKnow key Android media APIs and concepts\n----------------------------------------\n\nAndroid has APIs that work at different levels to allow your app to make the\nmost of the available hardware and software features.\n\n### Display images\n\nLoading the highest-quality images efficiently is key to building a smooth user\nexperience in your app. Here are some resources that will help:\n\n- [Loading images from local resources](/develop/ui/compose/graphics/images/loading)\n- [Loading images from a remote server](/develop/ui/compose/graphics/images/loading#internet-loading)\n- [Loading Large Bitmaps Efficiently](/topic/performance/graphics/load-bitmap)\n- [Displaying images in UltraHDR](/media/grow/ultra-hdr/display)\n\n### Playback and stream audio and video\n\n[Jetpack Media3](/media/media3) offers advanced features such as seamless media playback,\nmedia browsing, and efficient resource management. Learn more:\n\n- [Live-streaming](/media/media3/exoplayer/live-streaming)\n- [Downloading media](/media/media3/exoplayer/downloading-media)\n- [Playback controls and player UI](/media/media3/ui/overview)\n- [Background playback](/media/media3/session/background-playback)\n\nLevel up your app\n-----------------\n\nYou'll want your app to support features that meet and surpass user\nexpectations. One way to do that is to support the advanced media features\nprovided by premium devices. Here are some specific ways to help your app stand\nout:\n\n- Support [UltraHDR](/media/grow/ultra-hdr-display) images and [HDR](/media/grow/hdr-playback) video\n- Enable [picture-in-picture](/develop/ui/views/picture-in-picture) for video and audio playback\n- Implement [Cast Connect](https://developers.google.com/cast/docs/android_tv_receiver) so users can cast to your native Android TV app\n- Use [Performance Class](/topic/performance/performance-class) to adapt your user experience around device capabilities\n\nSee the [full guide](/social-and-messaging/guides/media-display/basic-better-best) for features to consider to take your media display and\nplayback experience to the next level and impress your users."]]