Skip to content

Commit

Permalink
add option to prefetch video for temporary storage in local file cache
Browse files Browse the repository at this point in the history
  • Loading branch information
warren-bank committed Nov 1, 2021
1 parent eda7d11 commit 22faa28
Show file tree
Hide file tree
Showing 26 changed files with 1,083 additions and 49 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,7 @@ __extended APIs:__
flag: 0x00008000
extra-referUrl: http://example.com/videos.html
extra-textUrl: http://example.com/video.srt
extra-useCache: true
extra-startPos:
extra-stopPos:
extra-drmScheme: widevine
Expand Down Expand Up @@ -443,6 +444,7 @@ __extended APIs:__
* _referer_
* _req-header_
- use key on multiple lines to declare more than one value
* _use-cache_
* _start-position_
* _stop-position_
* _drm-license-scheme_
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,22 @@
android:enabled="true"
android:exported="true" />

<service
android:name=".exoplayer2.customizations.MyDownloadService"
android:enabled="true"
android:exported="false">
<intent-filter>
<action android:name="com.google.android.exoplayer.downloadService.action.RESTART" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</service>

<service
android:name="com.google.android.exoplayer2.scheduler.PlatformScheduler$PlatformSchedulerService"
android:permission="android.permission.BIND_JOB_SERVICE"
android:enabled="true"
android:exported="true" />

<activity
android:name=".ui.ImageViewerActivity"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ public class Constant {
public static final String CaptionURL = "textUrl";
public static final String RefererURL = "referUrl";
public static final String ReqHeader = "reqHeader";
public static final String UseCache = "useCache";
public static final String Start_Pos = "startPos";
public static final String Stop_Pos = "stopPos";
public static final String DRM_Scheme = "drmScheme";
Expand Down
Loading

0 comments on commit 22faa28

Please sign in to comment.