Questions tagged [mediasession]

The Media Session API enables web developers to show customized media metadata and controls on platform UI, such as in notification areas and on lock screens of mobile devices.

The Media Session API enables web developers to show customized media metadata on platform UI, customize available platform media controls, and access platform media keys such as hardware keys found on keyboards, headsets, remote controls, and software keys found in notification areas and on lock screens of mobile devices.

This API was introduced in Chrome for Android 45 in the year 2015.

References:

53 questions
0
votes
0 answers

android 11 mediaplayer notification problem

i have an audio book app that work without a problem until android 11. my problem is when i set mediasession to mediastyle, app media notification won't show anymore. i cant find the problem. here is my code: Notification notification = new…
0
votes
1 answer

'MediaMetadata' is not defined no-undef and MediaMetadata is not a constructor

I've implemented playlist player using howler.js in vuejs. I want to integrate MediaMetadata API to it. MediaSession API is working fine with controls like notification bar, keyboard controls, remote devices. But I'm unable to set audio's…
nidhi_007
  • 21
  • 12
0
votes
1 answer

How to display media metadata infomation in the Media Switch output?

I developed a media app with reference to UAMP, but I encountered the following problems. The media switch output screen opened from the notification cannot display the media information being played. But there is UAMP, not sure what I missed? Does…
0
votes
2 answers

Android MediaSessionCompat Callbacks not firing

I'm creating an audiobook player, and I'm using MediaSessionCompat related classes to handle notifications. My code is heavily inspired by the android-MediaBrowserService samples ( https://github.com/googlearchive/android-MediaBrowserService ), and…
Pylvain
  • 110
  • 1
  • 7
0
votes
1 answer

How to use a blob URL as an image source in Chrome's Global Media Controls?

I'm trying to customize the display in Chrome's Global Media Controls. So I used navigator.mediaSession.metadata to set the title and other things and it works. But I also want to set the background image, like in the example below: I tried using…
Rodolphe
  • 1,689
  • 1
  • 15
  • 32
0
votes
1 answer

Android - MediaSession doesn't capture key events however seen in logcat

here's the code to capture any media key events final MediaSession session = new MediaSession(getApplicationContext(), "TAG"); session.setCallback(new MediaSession.Callback() { @Override public boolean…
Ali Abu Hijleh
  • 492
  • 3
  • 9
0
votes
2 answers

How to set the HTML video title that is shown in Chrome and Windows?

How can I set the name (label) of HTML5
Mahozad
  • 18,032
  • 13
  • 118
  • 133
1 2 3
4