Best practices for performance and reliability
Stay organized with collections
Save and categorize content based on your preferences.
Media apps can demand a lot of resources including memory, CPU, network
connections and hardware codecs, many of which are in short supply.
In addition, apps have to reliably manage interacting with other apps, such as
controller apps sending playback command requests or media playback starting
elsewhere in the system. This section discusses best practices for making sure
that users can rely on your app to perform well and as expected.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2023-08-23 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-08-23 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)"]]