Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8101067
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T22:53:43+00:00 2026-06-05T22:53:43+00:00

What I want is to broadcast an android camera video to remote locations, for

  • 0

What I want is to broadcast an android camera video to remote locations, for anyone to watch that video on their mobile or website.
I’ve been succesful to unicast it to the vlc player on my pc.
I tried red5 server, Adobe media server, ffmpeg server but all in vail.
Each of them was only able to broadcast video from a prerecorded file but not from any live stream.
Can any one suggest me what i do.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T22:53:47+00:00Added an answer on June 5, 2026 at 10:53 pm

    I read (I think it was even on stackoverflow) that you can provide the MediaRecorder with a FileHandle of a TCP-Connection. Then you can listen to that connection, read the data, packetize it and resend it as a RTSP/RTP-Stream.

    If I happen to find the original post, I’ll reference it here.

    EDIT:

    The original Post was: Streaming Video From Android

    And the part about the Filedescriptor is from: http://www.mattakis.com/blog/kisg/20090708/broadcasting-video-with-android-without-writing-to-the-file-system

    Just in case, I cite the according example from the blog:

    String hostname = "your.host.name"; 
    int port = 1234; 
    Socket socket = new Socket(InetAddress.getByName(hostname), port);
    ParcelFileDescriptor pfd = ParcelFileDescriptor.fromSocket(socket);
    MediaRecorder recorder = new MediaRecorder(); // Additional MediaRecorder setup (output format ... etc.) omitted 
    recorder.setOutputFile(pfd.getFileDescriptor());
    recorder.prepare();
    recorder.start();
    

    However this only sends the Video File Data over the wire. You can save it and then play it back. But as mentioned, it is not a stream, yet.

    UPDATE:
    You do not even have to use a TCP Socket for the first step. I just tripped over “LocalSocket”(1), that also gets you a FileHandle to feed the MediaRecorder. Those Local sockets are “AF_LOCAL/UNIX domain stream socket”s. See http://developer.android.com/reference/android/net/LocalSocket.html

    I have not tried all the above myself as of today, but will pretty soon. So maybe I can be of more help in the near future 🙂

    (1) LocalSocket is not usable on newer Android versions for security reasons! See Update from 2015-11-25.

    UPDATE 2:
    Just saw in the Android Sources the “OUTPUT_FORMAT_RTP_AVP”. But it is hidden 🙁 So I guess it will be available in future API versions of Android.
    https://github.com/android/platform_frameworks_base/blob/master/media/java/android/media/MediaRecorder.java Line 219:

    public static final int OUTPUT_FORMAT_RTP_AVP = 7;
    

    I have not tried just tricking the hide by providing a hardcoded 7 … If anybody does, please leave a comment here!

    UPDATE 2015-11-25

    I just ran into libstreaming: https://github.com/fyhertz/libstreaming
    I did not look into it too deeply, but it seems there is a lot to be learned about streaming from Android from this project (if not only using it). I read there that the LocalSocket solution is invalid for newer Android versions 🙁 But they present an alternative: ParcelFileDescriptor.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I develop the first part of an Android application that allows to broadcast video
I want to broadcast messages locally to many application. For that I thought UDP
I want to make an app that can receive broadcast when other apps on
I want to know the difference between services and broadcast receivers, can anyone point
Ok so I have a simple Android app that I want it to go
I want to resend received SMS_RECEIVED broadcast. I've find example here: http://blog.dev001.net/post/14085892020/android-generate-incoming-sms-from-within-your-app and make
I want to track the number of messages that are sent from an android
I have a question about Android application status. I want to know that am
I am new to android widget.I did sample application , that want to show
Am using Urban airship push notifications for Android. In that , i want to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.