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

Support SEND intent #106

Merged
merged 8 commits into from
Jun 25, 2018
Merged

Support SEND intent #106

merged 8 commits into from
Jun 25, 2018

Conversation

brarcher
Copy link
Owner

@brarcher brarcher commented Jun 24, 2018

#42

This enables the app to handle SEND intents, which send
data to the app for processing.

ffmpeg, which encodes the files, must process a file path
instead of a stream. Because of this, the data in the intent
must be saved locally first then staged for processing.
As soon as the SEND intent is received the data is copied over,
then a preview posted to the user.

There are a few aspects which are not yet resolved, such as
posting a permissions dialog if the app does not have the permissions
yet, and the sent file's name is not preserved so the output
name makes sense.
Previously there was only one reason for a permission check,
namely to select a video. However, there are now ENCODE and
SEND intent which need to be handled. To reduce the complexity
of handling what is requesting the permission, a callback
is now being handed to getPermission() which will invoke
it if the read/write permissions are granted.
Previously the file name of the input file was used
as the basis of the output file name. However, because
the file from a SEND intent is saved to a tmp file, its
name is meaningless. This change will preserve the name
so it can be used to label the output file.
@brarcher brarcher merged commit 7d8e365 into master Jun 25, 2018
@brarcher brarcher deleted the send-intent branch June 25, 2018 00:17
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.

1 participant