Skip to content

Store recording metadata on the filesystem#59

Open
gaul wants to merge 1 commit into
dkim0419:masterfrom
gaul:no-database
Open

Store recording metadata on the filesystem#59
gaul wants to merge 1 commit into
dkim0419:masterfrom
gaul:no-database

Conversation

@gaul

@gaul gaul commented Oct 15, 2016

Copy link
Copy Markdown
Contributor

This removes use of the database and allows media management via USB
MTP. Originally written by @stsydow and sourced from
stsydow@2b4c02e .
Modified by @andrewgaul to remove extraneous changes and rebase onto
master. Fixes #47.

@gaul

gaul commented Oct 15, 2016

Copy link
Copy Markdown
Contributor Author

@fabianrost84 @stsydow Please review.

@stsydow

stsydow commented Oct 16, 2016

Copy link
Copy Markdown

Looks good to me but haven't tested or build it yet.

@fbnrst

fbnrst commented May 24, 2017

Copy link
Copy Markdown
Contributor

This removes use of the database and allows media management via USB
MTP.  Originally written by @stsydow and sourced from
stsydow@2b4c02e .
Modified by @andrewgaul to remove extraneous changes and rebase onto
master.  Fixes dkim0419#47.
@gaul

gaul commented May 25, 2017

Copy link
Copy Markdown
Contributor Author

@fabianrost84 Sorry I did not test this after reverting the timestamp commit. The latest commit should fix this.

@dkim0419

Copy link
Copy Markdown
Owner

does this check for cases where there are other files in the parent folder, that aren't mp4's, for example a random jpg? or cases where file formats could be different (ie: some are saved as mp3, some as mp4, etc), could it cause an issue in the future when retrieving metadata?

@gaul

gaul commented May 25, 2017

Copy link
Copy Markdown
Contributor Author

The only check is to ensure SoundRecorder does not overwrite an existing recording. It parses the recording number to generate the next recording in the sequence, e.g., My Recording_4.mp4. If we support multiple formats we could remove the suffix part of the test.

If we bring back timestamp filenames from #43 we can remove this logic.

@raj10071997 raj10071997 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gaul you are right , if we support multiple formats we could remove the suffix part of the test.

hyperov pushed a commit to hyperov/SoundRecorder that referenced this pull request Nov 1, 2019
fixes issue dkim0419#25 

* `*.tmp` file is now stored in /storage/emulated/0/Android/data/by.naxa.soundrecorder/cache/SoundRecorder.by/*
* new method `createDirectory` is created in `Paths` to create directory
* optimized imports
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

Successfully merging this pull request may close these issues.

5 participants