Postingan

Menampilkan postingan dengan label Media

Playing nicely with media controls

Gambar
Posted by Don Turner - Developer Advocate - Android Media In Android 11 we've made it easier than ever for users to control media playback. This is achieved with three related features: media controls, playback resumption and seamless transfer. This article will explain what these features are, how they work together and how you can take advantage of them in your apps. Media Controls Android 11's media controls are found below the Quick Settings panel and represent a dedicated persistent space for controlling media playback. Media controls in Android 11 Part of the motivation for media controls is that users often have multiple media apps (music player, podcasts, video player etc) and regularly switch between them. Media controls display up to five current and recent media sessions in a carousel allowing the user to swipe between them. On Android 10 and earlier, media notifications for multiple apps can occupy most of the notification area. All those control buttons can a...

Capturing Audio in Android Q

Gambar
Posted by Don Turner , Developer Advocate for Android Media In Android Q there's a new API which allows applications to capture the audio of other applications. It's called the AudioPlaybackCapture API and it enables some important use cases for easier content sharing and accessibility. Some examples include: Live captioning - allowing the audio content of the currently playing app to be captioned or translated in real time. In fact, the Live Caption feature shown at I/O this year is a client of this API. Live captioning allows your users to engage with audible content even when it's impossible or inconvenient to do so, such as listening in a public place without headphones. Game recording and streaming - In-game sounds can be recorded and streamed to live audiences, helping to increase the social reach of game content. There may be some situations where a developer wishes to disallow the capture of their app's audio. This article explains how audio capture works for...