Questions tagged [mediabrowserservice]

40 questions
17
votes
0 answers

MediaBrowserService and MediaStore

How to use MediaBrowserService to load media from different providers(Files Explorer, GoogleDrive, ContentProvider, etc) keeping single service Checked with UAMP, its only uses one provider My second question is what is the purpose of onLoadItem
ingsaurabh
  • 15,249
  • 7
  • 52
  • 81
15
votes
0 answers

The app did not appear in the Android Auto screen when we attempted to test functionality

I have a audio player app on playstore and wanted to add support for AndroidAuto. After making the required changes, when I uploaded my new apk to playstore it got rejected and received the following email from Play When they say app did not appear…
13
votes
2 answers

How to set EXTRA_PAGE and EXTRA_PAGE_SIZE in a MediaBrowserServiceCompat by getting reference to the Android Auto MediaBrowser?

I have an Android Auto app. I would like to take advantage of pagination for browsing within the app. It seems that you can set EXTRA_PAGE and EXTRA_PAGE_SIZE by getting a reference to the MediaBrowserCompat and passing those constants in…
12
votes
1 answer

MediaBrowserService with ExoPlayer and PlayerControlView - How to access to the player instance from the UI (PlayerControlView)?

I am currently working on a part of an app which has video and audio functionality, and started refactor the code base recently. The goal is to integrate MediaSession/ MediaController and MediaBrowserService/ MediaBrowser framework. We use ExoPlayer…
10
votes
0 answers

Android assistant - MediaBrowserService - Voice command - "Play x on appName"

The voice commande Play [song] on [my appName] command not working, the "appName" is not being recognised by google assistante. I followed the instruction form https://developer.android.com/guide/topics/media-apps/interacting-with-assistant and the…
7
votes
2 answers

Is it possible to connect to Spotify's MediaBrowserService?

I am writing a voice assistant and would like to be able to launch search results in Spotify. To understand how to connect to Spotify and other apps, I am playing with the Google's Media Controller Test app, which is described as doing the…
5
votes
2 answers

Android Auto: How to return a large number of children on loadChildren() of MediaBrowserService?

I am currently trying to implement a MediaBrowserService to build a media app for Android Auto. I followed the official Android Auto documentation (https://developer.android.com/training/cars/media#onLoadChildren) to implement theonLoadChildren…
idearibosome
  • 684
  • 1
  • 7
  • 17
5
votes
1 answer

leak canary detects memory leak in MediaBrowserServiceCompat sample app

I have created a test app that implements MediaBrowserServiceCompat. I have followed this guide: https://developer.android.com/guide/topics/media-apps/audio-app/building-a-mediabrowserservice Created MediaPlaybackService and MainActivity. I have…
5
votes
0 answers

In MediaBrowserService.onLoadChildren, when/how is the options bundle supplied?

In MediaServiceBrowser or MediaServiceBrowserCompat, there are two methods: public abstract void onLoadChildren (String parentId, Result> result) and public void onLoadChildren (String parentId, …
5
votes
3 answers

Refreshing MediaBrowserService subcription content

TL;DR: I have successfully created and coupled (via a subscription) an activity to a media browser service. This media browser service can continue running and play music in the background. I'd like to be able to refresh the content at some stage,…
5
votes
2 answers

How to stop MediaBrowserServiceCompat?

My service: public class MusicService extends MediaBrowserServiceCompat { ... } My Activity: public class MediaActivity extends AppCompatActivity{ private MediaBrowserCompat mMediaBrowser; @Override public void onCreate(Bundle…
4
votes
1 answer

Adding media item to MediaBrowserService

I'm building a music player for Android, using these two samples (Android MediaBrowserService Sample and Universal Music Player) as examples. I noticed both load media information on start-up and add it to the Media Browser. Both have the complete…
3
votes
1 answer

I have an issue regarding Android Auto media duration feature

I just developed media application with android automotive support everything is working fine but i have an issue with new design of automotive OS like in previous design there is no duration for media streams but now they added duration of a media…
3
votes
1 answer

MediaStyleNotification: Play/Pause button does not respond to click

In my app when the user chooses an audio file for playing, when the file is ready and the playback starts a MediaStyle Notification is shown successfully. The metadata info is updated, title, icon etc. But… 1.Play/Pause button does not respond to…
3
votes
1 answer

MediaBrowser not connecting to MediaBrowserService

I'm trying to connect to a MediaBrowserService from an activity using a MediaBrowser. However, my onConnected callback never seems to be called to allow me to set up the MediaController and start manipulating playback. In my player/browser…
1
2 3