Skip to content

Commit

Permalink
refactor: attempt to improve android (player)
Browse files Browse the repository at this point in the history
  • Loading branch information
ohrstrom committed Jan 29, 2025
1 parent 4090cd8 commit 7d2f13d
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions obr_core/manifest/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ def manifest_view(request):
{
"name": "open broadcast radio",
"short_name": "open broadcast",
"id": "/",
"start_url": "/",
"scope": "/",
"display": "standalone",
Expand All @@ -31,24 +32,69 @@ def manifest_view(request):
"type": "image/png",
},
],
"screenshots": [
{
"src": request.build_absolute_uri(
static("assets/manifest/screenshot-412x914.png"),
),
"form_factor": "narrow",
"sizes": "412x914",
"type": "image/png",
},
{
"src": request.build_absolute_uri(
static("assets/manifest/screenshot-1600x960.png"),
),
"form_factor": "wide",
"sizes": "1600x960",
"type": "image/png",
},
],
"shortcuts": [
{
"name": "Discover",
"short_name": "Discover",
"description": "Discover music",
"url": "/discover/moods/",
"icons": [
{
"src": request.build_absolute_uri(
static("assets/manifest/icon-192x192.png"),
),
"sizes": "192x192",
"type": "image/png",
},
],
},
{
"name": "Shows",
"short_name": "Shows",
"description": "Shows",
"url": "/discover/playlists/",
"icons": [
{
"src": request.build_absolute_uri(
static("assets/manifest/icon-192x192.png"),
),
"sizes": "192x192",
"type": "image/png",
},
],
},
{
"name": "Program",
"short_name": "Program",
"description": "Program",
"url": "/program/",
"icons": [
{
"src": request.build_absolute_uri(
static("assets/manifest/icon-192x192.png"),
),
"sizes": "192x192",
"type": "image/png",
},
],
},
],
"prefer_related_applications": True,
Expand Down
Binary file added obr_ui/assets/manifest/screenshot-1600x960-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added obr_ui/assets/manifest/screenshot-1600x960.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added obr_ui/assets/manifest/screenshot-412x914.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7d2f13d

Please sign in to comment.