Commit 3a892c62 authored by flx42's avatar flx42
Browse files

video: handle MMS intents

parent bacaa78c
...@@ -1660,7 +1660,7 @@ public class VideoPlayerActivity extends Activity implements IVideoPlayer { ...@@ -1660,7 +1660,7 @@ public class VideoPlayerActivity extends Activity implements IVideoPlayer {
if (getIntent().getData() != null if (getIntent().getData() != null
&& getIntent().getData().getScheme() != null && getIntent().getData().getScheme() != null
&& getIntent().getData().getScheme().equals("content")) { && getIntent().getData().getScheme().equals("content")) {
if(getIntent().getData().getHost().equals("media")) { if(getIntent().getData().getHost().equals("media") || getIntent().getData().getHost().equals("mms")) {
// Media URI // Media URI
Cursor cursor = managedQuery(getIntent().getData(), new String[]{ MediaStore.Video.Media.DATA }, null, null, null); Cursor cursor = managedQuery(getIntent().getData(), new String[]{ MediaStore.Video.Media.DATA }, null, null, null);
int column_index = cursor.getColumnIndexOrThrow(MediaStore.Video.Media.DATA); int column_index = cursor.getColumnIndexOrThrow(MediaStore.Video.Media.DATA);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment