Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

Summary

This RFC proposes to move media notifications (better known as the "Now Playing" notifications) from the expo-video package into a new, separate Expo module: expo-media-session.

Motivation

The primary motivation is to provide a unified and generic interface for managing media notifications, which can be utilized by both the expo-audio and expo-video modules. This approach aims to avoid code duplication and ensure consistency across all supported platforms (iOS, Android, and web).

Currently, media notifications are only implemented for the expo-video package. However, expo-audio users should also expect to have similar functionality. Implementing and maintaining this separately in both packages would lead to code duplication and potential inconsistencies.

Why expo-media-session?

The primary reason for naming the package expo-media-session, rather than expo-media-notifications, is that it aligns with the browser API for managing media notifications, which is known as the Media Session API.

You must be logged in to vote

Replies: 10 comments · 3 replies

Comment options

Thanks for starting the conversation! cc @behenate @alanjhughes

You must be logged in to vote
0 replies
Comment options

I think it's a valid idea, although I think we could use this thread to also discuss other similar cases such as AudioSession which will be managed by both audio and video. We have a PR up with caching for expo-video, the iOS implementation is pretty complicated and it would be pretty cool if we didn't have to repeat it for expo-audio. Maybe a broader package such as expo-media-core would make more sense, especially for future-proofing.
@alanjhughes @tsapeta

You must be logged in to vote
0 replies
Comment options

Hi, is there any update about this? Expo 52 and expo-video are now out of beta, but I see that expo-audio still doesn't expose a way to control playback from the lock screen.

Thanks for your work with expo.

You must be logged in to vote
0 replies
Comment options

@sebnun No significant updates for now, sorry! We are planning to plan this and make final decisions before the SDK 53 release

You must be logged in to vote
0 replies
Comment options

I am very excited for this functionality to be added to the expo-audio. I currently use React native track player only because it supports these controls and this is the one feature that is keeping me from switching to expo-audio. Also, that project is very slow to fix issues which leads me to believe that its soon to be a dead project.

I have searched this repo and I dont see any updates on this and was curious if this is still slated for the SDK 53 release?

You must be logged in to vote
1 reply
@radko93
Comment options

there are PRs so seems to be coming in expo 54

Comment options

Also hoping for updates on this :) Our app would benefit greatly from being able to use lock screen controls/media control with bluetooth devices!

You must be logged in to vote
0 replies
Comment options

Has it landed?

You must be logged in to vote
0 replies
Comment options

+1

You must be logged in to vote
0 replies
Comment options

I really desperately need this. Is there any way that someone can give me some guidance on starting this?

You must be logged in to vote
2 replies
@MikeKovarik
Comment options

I ended up abusing expo-video to play mp3s. Turns out you don't even need expo-audio after all. Though there are some issues with some events not being fired on iOS.

@noeljackson
Comment options

Thanks @MikeKovarik! Do you know what events don't get fired or have a link to issue?

Comment options

Here I am also eagerly awaiting this update. A workaround using expo-audio also would be great.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Morty Proxy This is a proxified and sanitized view of the page, visit original site.