backgroundvideo icon indicating copy to clipboard operation
backgroundvideo copied to clipboard

no file

Open puks opened this issue 9 years ago • 7 comments

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.

puks avatar Jul 24 '15 19:07 puks

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/. /.

kmturley avatar Aug 07 '15 21:08 kmturley

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

dairejpwalsh avatar Aug 26 '15 13:08 dairejpwalsh

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

jhayward avatar Aug 27 '15 21:08 jhayward

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

12

quantodaniel avatar Sep 28 '15 02:09 quantodaniel

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

quantodaniel avatar Sep 28 '15 13:09 quantodaniel

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

crystaltong avatar Nov 03 '15 21:11 crystaltong

Hi is this still a problem with the newer versions?

jamesla avatar Aug 27 '16 07:08 jamesla