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

Issue #136 [Feature] Instant upload of videos #149

Merged
merged 12 commits into from
Apr 22, 2014

Conversation

zerginator
Copy link
Contributor

Issue #136 [Feature] Instant upload of videos

@zerginator
Copy link
Contributor Author

finally something worked ;-)

@zerginator
Copy link
Contributor Author

I noticed that the included media player of owncloud ( not the android app) doesn't play mp4 videos.

@zerginator
Copy link
Contributor Author

I included a check that Upload is only allowed when the app has a connection with wifi. Otherwise it would cost the user a lot of quota and he wouldn't recognize it because the upload will happen in the background.

@davivel
Copy link
Contributor

davivel commented May 3, 2013

Better this waits a little. We have things to fix in the current instant upload of images before going with more instant uploads.

@dsg22
Copy link

dsg22 commented Jul 28, 2013

@zerginator thanks for your work on this useful feature!

Regarding only uploading using wifi, any chance that could be made a configuration option? It makes this feature not very useful for me. A very useful case for such a feature would be for protests/demonstrations where video evidence of the event is desired, but phones may be confiscated and video deleted. In those cases one rarely has access to wifi.

@ghost
Copy link

ghost commented Jul 28, 2013

+1

@@ -156,10 +156,14 @@

<receiver android:name=".files.InstantUploadBroadcastReceiver">
<intent-filter>
<action android:name="com.android.camera.NEW_PICTURE" />
<action android:name="android.hardware.action.NEW_PICTURE" />

Choose a reason for hiding this comment

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

This will break instant upload for older devices!

"android.hardware.action.NEW_PICTURE" was first introduced in API 14 --> refer to http://developer.android.com/reference/android/hardware/Camera.html

@enoch85
Copy link
Member

enoch85 commented Aug 7, 2013

👍 please merge this soon

@davivel
Copy link
Contributor

davivel commented Aug 12, 2013

Sorry, but we won't merge this until main problems with instant upload of images are fixed.

That will be soon, fortunately.

@vip9
Copy link

vip9 commented Sep 5, 2013

Some code (MediaService.java) depends of API level 17, so what's the big deal?

@LukeOwlclaw
Copy link

@vip9 Not sure, but I am assuming you are referring to my comment.

Every Android version from Android 2.2 is supported by the ownCloud app. More details: #110 (comment)

@vip9
Copy link

vip9 commented Sep 6, 2013

As I see, the code in https://github.com/owncloud/android/blob/master/src/com/owncloud/android/media/MediaService.java#L160 refers to statics introduced in level 17 (e.g. MediaPlayer.MEDIA_ERROR_UNSUPPORTED)

So what's the problem with using more code newer (same) as level 14? (It won't compile anyway)

@davivel
Copy link
Contributor

davivel commented Sep 24, 2013

@vip9, the problem pointed by @LukeOwncloud is not adding a constant of API 17, but removing the old event. In the current version 1.4.5 both are used, each of them for different Android versions.

Anyway, the reason why we don't want to add instant upload of videos by now is that instant upload of pictures needs to be fixed in several aspects. We don't want the same problems appear in the upload of videos, specially because they use to be bigger files.

@jancborchardt
Copy link
Member

What’s the resolution on this? It has been 7 months, @davivel @masensio @rperezb @MTRichards we need to manage community contributions better. :)

@davivel
Copy link
Contributor

davivel commented Dec 10, 2013

This will be merged into develop soon, maybe before the end of the year.

@rperezb
Copy link

rperezb commented Dec 16, 2013

@jancborchardt you are right, it is our goal for 2014 to manage better community contributions.

As @davivel already said, this is on our top of the priorities. I would expect it before February :), December is a busy month

@jancborchardt
Copy link
Member

Cool! :)

@masensio
Copy link

@zerginator In these weeks we plan to merge your code about Instant Videos with develop. But the current version can't be merge automatically in develop. Could you please update this with the last changes?

Thanks for your patience.

@enoch85
Copy link
Member

enoch85 commented Feb 22, 2014

Just a question. You talked about merging this in february, how is it going? When will this feature come to be realesed for real?

@davivel
Copy link
Contributor

davivel commented Mar 13, 2014

It's not going too well. No idea when it will be released. My apologies. Not enough time to test everything.

@masensio
Copy link

masensio commented Apr 8, 2014

Now, this branch is updated with our develop branch.

@fduraibi
Copy link

👍 i want this feature, and if possible an option to allow the user to pick between: Photo only, video only or both.

@davivel
Copy link
Contributor

davivel commented Apr 16, 2014

@jancborchardt , we would appreciate your opinion here. This contribution updates the option 'Enable instant upload - Instantly upload photos...' to 'Enable instant upload - instantly upload media...' , affecting both photos and videos.

We think separate options for photos and videos would be better.

What do you think?

@davivel
Copy link
Contributor

davivel commented Apr 16, 2014

Sorry. We would appreciate opinions from everybody, of course. Just pinging @jancborchardt as our design expert.

@enoch85
Copy link
Member

enoch85 commented Apr 16, 2014

I agree with you @davivel. The ability to choose instant uploads of either photos and/or videos would be best.

Also and option for both (separately) if you want to upload photos and/or videos through WIFI would be appreciated because maybe you want to upload photos through 3G/4G, but videos over WIFI or vice versa.

@jancborchardt
Copy link
Member

Yup, also agree that photos and videos should be separate options. And both should have a sub-option if it should be uploaded on wifi only.

What are the current defaults? Both off, I presume.

@davivel
Copy link
Contributor

davivel commented Apr 16, 2014

Yes, both off. I'd say it's the right default, isn't it?

@enoch85
Copy link
Member

enoch85 commented Apr 16, 2014

👍 @davivel @jancborchardt

I´m very exited about this! Expected release with 1.5.6?

@davivel
Copy link
Contributor

davivel commented Apr 16, 2014

Probably, if nothing strange happens. Stay tuned! :)

@enoch85
Copy link
Member

enoch85 commented Apr 16, 2014

That´s just amazing news!

@jancborchardt
Copy link
Member

Yep, both off is the right default.

@@ -37,18 +37,21 @@
import android.net.ConnectivityManager;
import android.net.NetworkInfo.State;
import android.preference.PreferenceManager;
import android.provider.MediaStore.Images.Media;
import android.provider.MediaStore.*;
Copy link
Contributor

Choose a reason for hiding this comment

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

You should import only the necessary clases in order to not import all that are under MediaStore

javiergonzper added a commit that referenced this pull request Apr 22, 2014
Issue #136  [Feature] Instant upload of videos
@javiergonzper javiergonzper merged commit d60ddd8 into develop Apr 22, 2014
@davivel davivel deleted the videoInstandUploads branch April 24, 2014 14:22
hannesa2 pushed a commit that referenced this pull request Oct 9, 2023
Use preemptive authentication except in server versions where it is n…
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.