ตั้งแต่วันที่ 27 มีนาคม 2025 เป็นต้นไป เราขอแนะนำให้ใช้ android-latest-release
แทน aosp-main
เพื่อสร้างและมีส่วนร่วมใน AOSP โปรดดูข้อมูลเพิ่มเติมที่หัวข้อการเปลี่ยนแปลงใน AOSP
สื่อ
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
โมดูลสื่อจัดการประเภทสื่อและตัวแปลงรหัส โต้ตอบกับ ExoPlayer แสดงการควบคุมการนําส่งและข้อมูลการเล่นต่อเฟรมเวิร์ก และดําเนินการฟังก์ชันอื่นๆ ที่เกี่ยวข้องกับสื่อ
คอมโพเนนต์สื่อมักตกเป็นเป้าหมายของการโจมตี (ข้อบกพร่องด้านความปลอดภัยจำนวนมากเมื่อเร็วๆ นี้เกี่ยวข้องกับสื่อ) ดังนั้นการเพิ่มความเข้มงวดด้านความปลอดภัยโดยการเร่งอัปเดตข้อบกพร่องด้านความปลอดภัยและฟีเจอร์ต่างๆ ควรช่วยลดจำนวนข้อบกพร่องด้านความปลอดภัยที่ผู้โจมตีอาจใช้ประโยชน์ได้ เฟรมเวิร์กสื่อยังคงขยายได้ พาร์ทเนอร์จะขยายตัวแปลงรหัสสื่อและโปรแกรมแยกรูปแบบสื่อต่อไปได้
โมดูลและคอมโพเนนต์ของสื่อ
คอมโพเนนต์สื่อที่อัปเดตได้อยู่ในโมดูลต่อไปนี้
ดูรายละเอียดเกี่ยวกับข้อบังคับและคอมโพเนนต์เหล่านี้ได้ที่ส่วนสื่อ
โมดูลสื่อ (com.android.media
) และโมดูลตัวแปลงรหัสสื่อ (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)."]]