Commit graph

5854 commits

Author SHA1 Message Date
Arun Raghavan
8fae40f1e4 Fix upload progress callback in transcoder 2012-11-11 17:35:56 +05:30
YuviPanda
ec5bcfc48e First shot at getting progress for Transcoding 2012-11-11 16:48:54 +05:30
Arun Raghavan
7c828bd939 Fix upload file name
Server accepts .ogg only
2012-11-11 16:38:36 +05:30
Arun Raghavan
363cd8b3e7 Add progress reporting to transcoder 2012-11-11 16:38:22 +05:30
YuviPanda
836d35e708 Initial support for GStreamer Audio Encoding to Ogg 2012-11-11 15:10:09 +05:30
Arun Raghavan
81aacd7b11 Fix return value in transcode function 2012-11-11 15:05:42 +05:30
Arun Raghavan
46bd685388 Quote filenames in transcode pipeline
Needed for files with spaces in their names.
2012-11-11 13:15:55 +05:30
Arun Raghavan
af9dd0832f Add external storage read/write permissions
We need this in order to access files stored on MMC and to write out
(temporary files) before uploading. The latter will be done away with
once we hook up the trancode pipeline to directly provide encoded blocks
rather than writing to a file.
2012-11-11 12:25:40 +05:30
Arun Raghavan
e915be9208 First pass at adding transcode support
This does a hard-coded audio encode to vorbis-in-ogg. In the long term,
this should use encodebin and real encoding profiles.
2012-11-11 12:25:32 +05:30
YuviPanda
634f236f19 Fixed bug causing wrong time to show
TYPE SAFETY FOR THE FUCKING WIN FUCK YEAH
2012-11-10 18:32:08 +05:30
YuviPanda
efecef0a6c Handle network failures gracefully 2012-11-09 17:49:15 +05:30
YuviPanda
f1ef106c8a Remove actionbar from share dialog 2012-11-05 20:20:05 +05:30
YuviPanda
482b05d621 Add ticker text for notifications 2012-11-05 20:19:41 +05:30
YuviPanda
6d105f4844 Added ActionBarSherlock library compatiblity support 2012-11-05 20:17:53 +05:30
YuviPanda
f4fe37cee6 Added missing authenticator XML file 2012-11-05 20:15:18 +05:30
YuviPanda
da723d05ed Properly set uploader service as foreground so it isn't killed
Commit sitting in a corner of the road near SICSR in a temple
2012-11-04 15:53:48 +05:30
YuviPanda
88cb714b02 Add date for {{Information}} template according to EXIF data 2012-11-03 15:24:56 +05:30
YuviPanda
b3f8bf815e Add appropriate info and licensing templates 2012-11-03 04:08:11 +05:30
YuviPanda
f8c9dba049 Always flip the first character of username to be uppercase 2012-11-03 04:07:41 +05:30
YuviPanda
b939ec2137 Actually add updated java-mwapi 2012-11-03 03:54:14 +05:30
YuviPanda
3857a18cf2 Keep state about currently selected account in application 2012-11-03 03:54:03 +05:30
YuviPanda
11685e5ec1 (Bug 41703) Validate user tokens & re-login if necessary
Now we send out a request before every upload to check if
the user is logged in. If not, we re-login.

Need to study this more - this adds a little bit of extra latency
to every upload. But if the upload fails because of a login failure,
it will mean we'll have to re-upload the entire thing. Choices.

Also added a debug method to convert XML object to a String. Was
amazed at the power of Java being able to make such a complex task
accomplishable by a single line </s>
2012-11-02 23:22:29 +05:30
YuviPanda
496413da22 Rotate images appropriately in preview
Fixes #3
2012-10-27 05:56:00 +05:30
YuviPanda
eb8edb2f06 More accurate feedback about current status of upload! 2012-10-26 02:44:35 +05:30
YuviPanda
034fde1007 Display new notification when upload is complete
Full fix for issue #4
2012-10-26 00:02:31 +05:30
YuviPanda
111b618b2f New icons from Shankar
Spacing seems a little off, however
2012-10-25 23:41:13 +05:30
YuviPanda
52b16d298e Handle case when Authentication fails 2012-10-25 23:37:29 +05:30
YuviPanda
b85cc9c0e5 Change Activity Titles to appropriate names
Fixes #10
2012-10-17 21:29:58 +05:30
YuviPanda
388eed5aee Fix bug causing Login to hang when called from another AsyncTask 2012-10-17 21:09:04 +05:30
YuviPanda
76fc431532 Properly retreive account from AccountManager for auth 2012-10-17 17:53:30 +05:30
YuviPanda
e3a2384956 Multiple upload notifications work!
And they are no longer ongoing! Fixes #5 and #6
2012-10-15 21:44:50 +05:30
YuviPanda
eacb733dd5 Update username field to not show suggestions
Also fixes #2
2012-10-15 15:09:56 +05:30
YuviPanda
247d8a9224 Dismiss progress dialog when login fails
Fixes #1
2012-10-15 15:03:45 +05:30
YuviPanda
802e6aa9ed Added Commons AccountManager (Authentication Provider!)
Also updated version of java-mwapi to support cookie based auth
2012-10-15 00:42:13 +05:30
YuviPanda
d59b1700c8 Update progressbar less often 2012-10-14 15:43:53 +05:30
YuviPanda
6b40125982 Use much faster way of reading file length 2012-10-14 15:36:59 +05:30
YuviPanda
018c565f3b Upload progressbar works properly! 2012-10-14 15:30:33 +05:30
YuviPanda
887d5e7894 Show Toast at more appropriate place 2012-10-14 15:05:05 +05:30
YuviPanda
c3aaeb0d59 Progress reported a lot more granularly!
Updated version of java-mwapi used
2012-10-14 15:00:45 +05:30
YuviPanda
9175eaed95 Upload properly from the background. Push out notification
Also update java-mwapi to support progress callbacks
2012-10-14 14:32:32 +05:30
YuviPanda
5beb650063 Upload files in the background, untied to any Activity! 2012-10-11 19:54:59 +05:30
YuviPanda
30021b26d6 Minor style adjustments 2012-10-08 00:16:59 +05:30
YuviPanda
883f12fe63 Switched to Holo Light theme 2012-10-07 17:51:44 +05:30
Isaac John Wesley
309d4f7726 Added icons & layout fixes 2012-10-07 17:48:33 +05:30
YuviPanda
6e60e27f9e Added minimal notifications for upload & completion 2012-10-07 17:48:05 +05:30
YuviPanda
1b512f1e83 Updated to proper Android version 2012-10-07 15:20:12 +05:30
Isaac John Wesley
297d7226d6 Translucent Theme for Actionbar
Conflicts:

	src/org/wikimedia/commons/CommonsApplication.java
2012-10-07 15:00:50 +05:30
YuviPanda
650095c64f Add clarifying comment 2012-10-07 12:42:01 +05:30
YuviPanda
ee6515b4ad Fix bug causing larger image sizes to not load 2012-10-07 12:33:06 +05:30
YuviPanda
d7ad63ad38 Make uploads work with WMF wikis
They use HTTP/1.0, so no HTTP Chunked Transfer. Took me a fucklong
to actually find that out - almost 5 hours as I chased wrong leads,
looked for bugs in the HTTP libs, battled poor network, etc. But
was relatively easy to spot once I started logging HTTP requests.

Now, if only Java had a decent documentation browser...
2012-10-07 01:26:20 +05:30