Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
REST with Spring (video course)
this week in the
Android + RTMP
Joined: Feb 12, 2010
May 06, 2011 06:04:54
I'm making an android app that must stream video in real time from device to a server.
I'm trying to use the RTMP protocol, and by the last two weeks I'm trying do it...
The problem is: how to link the result from MediaRecorder (the video) to RTMP protocol?
recorder = new MediaRecorder(); recorder.release(); recorder.setVideoSource(MediaRecorder.VideoSource.CAMERA); recorder.setAudioSource(MediaRecorder.AudioSource.MIC); recorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4); recorder.setVideoSize(176, 144); recorder.setVideoFrameRate(15); recorder.setVideoEncoder(MediaRecorder.VideoEncoder.MPEG_4_SP); recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); // recorder.setMaxDuration(5000); //limit to 30 seconds recorder.setPreviewDisplay(holder.getSurface()); recorder.setOutputFile(OUTPUT_FILE); recorder.setOutputFile(pfd.getFileDescriptor()); recorder.prepare(); recorder.start();
Here is the MediaRecorder setup, the video will be placed at OUTPUT_FILE path. But I want to put this video at the RTMP.... :s
How to do this?
Any help will be GREAT!!!
I agree. Here's the link:
subject: Android + RTMP
Android Video Chat
Connect MySql to Android
How to get Video/Audio File icon?
Conference on Android
FMS server - java client
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015