# media3

Android media libraries and APIs for implementing playback, media sessions, and media editing in apps.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Scrcpy 5.0 adds hardware decoding for Android mirroring

DevFeed: [Scrcpy 5.0 adds hardware decoding for Android mirroring](<https://devfeed.tech/articles/scrcpy-5-0-adds-hardware-decoding-for-android-mirroring-65436.md>)

Original publisher: [Read original article](<https://www.omgubuntu.co.uk/2026/10/scrcpy-hardware-decoding-added>)

Author: Joey Sneddon

Published: 2026-10-06T15:24:29Z

Content type: news

Language: en

Sources: [OMG! Ubuntu](<https://devfeed.tech/sources/omg-ubuntu.md>)

Topics: [media3](<https://devfeed.tech/topics/media3.md>), [LineageOS](<https://devfeed.tech/topics/lineageos.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [news](<https://devfeed.tech/tags/news.md>), [performance](<https://devfeed.tech/tags/performance.md>), [release](<https://devfeed.tech/tags/release.md>), [scrcpy](<https://devfeed.tech/tags/scrcpy.md>), [zero-copy](<https://devfeed.tech/tags/zero-copy.md>)

### AI overview

Scrcpy 5.0 adds zero-copy hardware decoding for Android screen mirroring to desktop, enabled by default. Benchmarks cited in the article show up to a tenfold reduction in host CPU usage. The release also adds broader audio capture, consistent video color filtering during scaling, keyboard fixes, and Android device selection through the ANDROID_SERIAL environment variable in OTG mode.

### Source excerpt

Scrcpy, the open-source tool for mirroring your Android phone on your desktop, now supports zero-copy hardware decoding in its latest release. You're reading Scrcpy 5.0 adds hardware decoding for Android mirroring, a blog post from OMG! Ubuntu. Do not reproduce elsewhere without permission.

## Watch Apps: One Codebase, Two Real Applications

DevFeed: [Watch Apps: One Codebase, Two Real Applications](<https://devfeed.tech/articles/watch-apps-one-codebase-two-real-applications-19666.md>)

Original publisher: [Read original article](<https://www.codenameone.com/blog/watch-apps-phone-channel/>)

Author: Shai Almog

Published: 2026-08-22T00:00:00Z

Content type: tutorial

Language: en

Sources: [CodeName One](<https://devfeed.tech/sources/codename-one.md>)

Topics: [SwiftUI](<https://devfeed.tech/topics/swiftui.md>), [Android](<https://devfeed.tech/topics/android.md>), [media3](<https://devfeed.tech/topics/media3.md>), [SQLite](<https://devfeed.tech/topics/sqlite.md>), [API](<https://devfeed.tech/topics/api.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [api](<https://devfeed.tech/tags/api.md>), [apk](<https://devfeed.tech/tags/apk.md>), [apple](<https://devfeed.tech/tags/apple.md>), [apple-watch](<https://devfeed.tech/tags/apple-watch.md>), [asynchronous](<https://devfeed.tech/tags/asynchronous.md>), [files](<https://devfeed.tech/tags/files.md>), [release](<https://devfeed.tech/tags/release.md>), [sqlite](<https://devfeed.tech/tags/sqlite.md>), [state](<https://devfeed.tech/tags/state.md>), [swiftui](<https://devfeed.tech/tags/swiftui.md>), [watchos](<https://devfeed.tech/tags/watchos.md>)

### AI overview

Codename One can build Apple Watch companion applications and Wear OS applications from a shared watch entry point. The article explains separate application runtimes and storage, platform-specific rendering, and asynchronous communication for live messages, replicated state, and file transfers.

### Source excerpt

Codename One now builds Apple Watch companions and standalone Wear OS products from one watch entry point, with a portable asynchronous API for messages, state, and files.

## Media3 1.11 - What's new?

DevFeed: [Media3 1.11 - What's new?](<https://devfeed.tech/articles/media3-1-11-what-s-new-4238.md>)

Original publisher: [Read original article](<https://android-developers.googleblog.com/2026/08/media3-1-11-whats-new.html>)

Author: Android Developers (noreply@blogger.com)

Published: 2026-08-11T16:00:00Z

Content type: article

Language: en

Sources: [Android Developers](<https://devfeed.tech/sources/android-developers-blog.md>)

Topics: [media3](<https://devfeed.tech/topics/media3.md>), [Android](<https://devfeed.tech/topics/android.md>), [Jetpack Compose](<https://devfeed.tech/topics/jetpack-compose.md>), [Playback](<https://devfeed.tech/topics/playback.md>), [API](<https://devfeed.tech/topics/api.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [api](<https://devfeed.tech/tags/api.md>), [audio](<https://devfeed.tech/tags/audio.md>), [compose](<https://devfeed.tech/tags/compose.md>), [exoplayer](<https://devfeed.tech/tags/exoplayer.md>), [features](<https://devfeed.tech/tags/features.md>), [jetpack](<https://devfeed.tech/tags/jetpack.md>), [media](<https://devfeed.tech/tags/media.md>), [media3](<https://devfeed.tech/tags/media3.md>), [playback](<https://devfeed.tech/tags/playback.md>), [video](<https://devfeed.tech/tags/video.md>)

### AI overview

Media3 1.11 adds customizable Jetpack Compose player layouts, gesture-based playback controls, reactive state holders, short-form video preloading and player recycling, Cast improvements, a Ktor HTTP client extension, and Ogg/WAV muxing utilities.

### Source excerpt

Posted by Toni Heidenreich, Software Engineer, Android Media3 1.11 is out. Powering the vast majority of top Android media apps, this release brings new features, bug fixes, and improvements across playback, editing, and UI components. We're expanding our Jetpack Compose UI modules with customizable Player slots and easy to use defaults, interactive gestures, state observers, and short-form video preloading using PlayerPool. We also modernized the Media3 Cast integration with SystemUI Output Switcher support, introduced a new Ktor HTTP client network extension, and added new muxing utilities for Ogg and WAV files. Read on for key highlights, and check out the full release notes for a comprehensive list of changes. Playback UI and Compose With Android becoming Compose-first, we are continuing to expand the media3-ui-compose and media3-ui-compose-material3 modules. This update introduces more granular control over your player layout, richer interaction patterns, and deeper integration with Material3. Customizable Player layout The Material 3 Player Composable now supports dedicated content slots for topControls, centerControls, bottomControls, and errorOverlay. You can drop in your own Composables or use the ready-made defaults published in PlayerDefaults: Player( player = player, topControls = { PlayerDefaults.TopControls(player) }, centerControls = { PlayerDefaults.CenterControls(player) }, bottomControls = { PlayerDefaults.BottomControls(player) }, ) The Player Composable also integrates FocusRequester support, enabling seamless D-pad and keyboard navigation on Android TV, foldables, and desktop environments. Example for a Composable Player with customized controls Gestures and playback speed control PlaybackSpeedState now provides a fast-forward/slow-motion API. The demo-compose app showcases this with a long-press gesture to fast-forward playback and seeking with double tap. Combined with the ProgressSlider introduced in 1.10, the Compose player UI now offers ric

## jetc.dev Newsletter Issue #324

DevFeed: [jetc.dev Newsletter Issue #324](<https://devfeed.tech/articles/jetc-dev-newsletter-issue-324-22956.md>)

Original publisher: [Read original article](<https://jetc.dev/issues/324.html>)

Author: CommonsWare

Published: 2026-07-28T14:00:00Z

Content type: article

Language: en

Sources: [Jetc](<https://devfeed.tech/sources/jetc-dev-issues.md>)

Topics: [Jetpack Compose](<https://devfeed.tech/topics/jetpack-compose.md>), [multiplatform](<https://devfeed.tech/topics/multiplatform.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [Web Accessibility (a11y)](<https://devfeed.tech/topics/web-accessibility.md>), [Playwright](<https://devfeed.tech/topics/playwright.md>), [media3](<https://devfeed.tech/topics/media3.md>), [ExoPlayer](<https://devfeed.tech/topics/exoplayer.md>)

Tags: [accessibility](<https://devfeed.tech/tags/accessibility.md>), [compose](<https://devfeed.tech/tags/compose.md>), [compose-multiplatform](<https://devfeed.tech/tags/compose-multiplatform.md>), [dev](<https://devfeed.tech/tags/dev.md>), [exoplayer](<https://devfeed.tech/tags/exoplayer.md>), [media3](<https://devfeed.tech/tags/media3.md>), [playwright](<https://devfeed.tech/tags/playwright.md>), [testing](<https://devfeed.tech/tags/testing.md>)

### AI overview

jetc.dev Newsletter Issue #324 reviews recent Jetpack Compose and Media3 updates, highlights Kotlin and Compose guidance, and presents resources for Compose Multiplatform testing, accessibility scanning, dockable panels, charting, and photo editing.

### Source excerpt

PinnableContainer! End-to-end testing! Accessibility scanner! Docked panels! Photo editing! And... do we *really* need Canvas() everywhere?!?

## Now in Android #121

DevFeed: [Now in Android #121](<https://devfeed.tech/articles/now-in-android-121-22675.md>)

Original publisher: [Read original article](<https://medium.com/androiddevelopers/now-in-android-121-ddfe076c9884?source=rss----95b274b437c2---4>)

Author: Daniel Galpin

Published: 2025-10-20T22:09:39Z

Content type: article

Language: en

Sources: [Android Developers](<https://devfeed.tech/sources/android-developers-medium.md>)

Topics: [Android](<https://devfeed.tech/topics/android.md>), [now-in-android](<https://devfeed.tech/topics/now-in-android.md>), [Android Studio](<https://devfeed.tech/topics/android-studio.md>), [Jetpack Compose](<https://devfeed.tech/topics/jetpack-compose.md>), [media3](<https://devfeed.tech/topics/media3.md>), [migration](<https://devfeed.tech/topics/migration.md>), [Web Accessibility (a11y)](<https://devfeed.tech/topics/web-accessibility.md>), [Bluetooth LE](<https://devfeed.tech/topics/bluetooth-le.md>), [Dark Mode](<https://devfeed.tech/topics/dark-mode.md>), [iOS](<https://devfeed.tech/topics/ios.md>), [pdf](<https://devfeed.tech/topics/pdf.md>)

Tags: [accessibility](<https://devfeed.tech/tags/accessibility.md>), [android](<https://devfeed.tech/tags/android.md>), [android-16](<https://devfeed.tech/tags/android-16.md>), [android-studio](<https://devfeed.tech/tags/android-studio.md>), [bluetooth-le](<https://devfeed.tech/tags/bluetooth-le.md>), [featured](<https://devfeed.tech/tags/featured.md>), [ios](<https://devfeed.tech/tags/ios.md>), [jetpack-compose](<https://devfeed.tech/tags/jetpack-compose.md>), [media](<https://devfeed.tech/tags/media.md>), [migration](<https://devfeed.tech/tags/migration.md>), [now-in-android](<https://devfeed.tech/tags/now-in-android.md>), [pdf](<https://devfeed.tech/tags/pdf.md>)

### AI overview

This edition of Now in Android covers Android 16 QPR2 Beta 1, Android Studio Narwhal's feature drop, Jetpack Compose 1.9, Media3 1.8, and related Android development updates. It highlights new platform APIs and changes involving accessibility, data migration between Android and iOS, PDF editing, media, Bluetooth LE Audio, and connectivity.

### Source excerpt

Compose 1.9, Media 3 1.8, QPR2 Beta 1, Narwhal Feature Drop, and more! Welcome to Now in Android, your ongoing guide to what's new and notable in the world of Android development. Read on for coverage of Android 16 QPR2 beta 1, the Android Studio Narwhal feature drop, Jetpack Compose 1.9, Media 3 1.8, Shape Morphing and Autofill in Compose, and much more. You can watch a video summary: https://medium.com/media/87a24ed0bca13b2d58bd3e59517b4273/href And we also have a podcast: https://medium.com/media/ef0552e532d340d1dd8ced3c6b6d85c5/href But this post has the most in-depth information, so read on! Android 16 QPR2 Beta 1 is here ✨ The first beta of Android 16 QPR2 is now available, the inaugural Android release with an Android minor SDK version. Minor SDK versions can include new APIs that extend platform features but cannot introduce targetSdkVersion gated behavior changes, minimizing the amount you need to test your apps against it. You can call new APIs by checking SDK_INT_FULL against the VERSION_CODES_FULL enumeration: if (Build.VERSION.SDK_INT_FULL >= Build.VERSION_CODES_FULL.BAKLAVA_1) { // Call new APIs from the Android 16 QPR2 release } VERSION_CODES_FULL cannot be used in uses-sdk manifest attributes. Here are some key updates from QPR2 Beta 1. UI, System Experience, and Accessibility: An expanded dark theme option intelligently inverts light apps for users preferring a dark appearance. Auto-themed app icons can be generated by the system if your app doesn't provide a monochrome layer. Interactive chooser sessions keep your app UI active while the sharesheet is open, using ChooserManager and ChooserSession. A new Data Transfer API enables more reliable and secure data migration between Android and iOS, requiring updates to your app's data extraction rules XML and BackupAgent implementation. The android.graphics.pdf package has expanded to support annotating and editing PDF documents via PdfRenderer.Page. ViewConfiguration values are now tailored to individua

## Now in Android #119

DevFeed: [Now in Android #119](<https://devfeed.tech/articles/now-in-android-119-22673.md>)

Original publisher: [Read original article](<https://medium.com/androiddevelopers/now-in-android-119-7b86ad2b3e81?source=rss----95b274b437c2---4>)

Author: Meghan Mehta

Published: 2025-07-09T17:02:38Z

Content type: article

Language: en

Sources: [Android Developers](<https://devfeed.tech/sources/android-developers-medium.md>)

Topics: [Android](<https://devfeed.tech/topics/android.md>), [software-development](<https://devfeed.tech/topics/software-development.md>), [Jetpack](<https://devfeed.tech/topics/jetpack.md>), [UiAutomator](<https://devfeed.tech/topics/uiautomator.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [cameraX](<https://devfeed.tech/topics/camerax.md>), [now-in-android](<https://devfeed.tech/topics/now-in-android.md>), [media3](<https://devfeed.tech/topics/media3.md>), [Macrobenchmark](<https://devfeed.tech/topics/macrobenchmark.md>), [aosp](<https://devfeed.tech/topics/aosp.md>)

Tags: [2025](<https://devfeed.tech/tags/2025.md>), [adaptive](<https://devfeed.tech/tags/adaptive.md>), [android](<https://devfeed.tech/tags/android.md>), [android-16](<https://devfeed.tech/tags/android-16.md>), [android-development](<https://devfeed.tech/tags/android-development.md>), [apis](<https://devfeed.tech/tags/apis.md>), [apps](<https://devfeed.tech/tags/apps.md>), [camera](<https://devfeed.tech/tags/camera.md>), [desktop](<https://devfeed.tech/tags/desktop.md>), [featured](<https://devfeed.tech/tags/featured.md>), [google-i-o](<https://devfeed.tech/tags/google-i-o.md>), [navigation](<https://devfeed.tech/tags/navigation.md>), [notifications](<https://devfeed.tech/tags/notifications.md>), [now-in-android](<https://devfeed.tech/tags/now-in-android.md>), [release](<https://devfeed.tech/tags/release.md>), [testing](<https://devfeed.tech/tags/testing.md>)

### AI overview

Android 16 is available on supported Pixel devices, with source code published in the Android Open Source Project. Highlights include expanded camera and UltraHDR support, progress-style notifications, AGSL runtime color effects, and predictive back previews for three-button navigation. Apps targeting Android 16 must use edge-to-edge layouts; the release also changes system handling of orientation, resizability and aspect-ratio limits. At Google I/O 2025, developer updates included libraries for building adaptive apps across form factors, a redesigned UiAutomator API and other performance tools, plus CameraX, Media3Effects and Google Low-Light Boost for media experiences. The supplied text is an excerpt and does not provide details on the other topics named in the edition's introduction.

### Source excerpt

Android 16, Desktop Experiences, Adaptive Apps, Testing Videos, AndroidX and more! Welcome to Now in Android, your ongoing guide to what's new and notable in the world of Android development. In this edition we will cover Android 16, Desktop Experiences, Adaptive Apps, Testing Videos, AndroidX and more! https://medium.com/media/e5e1b0709e27441479904677742b5c3e/hrefhttps://medium.com/media/91590868757d125ca9ea41b7f1260065/href Most of the content of this post is available in the form of a video or podcast, so feel free to watch or listen rather than read on. (Or do all three to help you remember! There won't be a quiz.) Android 16 is here 🤖 Android 16 is released and available on supported Pixel devices, with new devices to follow. The source code is available at the Android Open Source Project. Key updates include: Enhanced camera and media APIs for pro users, with night mode scene detection, hybrid auto exposure and precise color temperature adjustments. Improved UltraHDR image support with HEIC encoding and an embedded photo picker. Apps targeting Android 16 can no longer opt-out of going edge-to-edge Changes to how the system manages orientation, resizability, and aspect ratio restrictions. System animations for back-to-home, cross-task, and cross-activity by default. In addition, this release extends predictive back navigation to three-button navigation, meaning that users long-pressing the back button will see a glimpse of the previous screen before navigating back. Progress style notifications which lets you create progress-centric notifications that can denote states and milestones in a user journey using points and segments. RuntimeColorFilter and RuntimeXfermode, allowing you to author complex effects like Threshold, Sepia, and Hue Saturation in AGSL and apply them to draw calls. Android 16 is here Top 3 updates for building excellent, adaptive apps at Google I/O '25 🤖 At Google I/O 2025, several advancements were announced for Android, including the rollou

## Now in Android #118 -- Google I/O 2025 Part II

DevFeed: [Now in Android #118 -- Google I/O 2025 Part II](<https://devfeed.tech/articles/now-in-android-118-google-i-o-2025-part-ii-22672.md>)

Original publisher: [Read original article](<https://medium.com/androiddevelopers/now-in-android-118-google-i-o-2025-part-ii-0176766c2061?source=rss----95b274b437c2---4>)

Author: Daniel Galpin

Published: 2025-06-18T17:01:42Z

Content type: news

Language: en

Sources: [Android Developers](<https://devfeed.tech/sources/android-developers-medium.md>)

Topics: [Jetpack Compose](<https://devfeed.tech/topics/jetpack-compose.md>), [Android](<https://devfeed.tech/topics/android.md>), [cameraX](<https://devfeed.tech/topics/camerax.md>), [media3](<https://devfeed.tech/topics/media3.md>), [Web Accessibility (a11y)](<https://devfeed.tech/topics/web-accessibility.md>), [Kotlin](<https://devfeed.tech/topics/kotlin.md>), [LiteRT](<https://devfeed.tech/topics/litert.md>)

Tags: [2025](<https://devfeed.tech/tags/2025.md>), [accessibility](<https://devfeed.tech/tags/accessibility.md>), [android](<https://devfeed.tech/tags/android.md>), [android-development-tools](<https://devfeed.tech/tags/android-development-tools.md>), [camera](<https://devfeed.tech/tags/camera.md>), [complex](<https://devfeed.tech/tags/complex.md>), [compose](<https://devfeed.tech/tags/compose.md>), [featured](<https://devfeed.tech/tags/featured.md>), [gemini](<https://devfeed.tech/tags/gemini.md>), [google-i-o](<https://devfeed.tech/tags/google-i-o.md>), [google-io-2025](<https://devfeed.tech/tags/google-io-2025.md>), [google-maps](<https://devfeed.tech/tags/google-maps.md>), [google-play](<https://devfeed.tech/tags/google-play.md>), [high-performance](<https://devfeed.tech/tags/high-performance.md>), [jetpack](<https://devfeed.tech/tags/jetpack.md>), [jetpack-compose](<https://devfeed.tech/tags/jetpack-compose.md>), [kmp](<https://devfeed.tech/tags/kmp.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [kotlin-multiplatform](<https://devfeed.tech/tags/kotlin-multiplatform.md>), [maps](<https://devfeed.tech/tags/maps.md>), [media](<https://devfeed.tech/tags/media.md>), [now-in-android](<https://devfeed.tech/tags/now-in-android.md>)

### AI overview

The excerpt highlights Google I/O 2025 Android updates, with specific Compose additions: autofill, auto-sizing text, visibility tracking, animated layout bounds, and accessibility checks in tests. Navigation 3 is a new Compose-first navigation library in alpha, intended to give developers more control over complex flows. Compose support for CameraX and Media3 aims to simplify adding camera capture and video playback to UIs. Android Studio Narwhal canary adds resizable previews, improved preview navigation, and Gemini-assisted preview generation and UI transformation. The excerpt also points to sessions on Compose text input, accessibility, and video workflows using CameraX and Media3 with LiteRT; it does not provide the details or outcomes of those sessions.

### Source excerpt

Now in Android #118 -- Google I/O 2025 Part IICompose, Camera and Media, Accessibility ,KMP, Tools, Maps, AndroidX, Google Home, integrating the web, Google Play, and more Welcome to part two of a special Google I/O 2025 edition of Now in Android, your ongoing guide to what's new and notable in Android development. This second edition covers the latest from Jetpack Compose, Camera and Media, Accessibility ,Kotlin Multiplatform, Android development tools, Google Maps, AndroidX, Google Home with Gemini, integrating web functionality, Google Play, and more. Part one included coverage of Material Expressive, watches, cars, tablets, laptops, connected displays, the latest in adaptive app development, XR development, taking advantage of on-device and cloud based AI, and Android 16. https://medium.com/media/ac4b380d9ad7f761525349fa12cc14a0/href Now in Android: 118 - What's new in Android development at Google I/O 2025 (part 2) Most of the content of this post is available in the form of a video or podcast, so feel free to watch or listen rather than read on. (Or do all three to help you remember! There won't be a quiz.) Jetpack Compose 💻 Jetpack Compose introduced new features, including autofill support, auto-sizing text, visibility tracking, the animate bounds modifier, and accessibility checks in tests, and that's just the beginning of what's new: animateBounds provides automatic animations of a Composable's position and size within a LookaheadScope, while visibility tracking is used when you need high-performance information on a composable's position in its root container, screen, or window. For more on autofill, autosize, and the new state based TextField, check out the "Mastering text input in Compose" talk. https://medium.com/media/9d6173df81f8e842f25b25f0a406c606/href Navigation 3 is a brand new, Compose-first navigation library, now in alpha that's designed to give you greater control while simplifying building complex navigation flows. Announcing Jetpack Navigati

## Interpreting voice results for Android media apps in cars

DevFeed: [Interpreting voice results for Android media apps in cars](<https://devfeed.tech/articles/interpreting-voice-results-for-android-media-apps-in-cars-25891.md>)

Original publisher: [Read original article](<https://proandroiddev.com/interpreting-voice-results-for-android-media-apps-in-cars-f36d7bdb26e1?source=rss-1331e67af4e1------2>)

Author: Danny Preussler

Published: 2022-01-10T21:33:42Z

Content type: tutorial

Language: en

Sources: [Danny Preussler](<https://devfeed.tech/sources/stories-by-danny-preussler-on-medium.md>)

Topics: [Android Auto](<https://devfeed.tech/topics/android-auto.md>), [Android](<https://devfeed.tech/topics/android.md>), [media3](<https://devfeed.tech/topics/media3.md>), [Android Testing](<https://devfeed.tech/topics/android-testing.md>)

Tags: [actions](<https://devfeed.tech/tags/actions.md>), [android](<https://devfeed.tech/tags/android.md>), [android-app-development](<https://devfeed.tech/tags/android-app-development.md>), [android-auto](<https://devfeed.tech/tags/android-auto.md>), [androiddev](<https://devfeed.tech/tags/androiddev.md>), [cars](<https://devfeed.tech/tags/cars.md>), [google-assistant](<https://devfeed.tech/tags/google-assistant.md>), [integration](<https://devfeed.tech/tags/integration.md>), [media](<https://devfeed.tech/tags/media.md>), [voice](<https://devfeed.tech/tags/voice.md>)

### AI overview

For Android Auto media searches, the excerpt reports that Assistant calls `MediaSessionCompat.Callback.onPlayFromSearch()` with the remaining query, but the documented `MediaStore.EXTRA_MEDIA_FOCUS` check does not distinguish artist, album, or track: it says the received focus is always `vnd.android.cursor.item/*`. The suggested workaround is to read the non-null `EXTRA_MEDIA_ARTIST`, `EXTRA_MEDIA_ALBUM`, and `EXTRA_MEDIA_TITLE` values from the callback bundle to identify the requested entities. The author notes the cause is unclear and recommends testing the implementation, since documented behavior may not match reality.

### Source excerpt

When working on the Android Auto integration for SoundCloud, I stumbled upon an interesting issue. When it comes to implementing voice actions, things you read in the documentation might differ a bit from reality. Voice commands are very critical while driving a car. You want the driver to keep looking at the street, keep his hands on the steering wheel, instead of interacting with any screen. This is why when building for Android Auto, Automotive OS, and Assistant Driving Mode you have to support basic voice searches. For a music app like ours, the idea is simple. A user can say something like: "Play Moderat on SoundCloud" Under the hood The Assistant will break down our sentence for interpretation: "<Play> <Moderat> <on SoundCloud>" The verb (Play) and the app (SoundCloud) in the above command were meant for the system. It will then wake up the app mentioned (if it declared auto support via manifest) and, as we asked for verb "Play", the method MediaSessionCompat.Callback.onPlayFromSearch() will be called with the remaining query ("Moderat") as the argument. This query of "what to play" can still mean different things though. How do you know if Moderat is a band or a song? Don't worry, the Assistant will help us also here. It already got some idea what our query could mean, if we asked for an artist, an album, or a specific track. But be aware, it behaves slightly differently than officially documented. According to documentation we are supposed to write code like this: val mediaFocus = extras?.getString(MediaStore.EXTRA_MEDIA_FOCUS) if (mediaFocus == MediaStore.Audio.Artists.ENTRY_CONTENT_TYPE) { isArtistFocus = true artist = extras.getString(MediaStore.EXTRA_MEDIA_ARTIST) We are suppose to check for a bundle entry with the key MediaStore.EXTRA_MEDIA_FOCUS . This will give us a hint on how best to interpret the query. The value of the constant MediaStore.EXTRA_MEDIA_ARTIST checked above is vnd.android.cursor.item/artist and there are similar constants related to

## Video playback in LazyColumn in Jetpack Compose

DevFeed: [Video playback in LazyColumn in Jetpack Compose](<https://devfeed.tech/articles/video-playback-in-lazycolumn-in-jetpack-compose-25900.md>)

Original publisher: [Read original article](<https://proandroiddev.com/video-playback-in-lazycolumn-in-jetpack-compose-df355097f26e?source=rss-56174fa84bcc------2>)

Author: Denys Rudenko

Published: 2021-10-05T23:51:23Z

Content type: tutorial

Language: en

Sources: [Denis Rudenko](<https://devfeed.tech/sources/stories-by-denis-rudenko-on-medium.md>)

Topics: [ExoPlayer](<https://devfeed.tech/topics/exoplayer.md>), [Jetpack Compose](<https://devfeed.tech/topics/jetpack-compose.md>), [media3](<https://devfeed.tech/topics/media3.md>), [Image](<https://devfeed.tech/topics/image.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [android-app-development](<https://devfeed.tech/tags/android-app-development.md>), [androiddev](<https://devfeed.tech/tags/androiddev.md>), [coil](<https://devfeed.tech/tags/coil.md>), [compose](<https://devfeed.tech/tags/compose.md>), [exoplayer](<https://devfeed.tech/tags/exoplayer.md>), [jetpack-compose](<https://devfeed.tech/tags/jetpack-compose.md>), [lifecycle](<https://devfeed.tech/tags/lifecycle.md>), [playback](<https://devfeed.tech/tags/playback.md>), [restore](<https://devfeed.tech/tags/restore.md>), [save](<https://devfeed.tech/tags/save.md>), [video](<https://devfeed.tech/tags/video.md>)

### AI overview

The excerpt describes a Jetpack Compose video list using ExoPlayer for playback and Coil for thumbnails. A VideosScreen tracks the playing item; stable LazyColumn keys help preserve item state, and each video's last playback position is saved so it can be restored. Tapping the play/pause control starts or pauses the selected video, while LaunchedEffect runs playback changes when the selected index changes. DisposableEffect observes app lifecycle events to pause playback in the background and release the player and observer when the screen leaves composition. A snapshotFlow over LazyListState detects whether the playing card is visible and pauses it when it scrolls off-screen. The auto-playback variant selects the first or last item at list boundaries and otherwise plays the item closest to the center. The supplied text does not include the complete code samples.

### Source excerpt

Article will cover both manual & auto-playback of videos in an efficient way, storing/restoring last played video position, pausing playback if video card is not visible to the user and handling application lifecycle. ExoPlayer will be used for video playback, and these videos as a test data set. Coil will be used for displaying the video thumbnails. Video shows manual play/pause & auto-playback versions side to side. https://medium.com/media/98ab3ea482f78b96bf44de2ce54c7168/hrefStep 1: VideosScreen Let's start implementing all of those features step by step. First we create a composable which will contain the exoPlayer instance, list of videos and playingItemIndex: https://medium.com/media/2440139ad1f185b8d1f1446f844530b9/href Very important part here is using keys for the lazyColumn. In short: we provide a key which enables item state to be consistent across data-set changes isPlaying -- we can always know if video is playing or not. If it's playing -- playingItemIndex will represent the position of the item in the list, if nothing is playing -- null. We need this field to know if we should show play/pause icon, and thumbnail image or playerView. VideoCard -- composable which exposes click event on play/pause icon. Click will be handled inside the viewModel. Notice that we're passing current playback position from exoPlayer as well as the index of clicked item. We'll use it to save & restore the playback position for each video. https://medium.com/media/518600644bbec8f225a0c4b933adccd1/href Whenever the play/pause icon is clicked, we're checking for three scenarios: currentlyPlayingIndex is null -- video is not playing at the moment, so we are assigning the videoIndex to currentlyPlayingIndex. currentlyPlayingIndex is the same as videoIndex clicked -- this means that the same video is already playing, and we want to pause the playback. That's why we assign null to currentlyPlayingIndex. To store the last played video position we're mutating list, and saving the position

## Storing Network Responses With Apollo Normalized Cache

DevFeed: [Storing Network Responses With Apollo Normalized Cache](<https://devfeed.tech/articles/storing-network-responses-with-apollo-normalized-cache-22839.md>)

Original publisher: [Read original article](<http://androidessence.com/storing-network-responses-with-apollo-normalized-cache/>)

Author: Adam McNeilly

Published: 2021-02-05T00:00:00Z

Content type: tutorial

Language: en

Sources: [Android Essence](<https://devfeed.tech/sources/android-essence.md>)

Topics: [Cache](<https://devfeed.tech/topics/cache.md>), [SQLite](<https://devfeed.tech/topics/sqlite.md>), [Database](<https://devfeed.tech/topics/database.md>), [media3](<https://devfeed.tech/topics/media3.md>), [Persistence](<https://devfeed.tech/topics/persistence.md>), [Code](<https://devfeed.tech/topics/code.md>), [configuration](<https://devfeed.tech/topics/configuration.md>), [debugging](<https://devfeed.tech/topics/debugging.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [cache](<https://devfeed.tech/tags/cache.md>), [code](<https://devfeed.tech/tags/code.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [graphql](<https://devfeed.tech/tags/graphql.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [http](<https://devfeed.tech/tags/http.md>), [library](<https://devfeed.tech/tags/library.md>), [network](<https://devfeed.tech/tags/network.md>), [persistence](<https://devfeed.tech/tags/persistence.md>), [sqlite](<https://devfeed.tech/tags/sqlite.md>)

### AI overview

A tutorial on Apollo Android's normalized cache for storing network response data by ID. It explains in-memory and SQLite-backed caches, cache chaining, persistence across application sessions, and cache management and debugging.

### Source excerpt

In our previous post we looked at the HTTP cache from Apollo Android for storing network responses. In this post, we look at its counter part, the normalized cache.