החל מ-27 במרץ 2025, מומלץ להשתמש ב-android-latest-release
במקום ב-aosp-main
כדי ליצור תרומות ל-AOSP. מידע נוסף זמין במאמר שינויים ב-AOSP.
מדיה
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
מודולים של מדיה מטפלים בסוגי מדיה ובקודקים, יוצרים אינטראקציה עם ExoPlayer, חושפים ל-Framework את אמצעי הבקרה על התעבורה ואת פרטי ההפעלה ומבצעים פונקציות אחרות שקשורות למדיה.
רכיבי מדיה הם יעד נפוץ למתקפות (באגים רבים באבטחה מהזמן האחרון קשורים למדיה), ולכן כדי לשפר את האבטחה, כדאי לזרז את העדכונים של באגים באבטחה ותכונות. כך ניתן לצמצם את מספר הבאגים באבטחה שאפשר לנצל במתקפות. אפשר להמשיך להרחיב את מסגרת המדיה. השותפים יכולים להמשיך להרחיב את הקודקים של המדיה ואת התוכנות לחילוץ פורמטים של מדיה.
רכיבים ומודולים של מדיה
רכיבי מדיה שניתן לעדכן קיימים במודולים הבאים.
פרטים על המודולים והרכיבים האלה מופיעים בקטע מדיה.
מודול המדיה (com.android.media
) ומודול Media Codec (com.android.media.swcodec
) נמצאים בפורמט APEX וזמינים במכשירים עם Android מגרסה 10 ואילך.
התאמה אישית
פרטים על הוספת חילוצים ומפענחים מותאמים אישית זמינים במאמר התאמה אישית של רכיבי מדיה.
דוגמאות התוכן והקוד שבדף הזה כפופות לרישיונות המפורטים בקטע רישיון לתוכן. Java ו-OpenJDK הם סימנים מסחריים או סימנים מסחריים רשומים של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-27 (שעון UTC).
[[["התוכן קל להבנה","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"]],["עדכון אחרון: 2025-07-27 (שעון UTC)."],[],[],null,["# Media modules handle media types and codecs, interact with ExoPlayer, expose\ntransport controls and playback information to the framework and perform\nother media-related functions.\n\nMedia components are a frequent target of attacks (many recent security bugs are\nmedia related), so tightening security by accelerating updates for security bugs\nand features should reduce the number of security bugs that can be exploited by\nattacks. The media framework remains extensible; partners can continue to extend\nmedia codecs and media format extractors.\n\nMedia modules and components\n----------------------------\n\nUpdatable media components exist in the following modules.\n\n- **Media module.** Includes the following media components.\n\n - Media extractors handle different types of media. Each extractor is an\n individual `.so` file with a *sniffer* function to determine whether the\n extractor can handle a given media file and a *factory* function that\n creates an instance of the extractor for that media file.\n\n - `MediaSession2` APIs allow media apps to expose their transport controls\n and playback information to other processes such as the Android framework\n and other apps.\n\n - `MediaParser` APIs (new in Android 11) allow\n ExoPlayer to make efficient use of framework media container parsers to\n extract media samples from media containers.\n\n - Compatible media transcoding (new in Android 12)\n enables the platform's compatible media transcoding feature.\n\n- **Media Codecs module.** Includes updatable software Codec2 components.\n\nFor details on these modules and components, see the\n[Media](/docs/core/media) section.\n\nModule format\n-------------\n\nThe Media module (`com.android.media`) and Media Codec module\n(`com.android.media.swcodec`) are in [APEX](/docs/core/ota/apex)\nformat and are available for devices running Android\n10 or higher.\n\nCustomization\n-------------\n\nFor details on adding custom extractors and decoders, see [Customizing Media\nComponents](/docs/core/media/updatable-media)."]]