מידע על הצגה והפעלה של מדיה
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
הצגת מדיה והפעלתה שלה הפכו לרכיבים חיוניים בחוויית השימוש באפליקציות ל-Android. בין אם האפליקציה שלכם משלבת תמונות וסרטונים ובין אם היא מספקת חוויות אודיו immersive, המדיה מעשירה את האינטראקציות של המשתמשים ומגבירה את ההתעניינות באפליקציה.
אנחנו ממשיכים לפתח את ממשקי ה-API של Android כדי לצמצם את המורכבות של שילוב מדיה, תוך שיפור חוויית המשתמש והגברת השילוב והעקביות שלה. בדף הזה תוכלו למצוא מקורות מידע שיעזרו לכם להתחיל לעבוד עם ה-API ולשפר את האפליקציה.
מושגים וממשקי API מרכזיים של מדיה ב-Android
ל-Android יש ממשקי API שפועלים ברמות שונות כדי לאפשר לאפליקציה שלכם לנצל את מלוא התכונות הזמינות בחומרה ובתוכנה.
הצגת תמונות
כדי ליצור חוויית משתמש חלקה באפליקציה, חשוב לטעון תמונות באיכות הגבוהה ביותר בצורה יעילה. ריכזנו כאן כמה מקורות מידע שיעזרו לכם:
הפעלה של אודיו ווידאו וסטרימינג שלהם
Jetpack Media3 מציע תכונות מתקדמות כמו הפעלת מדיה חלקה, גלישה במדיה וניהול יעיל של משאבים. כאן תוכלו לקרוא מידע נוסף:
שדרוג האפליקציה
כדאי שהאפליקציה תתמוך בתכונות שעומדות בציפיות המשתמשים ואף עולות עליהן. אחת הדרכים לעשות זאת היא לתמוך בתכונות המדיה המתקדמות שמספקים מכשירים פרימיום. ריכזנו כאן כמה דרכים ספציפיות שיעזרו לאפליקציה שלכם לבלוט:
במדריך המלא מפורטות תכונות שאפשר להשתמש בהן כדי לשפר את חוויית הצפייה וההפעלה של המדיה ולהרשים את המשתמשים.
דוגמאות התוכן והקוד שבדף הזה כפופות לרישיונות המפורטים בקטע רישיון לתוכן. 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."]]