Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to stream audio and video with the MediaRecorder #42

Open
raghavrao1 opened this issue Jun 10, 2014 · 2 comments
Open

How to stream audio and video with the MediaRecorder #42

raghavrao1 opened this issue Jun 10, 2014 · 2 comments

Comments

@raghavrao1
Copy link

I am having issues streaming audio and video with the MediaRecorder option, MediaCodec works fine. The issue i see is that both AudioStream and VideoStream try to open and start media recorder. How would that work since only one instance of Media recorder can work at one time.

.setAudioEncoder(SessionBuilder.AUDIO_AMRNB)
.setVideoEncoder(SessionBuilder.VIDEO_H264);

Your response would be greatly appreciated.

@themagge
Copy link

I am struggeling with the same thing - did you ever find a solution?

http://stackoverflow.com/questions/25377211/android-live-streaming-video-audio-not-working

@raghavrao1
Copy link
Author

I got everything to work. I am using MediaRecorder option for Video, and MediaCodec option for audio. I was able to get the Android device act as an RTSP server, but since this does not scale well for multiple clients , i made the android device an RTSP client and connected it to Wowza, which can stream further to multiple clients. I am working towards writing my own packetizer for different streaming protocols since RTSP/RTP/SDP is not secure and uses quite a few ports as wells as both TCP and UDP at the same time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants