성능 및 안정성을 위한 권장사항
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
미디어 앱은 메모리, CPU, 네트워크 연결, 하드웨어 코덱을 비롯한 많은 리소스를 요구할 수 있으며, 그중 다수는 공급이 부족합니다.
또한 앱은 재생 명령어 요청을 전송하는 컨트롤러 앱이나 시스템 다른 곳에서 시작되는 미디어 재생과 같은 다른 앱과의 상호작용을 안정적으로 관리해야 합니다. 이 섹션에서는 사용자가 앱을 사용하여 예상대로 잘 작동할 수 있도록 하기 위한 권장사항을 설명합니다.
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2025-07-26(UTC)
[null,null,["최종 업데이트: 2025-07-26(UTC)"],[],[],null,["# Best practices for performance and reliability\n\nMedia apps can demand a lot of resources including memory, CPU, network\nconnections and hardware codecs, many of which are in short supply.\nIn addition, apps have to reliably manage interacting with other apps, such as\ncontroller apps sending playback command requests or media playback starting\nelsewhere in the system. This section discusses best practices for making sure\nthat users can rely on your app to perform well and as expected.\n\n- Use testing tools like the [Media Controller Test app](/media/optimize/mct) to validate your playback use-cases\n- Use a device's [performance class](/topic/performance/performance-class) level to accurately gauge device capabilities\n- Cooperate with other apps to [manage audio focus](/media/optimize/audio-focus)\n- [Measure](/media/optimize/performance/measure) your app's performance and make decisions accordingly\n- Maintain high quality when preparing to [share videos](/media/optimize/sharing)"]]