You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 14, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -212,31 +212,31 @@ Always do this. It is sometimes critically important to disconnect the camera wh
212
212
213
213
Captures are saved to '\<location\>/\<date\>/\<time\>.jpg' or '.mp4'.
214
214
215
-
The default values are as follows. On a desktop <location> is '.', on Android <location> is 'DCIM/<appname>'. The value of <date> is the current date, the format is 'YYYY_MM_DD'. The value of <time> is the current time, the format is 'hh_mm_ss_xx' (xx is 1/100 sec).
215
+
The default values are as follows. On a desktop \<location\> is '.', on Android \<location\> is 'DCIM/<appname>'. The value of \<date\> is the current date, the format is 'YYYY_MM_DD'. The value of \<time\> is the current time, the format is 'hh_mm_ss_xx' (xx is 1/100 sec).
216
216
217
217
The [filepath_callback](https://github.com/Android-for-Python/Camera4Kivy#filepath_callback) reports the actual path for a particular capture.
218
218
219
219
Be aware that on Android >= 10 shared storage files are saved in a database, called MediaStore, and not in a file system. The characteristics of Android storage are outside the scope of this document.
220
220
221
-
The values of <location>, <date>, <time> can be modified with optional keyword arguments:
221
+
The values of \<location\>, \<date\>, \<time\> can be modified with optional keyword arguments:
222
222
223
223
##### location :
224
224
225
-
The value replaces <location>.
225
+
The value replaces \<location\>.
226
226
227
227
On a desktop the value is directory that must exist.
228
228
229
229
On Android the value can only be 'shared' or 'private', other values are ignored. The value 'shared' specifies Android shared storage 'DCIM/<appname>' (this is also the default). The value 'private' specifies app local storage 'app_storage_path()/DCIM'. If you want a different location use 'private' and move the resulting file based on the path provided by filepath_callback.
230
230
231
231
##### subdir
232
232
233
-
The value replaces <date>, the subdirectory will be created.
233
+
The value replaces \<date\>, the subdirectory will be created.
234
234
235
235
##### name
236
236
237
-
The value replaces <time>, the '.jpg' or '.mp4' extensions will be added automatically.
237
+
The value replaces \<time\>, the '.jpg' or '.mp4' extensions will be added automatically.
238
238
239
-
Note that it is a characteristic of Android >= 10 shared storage that a second capture with a same subdir and name values as the first, will not overwrite the first. It will create a second file named '<subdir>/<name> (1).jpg', the name is created by Android MediaStore. The MediaStore may crash if it creates too many (31 ?) such names.
239
+
Note that it is a characteristic of Android >= 10 shared storage that a second capture with a same subdir and name values as the first, will not overwrite the first. It will create a second file named '\<subdir\>/\<name\> (1).jpg', the name is created by Android MediaStore. The MediaStore may crash if it creates too many (31 ?) such names.
0 commit comments