Android Streaming Live Camera Video to Web Page

Long time back I am looking for a solution to stream android live camera video to a webpage over internet (not wifi). After doing some research I came up with a working solution by combining multiple components together. The tutorial helps you get started with real time video streaming.

If you are beginner, this article will introduce you to lot new things like real time streaming protocols (RTSP, RTMP), Wowza Media Engine, libstreaming, WAMP and jwplayer.

Below are the two protocols on which real time streaming really works. Go through the wikipedia links to get enough knowledge on underlaying technology behind real time streaming.

RTSP Protocol
Real Time Streaming Protocol is a networking protocol mainly used to stream real time media data like audio or video. It establishes a streaming session between client and server. In this tutorial we use this protocol while sending video stream from android mobile to streaming server.

RTMP Protocol
Real Time Messaging Protocol was developed by Adobe for Flash Player to transmit the realtime media (audio, video) between server and flash player. This protocol we use to receive video stream from server to flash player.

Below diagram is a high level architecture diagram of android video streaming. First android streams camera video to wowza media engine. Second wowza decodes the video and starts a streaming channel. Thirst webpage consumes wowza stream and plays the video on the page.

1. Downloading Libstreaming library

Building a RTSP library involves deep understanding of real time streaming protocols and good command over multiple java media APIs which is not easy for every beginner. Luckly Fyhertz made our lives easier by providing an excellent RTSP library called libstreaming for android. Using this library, streaming video / audio from android mobile can done with very few lines of code.

2. Installing & Configuring Wowza Media Engine

Wowza Media Engine is very popular streaming engine which can stream high quality video and audio. In our project it acts as server side streaming framework which receives video from android device and starts a streaming service which will be again consumed by webpage to display the video.

Wowza also comes with an admin panel called Wowza Media Engine Manager to control streaming channels, publishers and other stuff. Unfortunately wowza is not a free software, you will have to buy a commercial license. But don’t worry, it comes with a trail period of 6 months which is more than enough for testing.

2.1 Registration
In order to use Wowa media engine you need to register and get a license key first. The key will be sent to your email address after the registration. So make sure that you entered a valid email address instead of abc@abc.com 🙂

Once you complete registration here, you can find the license key in the email.

2.2 Downloading & Installing1. Download Wowza Media Engine from here2. Run the installer and enter the license key when it asks for it.

2.3 Creating publisher username and password
Once wowza installed, open Wowza Streaming Engine Manager from Start => All Programs. This opens up an admin panel in the browser. While streaming from android mobile, the streaming video needs to be authenticated with Wowza before start decoding it. So we need to create a publisher username and password first. These credentials we will use in our android app later.

2.4 Creating streaming channel
You can create your own streaming url in the admin panel. But Wowza already creates a channel(app) for you named live. I am going to use the same app in this tutorial. If you want, you can create your own.

Here we completes wowza setup. Now let’s start the android project.

3. Creating Android project

1. In Eclipse create a new project by navigating to File ⇒ New ⇒ Android Application Project and fill required details.

3. Now add the libstreaming project as a library project to our project. Right click on our project ⇒ Properties. It will open up a dialog window. On the left select Android and on the Right under Library add libstreaming project.

4. As we are accessing the camera, we need to add the permissions in AndroidManifest.xml first. Add INTERNET, WRITE_EXTERNAL_STORAGE, RECORD_AUDIO, CAMERA permissions in your mainifest file.

Now we are done with our android application. Let’s create a web application which displays the streaming video on web page.

4. Creating web app

4.1 Installing WAMP:
I have already explained lot of times what is WAMP and it’s use (here & here). Download and Install WAMP from http://www.wampserver.com/en/ and start the program from Start => All Programs. Once started, you should be able to access http://localhost/ in the browser.

4.2 jWPlayer
On the web page to play streamed I am using jwplayer which supports RTMP protocol. jwplayer is a flash player with javascript API enabled which means you can control the player with javascript methods.

Testing the app (localhost)

⇒ Start Wowza Enginer Mangaer from Start => All Programs. Once started you should able to access http://localhost:8088/enginemanager/ in PC browser.

⇒ Make sure that the mobile and the PC are in the same wifi network.

⇒ Use Android Terminal Emulator app to check communication between mobile and PC. If you execute “ping pc_ip_address“, you should receive some data.

⇒ Try accessing http://your_pc_ip_address:8088/enginemanager/ in mobile browser. You should see wowza engine manager home page.

Once you are sure that the PC and mobile are in the same network, open both the apps (android & web) and click on Start in web page. You should able to see camera video streamed to webpage.

Exploring the libstreaming

The android app that I have created in this tutorial is very simple which lacks of lot options like start/stop video stream, changing video quality, using camera flash, using front and rare cameras. My intention was to make it as much as simple, so that every beginner can understands it. But the example given by libstreaming covers all these advanced options.

Hosting the wowza server (going live)

If you are serious about going the app to be public where anybody can stream their camera video over intenet, you need to host the Wowza engine on a server. The following links will gives you a hosting solution to host Wowza Media Engine (personally I haven’t tried though).

Hi there! I am Founder at androidhive and programming enthusiast. My skills includes Android, iOS, PHP, Ruby on Rails and lot more. If you have any idea that you would want me to develop? Let’s talk: ravi@androidhive.info

I have been checking libstreaming library and I saw that it makes some recording test into mp4 file in order to know if this format is supported.
Can you give me some orientation of which part of library code would I have to change to record and stream?

4-
EncoderDebugger(12113): No usable encoder were found on the phone for resolution 176×144
H264Stream(12113): Resolution not supported with the MediaCodec API, we fallback on the old streamign method.

Hello,
I followed step by step this tutorial , however when i launch index.htm , i face this error : “Error loading player offline playback not supported” , then i downloaded your code source and the problem persists.

and thank you very much for this tutorial (excuse my english , i’m not fluent yet in)

Ajay

check your wamp server is started correctly or not.
If it status in green color than it is ok. else start your wamp server.

I guess you opened the index.html in the browser directly instead of opening it from wamp. The page should be opened through wamp server.

Siva

It captures the video,after 3 secs it shows Error 100. Media server died error in the LogCat .

Kevin

06-04 11:34:26.379: E/dalvikvm(3945): Could not find class ‘net.majorkernelpanic.streaming.gl.SurfaceView’, referenced from method info.androidhive.androidvideostreaming.MainActivity.onCreate
Run your code on Android 2.3
I imported “libstreaming” into “AndroidVideoStreaming” but it also have this error ?

jai mishra

Hi Ravi . First I would like to congrats. It is great tutorial. I got error i thing my wamp server is not working . I am getting error Error loading player offline playback not supported. i have seen discussion. Wamp is not showing green . Its red. Please help how to start this from wamp. I did all step but I am getting error here.

andre

Can this be use to stream directly to another android device within a app? Not by a broswer

Hey ravi! when im launching the index.html from wamp, i got this error Error loading stream, could not connect to server”, and my android device hangs…. can u pls provide a solution to this problem as early as possible…

Hi Ravi, can you please look at my issue as I am running in a bit of deadline and I can’t achieve success with Video broadcasting. Your tutorial is the giving me video on my end in other Android/iOS devices but i am unable to still fetch audio. Please help me with this little issue.Thanks a lot in advance.

samet

everything ok. i can hear audio but i cant see anything. sometimes i can see something. but this time broken show object. why ?

Joseph Anand

Great tutorial, thanks for doing this. If I wanted a permanent solution, what is a good free alternative to Wowza? I am just wifi streaming from android to laptop. Thanks again!

Check the example2 in libstreaming. You can use vlc player to stream from mobile to laptop.

Maria Papadopoulou

Red5 is a free media server but you should check if it suits your needs and this (awesome) example.

tigani jaber

ravi ineeeeeeeeeeeed your help ….i saved image to server then stored thier names in mysql iwant to retrivre them in listview how to do it………thanks in advance

Guest

Sir access forbidden…

Er Siddharth Sahni

me to face this problem

guest

how to add stream dynamically, here we are creating stream manually just for one user, also for different user there will be different wowza server address, i checked for wowza server api but i didnt get anything, need some solution

Maria Papadopoulou

In wowza server username and pass is not user authentication but it is used so you are authenticated to publish stream. If you want many users to publish stream you should include that option at server’s configuration file for publish. Is that what you asked?

question

can you give brief explanation on how to run example2, got the ip address but how to create sdp file and run through vlc?

jaber

Error loading stream: ID not found on server.

Denis Ladeira

Ravi, Trank you for tutorial, I very appreciate your work. Greetings from Brazil.

Please suggest a way to overcome this problem so that I can get Video and Audio at my end while boradcasting

Wish

Hi All,
I am also having same issue..please help me out.

Rajesh

Having the same problem ….. did you find any solution for that.

rohit mudgal

Thank you very much Ravi for the tutorial have been digging for the same since quite some time. It really helped me a lot, and I got everything working fine as per the tutorial. But I am stuck in quite a unique scenario, I need to record the video on the android phone also as well as rtsp it, but I cannot do it, the reason i guess is, that two processes cannot simultaneously access the camera, so since the rtsp process is consuming the camera, so the video recording process cannot. I would be really grateful if you can guide me for this.
Thanks and regards Rohit Mudgal

Varo

Great job mate. I have a requirement with my client to stream the video to another android device without an intermediary server like wowzza. Is there a tweak around doing this? Please let me know

Yeah, check libstreaming other example. You can build android app which works as client also. In other words which can receive a video stream from other device and play.

Varo

Cheers. I did look at that library but couldn’t do much as I couldn’t find much documentation. Unfortunately I’m a beginner and honestly lost. Is it possible to achieve streaming from one android device to another without a server

Ejeu Emmanuel

urgent help on a 1 day project android phone starts camera view but on wowza server no video viewed only id not found error hence phone not streaming to wowza

Hello,
My mobile and my pc are in the same network but i am getting the same error as Satya , help please and thanks!

Peter

Hello:

I need help with the java codes. I did everything like the tut said; but my MainActivity.java file have some errors:

some lines say: R can not be resolved to a variable

and in the onBitrareUpdate method, said: that the method must override or implements a supertype method. My java skills are null so please could anybody help me with this?

thanks in advance…

Ocramot

1) be sure to have the correct R import at the beginning of the file. If you’re using an IDE like Eclipse, the R file should be generated autoamtically. If it is not generated, then you must have some error in your xml files in the res directory.
2) there is a typo in the code: replace the onBitrareUpdate function with onBitrateUpdate

Gaurav Mehra

thanks

Guest

How to check the channel id???

Gaurav Mehra

Everything works fine but index .html shows id not found on server please reply asap i tried terminal for reply works fine and changed ip address to my ip address but it shows same problem please help asap

check the channel id. It should be same in both wowza and android app.

Iskander Islamov

How “check the channel id”?

Rajesh

try the test player it will try to run with the default channel id then copy that id and paste this to your android app now video should stream in test player.

softex

Remember to paste the jwplayer licence key into index.html

Siddhant

can i use apache tomcat instead of wowza?

Carmine Schipani

Hi, I must do an android app for my school and I don’t know why it doesn’t run. It’s an app like yours (android live camera video to a webpage) can you help me?

S_noor

I have tried to implement to implement the web application but i am getting not found “The requested URL /wowza_web_app/index.html was not found on this server.” i have added cs and jr folders to a folder in www and have copied all .jr files and .css files but i am not getting where i might possibly b wrong canyou please help
Thanks

Nilay Sheth

Hi Ravi,
I have successfully integrated the code in my app and it works fab. Now, is it possible to convert it into Portrait mode ? As I want this to work in Portrait mode as well. Please give me any suggestions or links to help in this matter.

zacky

The type MainActivity must implement the inherited abstract method Session.Callback.onBitrateUpdate(long)

i still get this error, anybody can help me?

Ocramot

there is a typo in the code: replace the onBitrareUpdate function with onBitrateUpdate

Guest

after install of WowzaStreamingEngine-4.1.0.exe , at time of finish , it giving error dialod ,something like: wowza machine can not start within 30seconds. then how to open next step ?

nirav

i got the error : “the wowza streaming engine manager didn’t start within thirty seconds.” at the end of the installation of WowzaStreamingEngine-4.1.0.exe, what is the solution of it ?

Excellent work Ravi thank you. I have made this working on localhost, then I wanted to get live, and I gave my pc a static ip and opened all the relevant ports on my router and again worked perfectly. Now I wanted to get it on the cloud, I tried the free trials with hosters that have wowza 4 engine included, I tried 5 different hosters and with no luck I can’t connect and I get error 401 (bad credentials). Does anyone had a solution for this??

Not wrong at all. You can try it yourself: http://hosting-marketers.com/ order a free trial (no credit card needed). Please have a try and tell me why the 401?

I even switched off the authentication on wowza engine and still same message.

Guest

Did you delete my reply? why!

Guest

Anyhow, the credentials are correct and anyway I switched off the authentication on server, could you please try this and reply to me? thanks

Guest

Anyhow, the credentials are correct and anyway I switched off the authentication on server, could you please try this and reply to me? thanks Ravi

plestarselvanr

Thank you very much Ravi. This is what exactly i’ve been looking for.
But unfortunately, i got the following error when i try to run this app
“The application androidvidestreaming has stopped unexpectedly.Please try again”
Can you suggest what the hitch is that?

Ocramot

Hello, I have no idea about what your hitch could be, but I suggest you to connect your device to the PC using a USB cable, and check the logcat using an IDE like Eclipse or AndroidStudio. Surely the logcat and the Stacktrace will contain some more useful hint. 😉

AKOTB

Ravi, I managed to get connected with cloud.influxis.com but now I get this error on their server side:
QTWriterUtils.loadForAppend[D:Contentew985kRecordingmystream_2014-09-24T17.50.35.mp4][index]: Bad atom length: -8
QTWriterUtils.loadForAppend[D:Contentew985kRecordingmystream_2014-09-24T17.50.35.mp4][index]: MDAT Atom is missing

Any suggestions? Thanks

Ocramot

Hello Ravi, thank you for your wonderful tutorial.
…anyway, i can not connect to the wowza streaming engine on my localhost: he keeps telling me that the connection is timed out.
I am sure the server is up and reachable, i tested it as you suggested in the “Testing the app (localhost)” paragraph; yet I cannot connect using your application as is.
Here is the stacktrace, any help would be appreciated. thanks!

TEARDOWN rtsp://192.168.42.23:1935/live/myStream RTSP/1.0
java.net.ConnectException: failed to connect to /192.168.42.23 (port 1935): connect failed: ETIMEDOUT (Connection timed out)
at libcore.io.IoBridge.connect(IoBridge.java:114)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:192)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
at java.net.Socket.startupSocket(Socket.java:567)
at java.net.Socket.tryAllAddresses(Socket.java:128)
at java.net.Socket.(Socket.java:178)
at java.net.Socket.(Socket.java:150)
at net.majorkernelpanic.streaming.rtsp.RtspClient.tryConnection(RtspClient.java:309)
at net.majorkernelpanic.streaming.rtsp.RtspClient.access$7(RtspClient.java:307)
at net.majorkernelpanic.streaming.rtsp.RtspClient$4.run(RtspClient.java:250)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:136)
at android.os.HandlerThread.run(HandlerThread.java:61)
Caused by: libcore.io.ErrnoException: connect failed: ETIMEDOUT (Connection timed out)
at libcore.io.Posix.connect(Native Method)
at libcore.io.BlockGuardOs.connect(BlockGuardOs.java:85)
at libcore.io.IoBridge.connectErrno(IoBridge.java:127)
at libcore.io.IoBridge.connect(IoBridge.java:112)
… 13 more

Nice, job, and I have make this work locally by following your steps. However I found that the video have delay of almost 5 seconds which means once I change the camera of the phone, I can see the new frames after 5 seconds in PC. I wonder if it can be improved?

I was wondering if you could host the web app as a google drive site. I suspect you could, but it would be interesting to see it in action.

Aditya Harikishan

Hi Ravi,

I am appreciating your for your work

We’re working on to develop a live video stream application based on android mobile camera. I used RTMP and RTSP ports using WOWZA server. It is working fine with almost all branded mobiles successfully. When the event is created and started broadcasting of video, data is posting successfully to server. But coming to some particular model mobiles like Micromax, Lenovo and etc., the app is not able to post the data from camera. The error message will be like ‘Try again..’ and broadcast is not successful.

As per my observation, the above said model mobiles are using MT65XX chipset. I tried on various mobiles using the same chipset and failed to broadcast the data. But other applications like Livestream, Ustream and working fine with these models.

Can someone help me to solve the issue with the above models so that my application runs successfully on all model chipsets.

I am working on to develop a live video stream application based on android mobile camera. I am using RTMP port using WOWZA server. It is working fine.

But i am facing a problem, Streaming is not working more than 5 hours, it get disconnected from WOWZA server. i need to develop application which should work in 24*7.

I would be really grateful if you can guide me for this.

Thanks

Даулетхан Султангазы

Hello! What library did you use for rtmp publishing?

Ashish Singh

I have used same library, which one is used above

Даулетхан Султангазы

Oh, and it worked with rtmp ? Can you show example how to use it ?

Ashish Singh

Above example is not working for you ? I have used above example and it is working for me

Даулетхан Султангазы

Above library (Libstreaming) work with RTMP ? I thought it’s working only rtsp. Did you just replaced rtsp to rtmp ?

Ashish Singh

Yes, I have replaced rtsp with rtmp and is working fine

Даулетхан Султангазы

I need to try it. Thanks you.

Даулетхан Султангазы

it’s not work for me. “Unable to resolve host rtmp://live.boomstream.com. No address associated with host name. Can you show me part of your code where you set rtmp address ?

Даулетхан Султангазы

Its not working for me. Can you show part of your code where you set server address ?

Teraiya Mayur

Hi Ravi,

It works fine broadcasting for me. It crash in Android Version 2.2. So Please update me if anything is missing or else. Waiting for you replay.

vidhin dev

Hi Ravi,

Thanks for your tutorial

I am working on to develop a live video stream application based on android mobile camera. I have downloaded your code while running the application it show the error
Error:
net.majorkernelpanic.streaming.exceptions.ConfNotSupportedException: invalid preview surface

Any suggestion? I’m waiting for your reply….

tigermasksim

Thank you, but It is successful with GoCoder android app, But not work with this android code and Libstreaming’s example3 code. The Network Throughput is all 0 at the Incoming Streams page of Wowza streamming engine manager.

Teraiya Mayur

Hi

I am also getting same issue . you got any solution yet ?

JasApp Time

Hi,

Have you found any solution. I am facing with the same issue. Even I try to use latest Library.

JasApp Time

Hi,

Have you found any sloution. I am facing with the same issue. Even I try to use latest Library.

megha

Hi Ravi,

I have successfully integrated the code in my app and it works fab. Now, is it possible to convert it into Portrait mode ? As I want this to work in Portrait mode as well. Please give me any suggestions or links to help in this matter.

Kirill

Hi Megha,

I wonder whether you were successful with converting the app to portrait mode. I am looking into similar problem. Specifically I am looking to the right way to crop captured image do that it stays landscape even when device is in portrait. (A way to avoid “vertical video” problem even when device is in portrait mode)

Thanks!

Çağan

Hosting the wowza server (going live)
If you are serious about going the app to be public where anybody can stream their camera video over intenet, you need to host the Wowza engine on a server. The following links will gives you a hosting solution to host Wowza Media Engine (personally I haven’t tried though).

I want to do at the above. How can i do that? How can i host wowza engine on a server? I just want that to allow my users on streaming live video using my app. Please help me 🙂

mmy

Hi everyone!
I have Start failed when run on real device, how to solve? thanks

Jerome

Same here, the app crashes when deployed to Android device.

Aditi

Yeah! I faced the same issue. Did you manage solving it?

ranjit rr

hi there, i have done with everything but when i open the app on my phone it gives and error saying “start failed” please help me some one…

parth

hey ravi can you help me …… i have an problem in connection with the phone to streaming angeen

parth

any one who comlited the streamiung plz help me

anoop

Hi Ravi & Guys, Do you know whats the latency observed (in wifi)? ofcourse it matters many other factors (bandwidth, load etc.). But just to know a rough value. I was able to get 5-6secs with other system in android + ubuntu server.

Ravi i would also like to know that is it possible to handle multiple device broadcast using wowza on the web site .

Like What i want to achieve is to make a app which allow multiple user to make live streaming at a time like more than 100 or 1000 users stream the video using the app & then people can access that stream from the site .

Nurlan

How can I stream voice as well using this app?

H!s1

By Will – Set SessionBuilder.AUDIO_NONE to SessionBuilder.AUDIO_AAC other than AUDIO_NONE in your activity.
I have tested its working…

Nurlan

I want to use desktop application with usb webcam instead android phone. Is it possible to rewrite android code to desktop app in java? If so can you please give some idea? Thanks!

Sourav

If i want to see the livestreaming from another wifi zone then what is the solution? Please reply ASAP

will

Great stuff man, thanks. For anyone not getting audio see the SessionBuilder creation in your activity, you need: .setAudioEncoder(SessionBuilder.AUDIO_AAC) or any setting other than AUDIO_NONE

Wowza Streaming Engine Manager could not connect to the Wowza Steaming Engine (http://localhost:8087). Verify that the Wowza Streaming Engine service has started and is running.

H!s1

Do exactly what this msg says… If you are on Windows Go to-> Task Manager-> See if your Wowza Streaming Engine service is running.. If Not then start it manually.
If you are working on Linux, Start services using terminal.

Bhavik Rajpura

Hi,

Thanks for sharing this code . I have use this project but I have run time error. my logcat is bellow.

03-17 03:21:31.075: W/ActivityThread(2358): Application info.androidhive.androidvideostreaming is waiting for the debugger on port 8100…

Ravi Excellent tutorial. I have a problem with me my only transmits audio video that can not be.

JasApp Time

Hi DAni,

Have you found any sloution. I am facing with the same issue. Even I try to use latest Library.

Mohamed

i have a problem, in the logCat i get this error “No usable encoder were found on the phone for resolution 176×144” can any one help me it’s urgent

Mohamed

please help???????

Mohamed

the android app seems to work fine and i receive the stream but the bytes coming in are 00.000 bites/s and the test player in wowza stream engine is not showing anything

Rehman

I have same issue, did you find any solution.

Mohamed

in the main activity try to change the session in initRtspClient() method to :

mSession = SessionBuilder.getInstance()

.setCallback(this)

.setSurfaceView(mSurfaceView)

.setPreviewOrientation(90)

.setContext(getApplicationContext())

.setAudioEncoder(SessionBuilder.AUDIO_NONE)

.setAudioQuality(new AudioQuality(16000, 32000))

.setVideoEncoder(SessionBuilder.VIDEO_H264)

.build();

this worked for me and you should disable the fire wall or the antivirus because sometimes the fire wall prevent the stream send,and make shure that the appconfig file contains valid url for the stream.

Rehman

Thanks for reply but here Network Throughput is all 0. Please any solution ??

Rehman

I done all step all thing are working good, i can’t see live streaming in Jwplayer it show just loading animation please help why i can’t see video

JasApp Time

Hi Rehman,

Have you found any sloution. I am facing with the same issue. Even I try to use latest Library.

Mohamed

install wowza local in your pc

Roya

hello..

i need to make video streaming on my server not localhost ..and both the android and my webpage running on different network..

any help ,please?

Roya

hello..

i need to make video streaming on my server not localhost ..and the android and my webpage running on different networks..

any help ,please?

Anil Kumar

Can I save the stream at server side ?

Mohamed

Great work Ravi ,it’s working perfectly , can get red of the surfae view so i can run it in background ? and how can i accomplish that ?

Hadeedian Hamza

hey mohamed…. h r u?? i need help about this project… i am student of university level…and i am new in android development… plz help… i am unable to integrate the “Libstreaming” library. please guide me… thanks in advance…

Hi Amer, i need some help please, i do the same of this tutorial but it didn’t work how can i change the IP in the URL in android part and web part, and if you can use successfully this tutorial or other app for live streaming from app to webpage please configure it to me ,thanks a lot

After import lib streaming library into Android Studio,I am not getting RTS interface .when I am implementing RtspClient.Callback interface that is not found in library.

imen

Hello,
I work also with android studio but i found a problem when i imported libstreaming library project to the VideoStreaming project as shown in the tutorial i always get Default configuration error can you tell me please how did you do this step with android studio, thanks a lot !

Sagar

Works like a charm. Great Tutorial. Just to add The streaming works perfectly on laptops/ PC but JWPlayer throws an error on Mobile Browsers. Any recommendations?

Jagat

Unable to switch camera from front to back and vice versa.

Kanguru

You Should use Session.SwitchCamera()

Jagat

How can do that?

Ashish Kumar

Hi Ravi,

The Tutorial was amazing and works on most of my devices , thanks a lot for such nice tutorial,
I
want to develop a application for live streaming but the application
giving me RRF error (Camera) and some times TRY AGAIN!!! on some of the
devices, Can you please help me out
Regards Ashish

ȜAmer Elsayed

i have same error have you solved it ?
Regards Amer

joan

Hi Folks, Impossible for me to import to Android Studio, Any guide or help?, thanks

satya&roid

I have installed Wowza engine. I have logined.But the problem is when I am clicking on server tab
I am not getting publishers option. So can anyone will help me?

Satyaki Mukherjee

Now it change, instead of publisher you will get Source Authentication under Server tab. On Source Authentication you can add source instead of add publisher.

Thanh Tùng Vũ

thanks

irfan

Can anybody guide me same thing but not using internet, only WIFI….

how can i stream voice over wifi from android to desktop C# application/ server ??????

Satyaki Mukherjee

Hi Ravi,

First of all thanks to you for such kind of nice tutorial . Can you please give me a suggestion about recording the video on android device also? What I have seen that streaming and recording on same camera or same device is not possible for me. Is there any way to stream and record at the same time from android device.

George

Thanks for the demo. But can you explain about the stream “android_test”, where did you specify the stream name? By default, it should be “myStream”.

carlos

how can I get the ip of my camera from my android phone, i want to do that from one phone to another

Avinash Shukla

hello when i click on start button on web page its showing “Error loading stream Could not connect to server.” please tell me…Thanks

JCDenton

Is ist easy to change the camera-streaming from the wowza server to a red5 server? Which step are necessary to use red5 for RTSP streaming? Is RTSP yet implemented for red5?

JasApp Time

Hello,
I set up all the things as mentioned.
When I run the application working ok but I can see only black screen on server, No video or No Audio there….

Please let me if something i missed.
Thanks

Kim Velker

Hello!

On every device I have tested, I don’t have the right aspect ratio. Instead of filling the screen horizontally, I get a smaller width than the one required. The aspect ratio of the video is 1.22, while the aspect ratio of the device is 1.77. I want to match the aspect ratio of the device. If I try to use mSurfaceView.setAspectRatioMode(SurfaceView.ASPECT_RATIO_STRETCH), the image is distorted, and the resolution I receive when I view the video is 1.22 and undistorted.

Kanguru

I have same question like you.

Kanguru

Hi everybody,

I want to get better resolution of video.
I try to set VideoQuality. But I can not obtain it.

Please give an advice!
Thank you!

ali

Hi,
I am trying to set this up but its not working for me, can you please send me an email on ali.javed2@mail.dcu.ie and help me.
I am having a problem in setting up android studio. If you can send me an email and i’ll tell you the exact problem i am having.
Please help.
Thank you.

ali

Hello Sir,

I am trying to SUBSCRIBE to download the code, When I put in my email address, it asks to check my account to verify, but i receive NO EMAIL IN MY ACCOUNT.
Please fix this.
Thank you.

Azim Khan

great work it is working on my system perfectly with android app great and thanks.

It is working on localhost but when I install it on my server this message is displaying “Wowza Streaming Engine 4 Trial Edition (Expires: Jul 21, 2016) 4.3.0 build16025”. how can I view the enginemanager home page.

Hi Ravi, thanks for your example tutorial.
after i follow all the steps, when i start the stream, why it always thrown “java.net.SocketException: Connection lost”. for network i using “Mobile network and Wifi”.
i can’t find a good solution.
please suggest me, how to fix it.

Sometimes we might not able to access the devices through wifi. Try to reset the router and try again (Note: By resetting router you will loose your internet settings. Note down your internet settings first)

I am casting my screen using mediaProjection. So instead of using camera I am casting my sreen. Can I do the same? And In this code,I want to know where the surface is rendered for streaming?

Thanks in Advance

Riris Rismawati

Hi Ravi,

Thanks for your awesome tutorial.
I have read it, compile it, and successfully compiled. Btw how can we make the streaming resolution to High Definition streaming. I have tried it but the resolution is very low 🙁

Thanks for your help,
Riris

ahtisham

The apps only run on smartphone, not run on website.
Can you help me.

Zouzou Nana

hello i have read this tutoriel carefully and I have all the stages, but I am having a problem when runnig android projcet so i need your help thanks

failed to connect to (port 1935):connection failed:EHOSTUNREACH(No route to host)

Prabha Vathi

I am also getting same problem.Please tell me the sollution

Le Thanh Tan

Dear Ravi
The apps only run on smartphone, not run on website.
Can you help me.
Thank you.

ahtisham

same probelm i am facing .. 🙁

Anshul

Dear Ravi,
I am new in android development. First of all thanks for this simple and useful tutorials.
I am facing few issues during running this project.
I got the error flash plugin failed to load. Can you please solve this issue.

Thank you

Al Noman

Hi Ravi,
Is that possible to stream ip cam’s video to the server?? If that possible then how?

Thank you.

Rajat Soni

Hello Sir, In wowza there is no option for add publisher.So what should i have to use for username and password?If any new things i have to implement apart from this then please help me

翁郁翔

Hello
I follow your code step by step.
And I do this on android studio, but here comes to an error
“Fail to connect to Camera service”.
And I checked twice that I did type the permission of camera.Do you have any idea about why this happen?

I continue to get message: error loading stream id not found on server. Port is ok i don’t know what else could be the problem?

Anurag Sengupta

yes even i am getting the same problem

Ivan Benke

are you solved problem?

Farina Ashfaq

Yes i am also have same problem :/ ???

Anurag Sengupta

hi ravi , i can’t get the wowza engine to work on my phone can you help , thanks

Eng.Amal Kronz

thanks for this tutorial, i make as you explain but it didn’t work i think it’s because the URL ,what’s part of URL can i change to be my PC IP

Anshul

Dear Ravi,
I am new in android development. First of all thanks for this simple and useful tutorials.
I am facing few issues during running this project.
I got the error flash plugin failed to load. Can you please solve this issue.

Thank you

Maddy

Hi Ravi, Can I use asp.net instead of PHP for web app??? Also can you send me the code. Available link is not working.

Thato Rammoko

Thank you for the beautiful tutorial Ravi Super grateful, I have one problem though the live stream has no audio how do i fix that?

Hello
I follow your code step by step.
And I do this on android studio, but here comes to an error
“Fail to connect to Camera service”.
And I checked twice that I did type the permission of camera.Do you have any idea about why this happen?

have u got any solutions. Coz i am also facing the same problem. will u explain how to connect and start the streaming. i have followed all steps.
1.downloaded the wamp server and accessing.
2.downloded the player but dont know how to access this.
3.I have tried with main application and example application.

plz help me in this

Farina Ashfaq

i have same issue u have any solution please tell me ??

Parth

What to do if I want to use an open source server like node-rtsp-rtmp-server instead of wowza.

Shashank Shekhar

Well I followed all your steps and I am getting the video but not the audio. Any help ?

Devesh Pandya

will u plz explain how you have done the streaming. m not getting the streaming.

plz help.
@disqus_M3WgmUUuy9:disqus

Shashank Shekhar

I just followed all the steps mentioned above. Change your ip from Appconfig and the html file to your own ip.

Shammer

Hi Ravi this is Shammer well i need to start initRtspClient() while clicking a Button ,and how to change Stream name everytime .

Devesh Pandya

can i use this application to direct the stream to computer without website?
i want to send the mobile stream to computer, but without any website help.

I have performed live streaming using Wowza and it is working fine, but what I actually want to do is to make other users able to see the live video streaming through their mobile phones. Like if they visit the URL on which I am performing live streaming, then they should be able to see the video. Any idea how I can do this ?

Sunilt Kumawat

Hello friends i need your help… Am facing the problem of quality of streaming..so can you tell me that how am increase the quality of video streaming…??

Thanks

Kyle

You can use HLS. Wowza will ingest the rtsp stream from your camera and re-package it into multiple stream types. One is HLS. The standard format for playing the HLS stream is “http://wowza_ip:1935/app/stream_name/playlist.m3u8”. Open that stream address in your mobile browser and it should play.

Sunilt Kumawat

Greetings! thanx for the tutorial I appreciate it. It helps me a lot. I followed the complete tutorial as shown. But I am facing camera related issues. When I start streaming the quality captured by the surface view is degraded. Even when my device have a superb quality camera. If anyone facing the same issue then please help me out. Any help will be appreciated.

Samet Karyürek

hi guys University homework this project but not working can you help me ?

Hi Ravi,I want to send audio only not video.When I remove surfaceview getting error,Please help me.

Habib Ur REhman

Hi
How to build an app that save video to desktop Pc( Laptop ) storage

sou

I want to change camera facing back to front on click on a button

Please help

sou

@r@ravi8x:disqus

Parshant Kumar

@ravi8x:disqus can i download the same video ?

imo

How can we live stream to Facebook, Youtube or Twitch , they have got Api , but a tutorial for these would be useful

Ibrahim Ali Asghar

What we would have to do if we wanted to make it work through WIFI also?

Steeplap Test

Hello Sir,

I am facing below issue, Please guide me to solve.

Surface view is showing horizontal view and
When mobile moving right side then surface view moving to up side.
When mobile moving left side then surface view moving to down side.
When mobile moving up side then surface view moving to right side.
When mobile moving downside then surface view moving to left side.

Manish Shakya

hello sir how i can develop this project on android studio ?

Rozina Darediya

Hi @ravi8x:disqus sir,

Thank you for this example.

As JWPlayer gives no more testing Self-Hosted Player what should I use as an alternative ?
Can you provide the web application code! OR can you give hints!