mirror of
https://github.com/bbara04/Purefin.git
synced 2026-04-07 10:21:47 +02:00
feat: add movie download support using Media3 DownloadService
Implement media downloading with foreground notification showing progress percentage and speed. Uses Media3's DownloadManager + SimpleCache with OkHttp datasource for authenticated Jellyfin downloads. Downloaded movies are saved to the offline database and the player reads from cache automatically via CacheDataSource.
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
|
||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" />
|
||||
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
|
||||
|
||||
<application
|
||||
android:name=".PurefinApplication"
|
||||
android:allowBackup="true"
|
||||
@@ -28,6 +32,10 @@
|
||||
android:screenOrientation="landscape"
|
||||
android:exported="false"
|
||||
android:theme="@style/Theme.Purefin" />
|
||||
<service
|
||||
android:name=".download.PurefinDownloadService"
|
||||
android:exported="false"
|
||||
android:foregroundServiceType="dataSync" />
|
||||
</application>
|
||||
|
||||
</manifest>
|
||||
|
||||
Reference in New Issue
Block a user