Skip to content

Commit

Permalink
added low resolution video url link
Browse files Browse the repository at this point in the history
  • Loading branch information
codephillip committed May 20, 2020
1 parent 2a7e93c commit 114a097
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Binary file modified Safepal/app/release/app-release.apk
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ protected void onCreate(Bundle savedInstanceState) {
description.setText(videotableCursor.getDescription());

video.setMediaController(new MediaController(this));
video.setVideoURI(Uri.parse(videotableCursor.getUrl()));
String lowResVideoUrl = videotableCursor.getUrl().replace(".mp4", "_480p.m3u8");
video.setVideoURI(Uri.parse(lowResVideoUrl));
video.requestFocus();
video.setOnPreparedListener(mp -> {
mediaController = new MediaController(WatchVideoActivity.this);
Expand Down

0 comments on commit 114a097

Please sign in to comment.