Android :: Play Video From Remote URL - Getting - Http Request Failed 404

Nov 18, 2010

I am New to android my intention is to play video using Http. But i am "Http Request Failed 404" Exception when iam trying to run my application in emulator.
can any one know this error?

Android :: play video from remote URL - getting - Http Request Failed 404


Android :: Playing Audio Or Video From Remote URL - RTSP/HTTP

Nov 4, 2009

Did anyone try playing audio/video through http/rtsp. I am having a problem with either of the approach.... I am getting an error Command PLAYER_INIT completed with PVMFError I some cases I got Command PLAYER_INIT completed with PVMFErrorContentInvalidForProgressiveDownoload.

Can some one explain what is the problem. The code snippet I am using is given below. Code...

The code works fine when I say mVideoView.setVideoPath("/sdcard/vv.3gp"); but not able to play if I give a rtsp/http urls. In case of http it says PVMFErrorContentInvalid for progressive download.

Can some body tell me what is the problem. Can you please post the code if someone has been successful in playing audio/video through http/rtsp.

View 8 Replies View Related

Android :: Performing A Http Request?

Apr 13, 2010

Could someone provide the basic code to use if I want to perform a http request on android to the address "address" with the string "message" ? Also I'd like to check the server response and perform some actions if the right conditions meet , but I ' m unsure of how and when the server send back the response . My guess is that the response is gotten in a blocking function, or in an asynchronous function . Could you provide code or information on this as well ?

View 1 Replies View Related

Android :: Add Parameters To A HTTP GET Request?

Jun 2, 2010

I have a HTTP GET request that I am attempting to send. I tried adding the parameters to this request by first creating a BasicHttpParams object and adding the parameters to that object, then calling setParams( basicHttpParms ) on my HttpGet object. This method fails. But if I manually add my parameters to my URL (i.e. append '?param1=value1¶m2=value2') it succeeds.

View 3 Replies View Related

Android :: Make In HTTP Request?

Aug 17, 2010

Is there a way to make an simple HTTP request? I want to request an PHP page / script on one of my website but I don't want to show the webpage. If possible I even want to do it in the background (in an BroadcastReceiver)

View 3 Replies View Related

Android :: Send And Receive Http Request

Mar 2, 2010

I am wanting to send a http request to Google.com from my mobile application but am unsure how to get about asembling the request. Anothing problem that i might in counter is how to handle the information that is returned. For example, i want to send a request for "local resturnats" to Google and have the results returned and then displayed to the user in a ListView. Am i going about this the right way? Is there an API that i could use (GoogleMaps or AJAX Search)?

View 5 Replies View Related

Android :: Reliable Http Request Needed

Aug 5, 2009

I have a game in development that makes http calls to my server. The server handles some database interaction and returns some XML for the game to parse. The issue is that the connection seems very unreliable. I believe my server is in part to blame for this because it can be somewhat unresponsive at times, but the frequency is MUCH greater when communicating with the phone than with a browser on a computer. I also notice that it gets worse when 3G is not available for the phone and it is on the edge network. Is there any way to code my app to make it more robust? Do I need to retry calls X times on failures?

Here is the code I am using now:

CODE:...................

View 3 Replies View Related

Android :: Protect HTTP Request From Being Called By Others

Jun 18, 2010

I have an Android application from which I want to upload some data to a database on my web server. As the MySql java library has a size of about 5 mb, I don't want to include it with the application.So I'll make a HTTP request for a php script and send the data with the URL as parameters. How do I make sure that only I can call this? I don't want people to sniff up the URL and call it outside my application.

View 3 Replies View Related

Android :: HTTP Request To Retrieve Data - How To Uncompress?

Jan 14, 2010

I am using httprequest to retrieve data from webservice, I know using tomcat we can compress response data using gunzip algo. But how can uncompress data to display, is un-compress is time consuming? Is there any other way to compress response and uncompress on android?

View 1 Replies View Related

Android :: Make An Http Request Using Cookies On Droid?

Mar 24, 2009

I'd like to make an http request to a remote server while properly handling cookies (eg. storing cookies sent by the server, and sending those cookies when I make subsequent requests). It'd be nice to preserve any and all cookies, but really the only one I care about is the session cookie.

With java.net, it appears that the preferred way to do this is using java.net.CookieHandler (abstract base class) and java.net.CookieManager (concrete implementation). Android has java.net.CookieHandler, but it does not seem to have java.net.CookieManager.

I could code it all by hand by inspecting http headers, but it seems like there must be an easier way.

What is the proper way to make http requests on Android while preserving cookies?

View 3 Replies View Related

Android :: App Keeps Dying After Http Request Results Put Into Layout / Fix It?

Nov 15, 2010

I honestly could not think of a good title. Sorry. Anyway, so I have an app that I am making where I pull information from my custom web api. I pull data from the api and fill in the layout with this information. Problem is it takes a while so the app stalls for a few seconds before the information is pulled since it is in the onCreate method of the activity. To resolve this I implemented a loading dialog. This is where the problems began. I put the http requests into a seperate thread and it downloads fine. No problem. However it keeps force closing every time I try to modify the layout afterward. So basically my question is how do I modify the layout after the background thread is finished? Everything I try keeps force closing the app.

View 1 Replies View Related

Android :: Way To Identify A Handset On Server Side Of An Http Request?

Oct 9, 2009

Is there a way I can identify a handset on the server side of an HTTP request? I realize many headers are included on the request, but I am uncertain as to how the handset might be uniquely identified? Perhaps the Sim signature or some such fingerprint?

View 3 Replies View Related

Send HTTP Request From App To Script On Website?

Feb 24, 2012

I'm trying to send an http request from my app to script on my website. The script simply writes the parameters received from the request. If I send the request from a browser it works, so the script is ok, but from my app nothing happens.

This is the code I'm using. The toast at the beginning is only to check if the parameters arrive correctly to the function, they are correct.

Code:

public void postData(String from, String to, String date, String time, String searchby, String type, String orderby) {
String testo = from+" - "+to+" - "+date+" - "+time+" - "+searchby+" - "+type+" - "+orderby;
Toast toast=Toast.makeText(this, testo, 6000);

[Code]....

View 2 Replies View Related

Android :: Total Control Remote Edition (IR Remote) Video

Jul 26, 2010

added a quick demo video of our upcoming Android Infrared (IR) Remote.Initially it will support a full IR dbase of 300,000+ IR codes, IR learner for any code not in the dbase, Pre-Built GUI so it is simple to setup. Will add rs232, relays, and other tcp options also after initial release.

View 5 Replies View Related

AsyncTask Force Close Errors / HTTP Request To MySQL Database

Aug 22, 2012

I'm trying to connect my app to a MySQL database to retrieve data. Obviously I have to do this in a new thread hence why I chose AsyncTask, something I'm new to.

I have included Toasts to tell me if there are problems when trying to carry out any part of it. However these toasts are not showing on the UI thread. I tested this out by turning off the server my SQL database is on so that it could trip the first toast. It didn't show it though and instead it gave me a force close error. When my server is running I have no issues and although I haven't coded the bit to retrieve data yet the code below does connect to my database and at least lets me view the page "CurrentSeasonDrivers".

Here is my code and the logcat showing the errors below that:

packageĀ com.android.history;
importĀ java.io.BufferedReader;
importĀ java.io.InputStream;
importĀ java.io.InputStreamReader;
importĀ java.util.ArrayList;
[code]....

All I want it to do is show a toast if the application cannot connect to the server instead of force closing.

View 4 Replies View Related

Android :: Remote Service Returning Value From Http Transaction

May 6, 2009

I've been researching how to best implement a service which performs a network transaction and returns data to the caller.

Clearly, this needs to happen on its own thread which means some form of async response. I can see at least three ways of doing this--some more complex than others. In the descriptions below, C is the caller, S is the service.

1) C wraps a Handler in a Messenger object, adds this to an Intent. C then calls startService with this intent. S extends IntentService which runs the Intents received in a worker thread. S then sends a message to C via the Messenger. This has the benefit of not requiring any of the async binding process or making an IDL interface that needs to be compiled into C. This seems to be the closes to a Handler-based response mechanism of Local Services.

2) C binds to S and then uses AsyncTask<> to make a blocking call to S. S performs the network transaction and returns the data in the return value or an out parameter. This requires the async binding process, but does not require a callback function since the inter- thread communications is handled by AsyncTask<> and the worker thread is in C's context.

3) Make the function called in S be completely asynchronous. S defines two interfaces: IMyService and IMyServiceCallback. S implements IMyService.Stub. C implements IMyServiceCallback.Stub. C binds to S then calls S via IMyService, passing its IMyServiceCallback binder. S spins up a worker thread and returns immediately. S then calls the callback when it has completed the network transaction.

I am asking for advice on which methods are most appropriate. I do not need the the service running constantly, only when the web transaction is required. C does not use S all the time--definitely don't want to bind during C's onCreate. However, I would like the time from when C determines it needs to use S to getting the results back to be as quick as possible (i.e. adding minimal latency to the already latent network access).

Is there any preference to having the worker thread in C or in S? Are there any significant problems with option 1?

View 11 Replies View Related

Android :: HTTP Connection Failed Via Proxy

Apr 26, 2009

I have set up proxy in the sdk emulaotor and can access internet via the proxy in the browser. but this does not work for my http connection application, it gives "Unknown host exception" i have used -dns-server option when launch the app.

View 2 Replies View Related

Android :: How To Create HTTP Request / How To Create Connection Object?

Jul 17, 2009

How to create an HTTP request object of POST type in android? Which class need to be extend or what method need to implement? How to establish connection to a server? Actually i want to connect to a microsoft exchange server, and then i have to send a request to it using HTTP.

View 8 Replies View Related

Play Video File On Android Device But Getting Error - Cannot Play Video

Aug 7, 2011

Im using Eclipse created new android project.First thing i added to the menifest xml file two lines:

Code:
uses-permissionandroid:name="android.permission.INTERNET"></uses-permission>
<uses-permissionandroid:name="android.permission.STORAGE"></uses-permission>

And this is the complete menifest file code:

Code:
xmlversion="1.0"encoding="utf-8"?>
manifestxmlns:android="http://schemas.android.com/apk/res/android"
package="com.AllFormatsVideoPlay"
android:versionCode="1"
android:versionName="1.0">
[code]....

Now i tried to play a video file .3gp from the internet youtube link via my android device ! not emulator. And it worked! But when i tried to play a video file .3gp or .mp4( i converted the mp4 from 3gp ) its not working. Im getting error "Cannot play video Sorry, this video cannot be played"

Tried to play with the link to my device wich is: I:DCIM100MEDIAVIDEO0030.3gp or .mp4 or tried this: I:/DCIM/100MEDIA/VIDEO0030.3gp with "" like: "I:/DCIM/100MEDIA/VIDEO0030.3gp ";

I tried to remove the I: but it didn't change anything.This is the main code im using to play the video files on my device. And there some lines i marked with // wich i used to play from the internet and im not using now.

Code:
com.AllFormatsVideoPlay;
import
android.app.Activity;
import
android.graphics.PixelFormat;
import
[code]....

View 7 Replies View Related

Android :: Progressive Download Of Http Links - Play

Sep 20, 2010

In my android application i would like to download from a http link progressively and then play it.That is first save some bytes and play it in the meanwhile buffer the next file.

View 2 Replies View Related

Android :: Need HTTP - RTSP Video Streaming

Jul 26, 2010

I need HTTP/RTSP Video Streaming with Android. Any Ideas ?
Is that possible to go with JMF with Android ? Any Working examples ?

Already tried with
http://davanum.wordpress.com/2007/12/29/android-videomusic-player-sample-from-local-disk-as-well-as-remote-urls/

Its not working with my case. Are there any specific types of videos that Android can stream?

View 1 Replies View Related

General :: Play Music Android Remote

Aug 8, 2013

I am interested in swapping to Google Play Music from Spotify. However, I am yet to find an android app that allows me to remotely control playback of Play Music on my desktop.

Play Music is now available in Europe and the US and I am sure its user base is only going to grow. This, combined with the fact that there are no such apps at the moment.

Play Music has a wide range of keyboard shortcuts that can be found here. If the app is capable of sending these keyboard commands to the Play Music tab in the browser then it should be able to have quite extensive control over Play Music. Most of these remote apps require a server component installed on the target computer. I was thinking that perhaps this could be achieved via a Chrome extension so that it can remain platform independent.

View 1 Replies View Related

Android :: Google Reader API Request Token - Get 400:Bad Request

Jul 8, 2010

this Android code worked fine before, but i'm having problems for some reason. here is the request i'm trying to make: https://www.google.com/reader/api/0/token. i'm getting 400:Bad Request as a response, and i'm not sure why. isn't this the correct URL for requesting a token? the auth token is being passed as a header in all requests now, and i can request feed list, and it works just fine, so there's nothing wrong with the auth code. what gives? in addition, i can request a token in a normal browser, like Chrome, and get a token as a response body. so the request itself is not the problem. i just can't figure out what is wrong with my requests in code...

View 1 Replies View Related

Android :: Buffering While Reading H264 Video (Using HTTP Protocol)

Oct 13, 2010

I'm developing an application on Android 2.2. This application have to read some h264 videos using HTTP protocol. To read a video, I'm using following methods :

// INIT PART mMediaPlayer = new MediaPlayer(); mMediaPlayer.reset();
mMediaPlayer.setOnErrorListener(this); mMediaPlayer.setOnBufferingUpdateListener(this);
mMediaPlayer.setOnCompletionListener(this); mMediaPlayer.setOnPreparedListener(this);
mMediaPlayer.setOnSeekCompleteListener(this);
mMediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);

// SET DATASOURCE mMediaPlayer.reset(); mMediaPlayer.setDataSource(url);
mMediaPlayer.prepareAsync();
In prepareAsync callback : public void onPrepared(MediaPlayer mediaplayer) { mMediaPlayer.start();
}

View 2 Replies View Related

Android :: Making Video Files Ready For Playback Over HTTP

Jul 9, 2010

I am working on an Android application which is supposed to play videos over HTTP on Android devices. Before we setup a server to host the video files just wanted a few things clarified: As per the developer documentation, Android supports .mp4 and .3gp container formats for video.

The audio-video codec used for our media files is H.263(video) and AAC LC (Audio). I did a little experiment and passed URL of one of the video files to the MediaPlayer class and got the following error: Command PLAYER_INIT completed with an error or info PVMFErrContentInvalidForProgressivePlayback.

From the docs, I came to know that for progressive playback, the video's index (e.g moov atom) should be at the start of the file. How do we make our videos Android-ready? What are the different considerations that we need to make?

View 4 Replies View Related

Android :: Video Files Playback Over HTTP - Supporting Formats

Jul 9, 2010

I am working on an Android application which is supposed to play videos over HTTP on Android devices. Before we setup a server to host the video files just wanted a few things clarified: As per the developer documentation, Android supports .mp4 and .3gp container formats for video. If we use H.263(video) - AAC LC (Audio) audio-video codec used for our media files will we be able to play the video by passing the URL to MediaPlayer class?

I did a little experiment and passed URL of one of the video files(.mp4) to the MediaPlayer class and got the following error:
Command PLAYER_INIT completed with an
error or info
PVMFErrContentInvalidForProgressivePlayback

From the docs, I came to know that for progressive playback, the video's index (e.g moov atom) should be at the start of the file. Questions:
1. How do we make our videos Android-ready?
2. What are the different considerations that we need to make?

View 1 Replies View Related

Android :: How To Display Video In Emulator From Remote URL

Sep 15, 2009

I am using the following code to display a video file in the android emulator,it works fine when the video file is stored in a SDcard.But when i give any URL of a video the code not working.

import android.app.Activity;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.view.SurfaceHolder;
import android.view.View;
import android.widget.*;

public class playerActivity extends Activity
In the above code if change the path variable the Emulator screen is black with single button.May be i have to do some more things to display the video from the Remote URL,i dont know what to do.Any one having any idea about this please help Me.

View 3 Replies View Related

Android : Video Streaming From Phone To Remote Computer

Sep 27, 2010

The problem I have is in the implementation of a video streaming application. What I need to do is to stream live what I record with the androids' camera, to a remote computer. I managed to establish a connection between the mobile phone and the computer, but I do not know how to send the video.I searched through forums, and I found out that in order to send a streaming video you have you use the ParcelFileDescriptor. So I created an instance of MediaRecorder with encoding H263 and .mp4 file format, I created a Socket and then I created a new ParcelFileDescriptor connecting it with the socket. If that is correct then the android application that I created is functional.What I don't know now is what to do at the side of the computer in order to receive and view the streaming video. I tried using JMF, but it doesn't support .mp4 video files. What do you suggest me to do? Or where to look in order to find a solution?

View 2 Replies View Related

General :: Video From Android Camera To Remote Computer

Jan 28, 2014

Is there anyway I can stream camera video from android online outside of wifi routher so I can see video from remote computer?There are copule of solutions but those app only stream video from android to pc over the same wifi routher. Good program for that is Ip webcam.

And you can also send that video to another android device with tinyCam Monitor.But I want to stream it online so it could be accesed by remote computer! One solution is with IP Camera Adapter so you could use video from android as your webcam in skype.

But this is too complicated because you must have your computer turned on, and skype opened. Some other solutions have same problem because you must have your computer on.

I found one really difficult solution with port forwarding and you have to open host on .no-ip.biz...So, can it be done only from android phone with one or two programs.

View 3 Replies View Related

HTC EVO 4G :: Best Remote Connection App To Play Online Poker?

Jul 9, 2010

I want to remote connect to my desktop from my phone so I can play online poker when I'm not at home. I've used log me in, but it is beta and it crashes. What is the best remote connect app out there that WORKS including paid apps?

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved