Skip to content

Commit cb9d28c

Browse files
committed
Pass file URI to MediaPlayer
The MediaPlayer at some point expects a file:// URI instead of an absolute path.
1 parent 15c9772 commit cb9d28c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/src/main/java/protect/videotranscoder/activity/MainActivity.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1399,6 +1399,7 @@ public void onResult(MediaInfo result)
13991399

14001400
if(result != null)
14011401
{
1402+
String uri = Uri.fromFile(new File(path)).toString();
14021403
videoView.setVideoPath(uri);
14031404
videoView.start();
14041405

0 commit comments

Comments
 (0)