Android :: File Upload - Work With Audio And Video
Mar 18, 2009I have included my code below. I have the code working for image uploads, but was wondering how to get it to work with audio and video files?
CODE:......................
I have included my code below. I have the code working for image uploads, but was wondering how to get it to work with audio and video files?
CODE:......................
I want to stream a media file on web, and android developer website has said that MediaPlayer.setDataSource() can set the data source (file-path or http/rtsp URL) to use. But I got an error in both G1 device and emulator when streaming a rtsp url file: Command PLAYER_PREPARE completed with an error or info PVMFailure error(1, -1). Does anyone know what is this error, or anyone knows where can I get the error description (1, -1) means? the code can work successfully when playing a audio/video file or streaming a http protocal sudio/video file, but can't stream rtsp protocal file. Is android not supported rtsp streaming?
View 4 Replies View RelatedThe HTC web site claims support for .mp4 and .wmv playback but I have had no luck. I have used various programs from HandBrake to Sony and I can get audio with no video (mp4). I can get audio with still image video (wmv). The DI seems very picky as to which videos it will actually play back. Is there a recommended way to convert my videos / DVS into a format the DI can play?
View 1 Replies View RelatedThe audio/video works perfectly if I watch the recording on my phone, but when I email the video to my gmail account and save it to my computer, it opens in Media Player and there's no sound. Does anyone know how to fix this? I have a Samsung Moment.
View 3 Replies View RelatedBasically I have a video clip in .WMV and I wan't to take the audio and make a ringtone out of parts of it.
For some reason on my mac I can't get this to work with Audacity.
The audio/video works perfectly if I watch the recording on my phone, but when I email the video to my gmail account and save it to my computer, it opens in Media Player and there's no sound. Does anyone know how to fix this?
View 1 Replies View RelatedIs there an Android equivalent to the iOS Core Audio / Audio File Stream Services? I need to be able to read audio bytes from a network and feed them to the audio system under my control, so I can do my own timeouts / reconnects / range requests / etc. without interrupting the audio playback (since the system audio thread would be playing audio already enqueued). It seems that MediaPlayer doesn't give me this level of control. Is there a lower-level framework that does, either in the SDK or NDK?
View 2 Replies View RelatedI'm a novice user writing my first android application. I have the need to upload a file to a webserver from the device. I googled enough before joining this forum and not at one place did I find a suitable solution. I would like to know how to launch the file browser when user clicks on the "Browse" button to upload a file.
View 3 Replies View RelatedI want combine two audio files. (A audio file + B audio file = AB audio file)So, my search result is:
1. useing an AudioTrack.
2. decode PCM from audio file.
3. combine PCM.
This is currect? It there another way?
I am working on a application that would allow users to play remote files. My question is how do I open those remote files to be played in the default android player?but this does not give me control of what is happening!
View 2 Replies View RelatedI'm writing an Android app where users can upload video to Youtube. I'd like the Youtube tag field to be pre-filled with a tag that I set. I'd also like the UI to work like this: user clicks on an Upload button, user goes straight to Youtube upload intent (rather than picking from a Chooser), tag field is pre-filled for them.
Is this possible using ACTION_SENDTO?
Currently I have this code, which just launches a Chooser, which really isn't what I want:
btnUpload.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
//uploadToYouTube();
//videoUpload();
Intent intent = new Intent();
intent.setAction(Intent.ACTION_SEND);
intent.setType("video/3gpp");
intent.putExtra(Intent.EXTRA_STREAM, videoURI);
try {
startActivity(Intent.createChooser(intent,
"Upload video via:"));
} catch (android.content.ActivityNotFoundException ex) {
Toast.makeText(Recorder.this, "No way to share!",
Toast.LENGTH_SHORT).show();
}
}
});
When I upload a video from the video gallery, it only lets me upload using wifi. Is there a different app or setting that will allow me to upload using the Sprint Network?
View 7 Replies View RelatedBelow is my codes for my camera application. how to insert the multimedia files into the blob storage of azure mobile services.
import android.app.Activity;
import android.content.Intent;
import android.graphics.Bitmap;[code].....
How do I upload a video onto my Facebook page from my HTC incredible? I keep getting a upload disabled message
View 1 Replies View RelatedI am trying to upload a file to some url using ssl.
I use this code to set trust manager -
CODE:........
And this one to set host name verifier -
CODE:.........
Then i am opening connection like this -
CODE:......
After i get the connection i use it to upload the data. Is i use http everything is ok but when i try https i get the following exception -
CODE:........
The strange thing is that i don't get exception all the time. When i try to upload small files (200K) it's working O.K. or it's crashing very rare but when i try to upload bigger ones (more than 1MB) i get the exception almost every time.
I'm searching for android phones that can use video out to the tv for a research project. I'm considering the HTC Touch Pro.
Is there anything I have to do specifically to get the video out to work (for displaying my app on the tv)? or will the phone just display a running app on the tv without extra work?
how to upload android phone video to imac?
View 1 Replies View RelatedI'm writing an app that uploads files to a web service. My question is how to write a Service to handle this: I want to upload in a background thread (or process not sure of the precise wording), so that the user can go to other applications without interrupting the upload, and show a notification / kill the thread when the upload is complete.I'm guessing it should be a Service, with a Notification to show the user what's going on: but should it be a LocalService or a RemoteService, as per the API examples? And do I need to call a new thread once I start the service, or do all services by definition run in a different thread?
View 7 Replies View RelatedI'm try to get my android test app to upload a file to my Synology box cs407.
I've tried it though a HTML form and it works ok
HTML code is:
HTML Code:
<html>
<body>
[Code].....
I'm researching the development of an Android (2.2) app/service that will enable users to record short (I do emphasize short, < 30seconds) video on their phones and then upload that video (HTTP) to a server that will then transcode the video to other formats. That same user can download videos from other Android users and play them.
Now, I get a bit lost with everyones recommended approaches to all the issues in doing something like this because I haven't seen any ask this in a cohesive context. Ideally I would like a non commercial solution to this (as in no vendor/service being needed for the the video hosting/transcoding), but, feel free to include those as a recommendation (I've marked this as a wiki) as I know many like to use youtube and vimeo for the middle layer in all this.
The questions are
What server technologies do yo recommend for hosting and transcoding? What technology do you recommend for streaming the video (it would be nice to offer a high and low quality encoding depending on the users network connection) What video format and software do you recommend for converting the uploaded video on the server to be viewable later by other Android owners. Im assuming it's bad to do any transcoding on the phone prior to upload (battery/proc issues), but, if I'm wrong with that assumption what do you recommend?
The video will only need to render on an Android device, and in the future in a webkit html5 browser.
Bandwidth isnt cheap (even with numerous 30 second videos), so a good mix of video quality and video file size is important (streaming if needed to ensure quality vs. download). This is for android 2.2 devices with a video camera of course and medium to high density screen of 800x400 min. Open source solutions (server to receive the uploads, code to do the transcoding, server to do the streaming) are preferred, but not required. CDN's are an option, but I don't think that really figures in to the picture right now.
Every time that I try to upload a video it gets to 100 percent and then says failed authentication... What am I doing wrong? I made sure that I was logged in and it doesn't work.
View 1 Replies View RelatedI need to send files as large as 80 MB, but usually in the 15-25 MB several times every day. I use YouSendit, Megaupload and the like on my laptop. Would be a HUGE help if I could simultaneously upload from my Android phone. It has to be able to handle a folder. Basically, a folder full of pictures.
View 1 Replies View RelatedI've been trying to upload an APK file to the Android Market for a few days, and the upload process hangs with the spinning icon just rotating. I've let the upload run overnight and it still hangs.
1) The APK file is 28 MB
2) I've uploaded an APK file to the Android market before and it is now for sale.
Is there a way to find out what the error is?
I have a function I am using to upload files. How can I get the number of bytes of the file that have been uploaded (transferred)? Can I setup a timer that does this? If so, what variable to I read to get the number of bytes uploaded?
Here is my code:
CODE:....................
Which video player for Android supports "MKV" video file?
View 2 Replies View RelatedI shot a 10sec video, I don't see an option to upload it to FB, only photos.
View 2 Replies View RelatedI took a video today while I was out mountain biking, I thought 720p and all sweet, now I cant find a way to upload to Facebook anyone have any ideas?
View 15 Replies View RelatedIs there any information on extending the GMail application? Or better yet, I for one am relatively irritated that I can't email or upload non-picture/video files that I might have on my SD card, so I'd like to create a provider of some sort to enable the ability to upload or email any arbitrary file. Any ideas?
View 2 Replies View RelatedI need as simple as possible solution for uploading files (eg. photos) to my website from mobile devices (iPhone, Android, BB, Nokia). Is it possible to do it in same way? Using Java or XHTML?
View 2 Replies View RelatedIs possible to upload a file on apache server using commons-fileuploader jar file in android.
View 1 Replies View Related