Android Question MediaSessions

Jmu5667

Well-Known Member
Licensed User
Longtime User

Jmu5667

Well-Known Member
Licensed User
Longtime User
Question:

In this line of code,
session.InitializeNewInstance("android.support.v4.media.session.MediaSessionCompat", Array(Context, "MSC", Null, Null))
, "MSC", whta does it refer to and cann it be change and if so what can I change it to.

Regards

John.
 
Upvote 0

stevel05

Expert
Licensed User
Longtime User
It's just a Shortname Tag that is used for debugging. It can be anything
 
Upvote 0

woodpecker

Member
Licensed User
Longtime User
Just been playing with this, using a bluetooth receiver I can only get it to work with the play/pause key, is it possible to detect the MEDIA_NEXT and MEDIA_PREVIOUS keys as well?
 
Upvote 0

woodpecker

Member
Licensed User
Longtime User
Just noticed, if I switch out of the app and back in, I can get the MEDIA_NEXT or MEDIA_PREVIOUS key to register but only for one single click then both become non-responsive and only the play/pause button continues to respond. Any ideas?
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…