Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no file #6

Open
puks opened this issue Jul 24, 2015 · 7 comments
Open

no file #6

puks opened this issue Jul 24, 2015 · 7 comments
Assignees

Comments

@puks
Copy link

puks commented Jul 24, 2015

Hello! great work on this. However, I cannot find the file after the app recorded a video. theres no folder under my app's name even on android/data/app_name/cache or android/data/app_name/tmp for that natter. pleas help. how can we get the file after the recording via javascript. thanks.

@kmturley
Copy link

kmturley commented Aug 7, 2015

Yeah it doesn't seem to be writing videos for me either. I've tried changing the following things:

plugin.xml
line 44 - lines 47

<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.RECORD_VIDEO"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />android:name=&quot;android.permission.WRITE_EXTERNAL_STORAGE&quot; /&gt;

BackgroundVideo.java
line 33 - 41

FILE_PATH = Environment.getExternalStorageDirectory().toString() + "/";
File folder = new File(FILE_PATH);
if (!folder.exists()) {
    folder.mkdir();
    Log.d(TAG, "folder.created: " + FILE_PATH);
} else {
    Log.d(TAG, "folder.exists: " + FILE_PATH);
}

But i'm getting the following output:

folder.exists: /storage/emulated/0/
start Recording: /storage/emulated/0/myvideo.mp4
stop: 

And trying to use Android File Transfer or adb pull to get the files, no luck:

adb pull /data/data/. /.

@dairejpwalsh
Copy link

I changed the following in BackgoundVideo.java on line 34,

FILE_PATH = "/storage/emulated/0/Pictures/";

Now all video's saved to Pictures folder in Gallery

@jhayward
Copy link
Collaborator

The latest version now returns the file path on stop - does this help?
Do you still have the issue when running the demo?

@quantodaniel
Copy link

Hi! I'm running the demo on iOS and the stop function is returning undefined. Any idea why?

12

@quantodaniel
Copy link

I guess the problem is with cordova plugin add io.iclue.backgroundvideo.. downloading from github works fine!

@crystaltong
Copy link

Hello! The ios version isn't going saving to my library either. Any suggestions?

@jamesla
Copy link
Owner

jamesla commented Aug 27, 2016

Hi is this still a problem with the newer versions?

@jamesla jamesla closed this as completed Aug 27, 2016
@jamesla jamesla reopened this Aug 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants