Code Monkey home page Code Monkey logo

android-mediabrowserservice's Introduction

Android MediaBrowserService Sample

This sample has been deprecated/archived meaning it's read-only and it's no longer actively maintained (more details on archiving can be found here).

For other related samples, check out the new github.com/android/uamp repo. Thank you!

android-mediabrowserservice's People

Contributors

codingjeremy avatar google-automerger avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

android-mediabrowserservice's Issues

Where to load music library from json?

Hello, I am running this example, and I am studying this code. I want to know what is the best way to load my music library. I saw that the MediaItems are being loading in MusicLibrary class with the 2 samples songs.

What is the best way to load music from json? and also If I want to add new song to the json list how can I added to the queue?

Thanks.

Notification in huawei device crash

I am test this example, when I press play button the app crash.
log:
Bad notification posted from package com.example.android.mediasession: Couldn't expand RemoteViews for: StatusBarNotification(pkg=com.example.android.mediasession user=UserHandle{0} id=412 tag=null score=0 key=0|com.example.android.mediasession|412|null|10125: Notification(pri=0 contentView=com.example.android.mediasession/0x109007e vibrate=null sound=null defaults=0x0 flags=0x62 color=0xffe91e63 category=transport actions=3 vis=PUBLIC))

Notification is recreated everytime and blinks

In MusicService.java in line 503 is where we create the notification and everytime we pause the notification is recreated. I added Previous and Next to my own project and I get the same problem, it looks like a blink. I tried not to call startForeground everytime to avoid the blinking but if i close the app then the music stops because I'm not in foreground anymore.

I tried not to declare global some of the variables but it didn't work.

Any solution to the annoying blinking problem?

play/pause in nexus6p cannot work

I just test app in my nexus 6p(android7.0). It can only work one loop(pause and then play), after that, operation in headset will not take effect at all.
It is playing, but we get KEYCODE_MEDIA_PLAY in onMediaButtonEvent(). Do you know reason for that?
log:
MusicService: AudioControlService->onMediaButtonEvent()keycode: 126 ;key: 0 ;active: true

Thanks.

Seekbar position reset to 0 when relaunching

Steps:

  1. Open the player
  2. Play some audio
  3. Seek to middle for better understanding
  4. Press 'Back' which minimises app.
  5. Start over, see seekbar position reset to 0, sometimes no progress after this.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.