Skip to content
This repository was archived by the owner on Jan 9, 2026. It is now read-only.

Commit 9498d99

Browse files
authored
Merge pull request #559 from yrezgui/yrezgui/static-assets
Update static assets URLs
2 parents 607bf87 + 207c59b commit 9498d99

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

common/src/main/java/com/example/android/uamp/media/MusicService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ open class MusicService : MediaBrowserServiceCompat() {
122122
private var isForegroundService = false
123123

124124
private val remoteJsonSource: Uri =
125-
Uri.parse("https://storage.googleapis.com/uamp/catalog.json")
125+
Uri.parse("https://storage.googleapis.com/androiddevelopers/samples_assets/uamp/catalog.json")
126126

127127
private val uAmpAudioAttributes = AudioAttributes.Builder()
128128
.setContentType(C.CONTENT_TYPE_MUSIC)

docs/FAQs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Frequently Asked Questions
22

33
## How can I change the music which UAMP plays?
4-
UAMP reads its [music catalog](https://storage.googleapis.com/uamp/catalog.json) from a server.
4+
UAMP reads its [music catalog](https://storage.googleapis.com/androiddevelopers/samples_assets/uamp/catalog.json) from a server.
55
This contains a list of songs and their metadata in JSON format. To change the music you can create your own
66
music catalog file, host it on a server and update the catalog URL in
77
[`MusicService`](https://github.com/android/uamp/blob/6c3ff3779d02f55661c5b9d6032cfac507a8415e/common/src/main/java/com/example/android/uamp/media/MusicService.kt#L127).

docs/FullGuide.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
The Universal Android Music Player (UAMP) is an example music player app for Android written in [Kotlin](https://kotlinlang.org/). It supports many features including background playback, audio focus handling, multiple platforms (like Wear, TV and Auto) and assistant integration.
44

5-
It loads a [music catalog](https://storage.googleapis.com/uamp/catalog.json) from a remote server and allows the user to browse the albums and songs. Tapping on a song will play it through connected speakers or headphones. Under the hood it uses [ExoPlayer](https://exoplayer.dev/).
5+
It loads a [music catalog](https://storage.googleapis.com/androiddevelopers/samples_assets/uamp/catalog.json) from a remote server and allows the user to browse the albums and songs. Tapping on a song will play it through connected speakers or headphones. Under the hood it uses [ExoPlayer](https://exoplayer.dev/).
66

77
If your app's primary goal is to play audio, UAMP is a good place to start.
88

@@ -36,7 +36,7 @@ MusicService is responsible for:
3636
* the audio player (provided by [ExoPlayer](https://exoplayer.dev/))
3737
* a [media session](https://developer.android.com/guide/topics/media-apps/working-with-a-media-session) and objects to communicate with it
3838
* maintaining a [notification](https://developer.android.com/guide/topics/ui/notifiers/notifications) which displays information and controls for the current media
39-
* loading [the media catalog](https://storage.googleapis.com/uamp/catalog.json) (a JSON file) from a remote URI and providing it to MediaBrowser clients
39+
* loading [the media catalog](https://storage.googleapis.com/androiddevelopers/samples_assets/uamp/catalog.json) (a JSON file) from a remote URI and providing it to MediaBrowser clients
4040

4141
By keeping the objects responsible for audio playback inside a service it allows audio to be played in the background, decoupling playback from the app's UI.
4242

0 commit comments

Comments
 (0)