Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions src/android/Capture.java
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,19 @@ public void run() {

@Override
public void run() {
// Get the uri of the video clip
Uri data = intent.getData();

Uri data = null;

if (intent != null){
// Get the uri of the video clip
data = intent.getData();
}

if( data == null){
File movie = new File(getTempDirectoryPath(), "Capture.avi");
data = Uri.fromFile(movie);
}

// create a file object from the uri
if(data == null)
{
Expand Down Expand Up @@ -428,7 +439,6 @@ private JSONObject createMediaFile(Uri data) {
// this will never happen
e.printStackTrace();
}

return obj;
}

Expand Down