Win a copy of Rust Web Development this week in the Other Languages forum!

asha Pawaskar

Greenhorn
+ Follow
since Jun 25, 2010
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by asha Pawaskar

hi Ankit

Thanks, it's working.
11 years ago
Hi

How to get the cursor position in the editText and how to add a character at that position?

I have tried with Selection class but no use because it has methods like getSelectionStart() and getSelectionEnd().

I want to get the position of the cursor?
11 years ago
hi

what is the difference between

String s = "abc"; and
String s = new String("abc");
11 years ago
Video problem:
I am trying to play video file from remote url, but not able to play it, I am getting dialog box saying "Sorry this video can not be played"....

I am playing .3gp file.....

If I place same file in sdcard and play then it works smoothly....

here is the code for video play

11 years ago
Hey try with this


// do something
break;

}
}


[/code]


11 years ago
But my file is not in the local directory... so I can't use FileDescriptor

I want to play it from the remote location (like by giving http video link)

and second thing is I have installed Darwin server and there are some sample video files in the Darwin server which I am trying to play, but I am getting Dialog box saying "Sorry this file can not be played", as I have already mentioned...
11 years ago
Hi all

I am developing a audio and video streaming application.

I have installed Darwin streaming server on my system and it is running.

Audio problem:
i am able to play audio file, using http protocol from some remote location but not able to play it from Darwin server (using Rtsp protocol). It is not showing any error on the sreen but in DDMS it says

Command PLAYER_INIT completed with an error or info PVMFFailure and some bizarre message


here is my code for audio play:

MediaPlayer mp = new MediaPlayer();
mp.reset();
String link = "Rtsp://localhost/sample.mp3";
mp.setDataSource(getApplicationContext(), Uri.parse(link));
mp.prepare();
mp.start();


Video problem:
I am trying to play video file from http as well as rtsp, and for both I am getting dialog box saying "Sorry this video can not be played".... and in DDMS it says "Command PLAYER_SET_DATA_SOURCE completed with an error or info PVMFErrNotSupported"
I am playing .3gp file.....

If I place same file in sdcard and play then it works smoothly....

here is the code for video play
Play.setOnClickListener(new OnClickListener() {

public void onClick(View v) {

videoview.setKeepScreenOn(true);
videoview.setVideoPath("Rtsp://10.30.10.13/sample_50kbit.3gp");
// videoview.setVideoPath("http://www.mobileplayground.co.uk/video/Crazy%20Frog.3gp");
videoview.start();
videoview.requestFocus();

}
});

please help.... it is urgent
11 years ago