Android VideoView works when I disable rtsp authentication from server side. But when authentication is enabled the VideoView fails to play the live stream.
Also tried
rtsp://username:password#host:port/file.sdp =>doesn't work.
But rtsp://host:port/file.sdp => Works when authentication is disable.
I have been working on this issue from past 2 weeks but did not find much help on this.
Or else if any open source rtsp player for android that support authentication will do.
Or any other workaround I can use to achieve this.
Guys please please help.
The Android MediaPlayer class support several media formats.
But regarding the RTSP protocol, the authentification is not supported.
You can find an open issue on the android project and an other interesting post about the problem.
Related
I have extended exoPlayer and have successfully got content on my server run. but problem is i dont have any clue how to integrate youtube without using youtubePlayer. i cant use standalone youtube player because of legal issues.
I have went through youtube data api doc but found little help out there.
any help would be appreciated.
I found this application in github https://github.com/mogo29/Android-RTMP. This app do all what I want. This is demo vide of this http://www.youtube.com/watch?v=pqUUL0QwuMo.
I tried to run this app with oflaDemo (rtmp://172.24.224.34:1935/oflaDemo) but I can't send or recive some voice from my Android.
Could you please help me. How I need configure red5 for working with this app.
Best Regards
I found solution. For make this working properly you should also pass stream name to server.
I'm trying to implement an android app that read video stream via internet however I've got error when playing it. It rejected with error code (1, -4) which look like did not able to support the format.
I tried parse along the URL on the android web browser and it was able to read it and video shown nicely. So the question is, why web browser able to decode the stream but MediaPlayer not? What is the possible solution I can use?
Thx for advice.
Without knowing your test-device, my best guess is that the browser supports 'Flash', which it is using to stream your HLS. Native Android has a lot of problems with streaming HLS
Check out the following link for more information:
http://www.jwplayer.com/blog/the-pain-of-live-streaming-on-android/
In my android application I want to play youtube video in App, not in the default browser. I am trying this for the last some days. Previously I played the youtube video using the following code :
http://code.google.com/p/android-youtube-player/downloads/list
But now this code is not working. It shows "Sorry, this video cannot be played." I have tried all the possible solution mentioned in the different forum for this error. But could not be able to play the video.
That's why I am trying to find out another way to play the video in app. I have tried the RTSP link of a youtube video , it is playing the 3gp video file, but video quality is very poor. This is not acceptable.
I am really fade up to find out good solution to play youtube video in app.
Please help. Any good suggestion is always welcome.
Santanu
Playing YouTube videos in Android was made very simple with the release of this library: https://developers.google.com/youtube/android/player/. The Developer Guide on that page is a good resource on how to use this library. They also provide sample code on how to use the functionality provided by the library. The steps are basically:
Get a developer key
Download the library and include it in your project
Use the library to play videos (hint. use the YouTubePlayerView as a first step)
Please post again if you have any questions or need any code examples.
I play youtube video in videoview and I also face problem regarding video result.
Here some topics regarding this. One my friend suggest me use embeded URL instead of rtsp URL. Its give good result. For Example embeded URL example and how to implement it.
I am developing an application in android Which involves searching nearby locations and globally. I am facing a problem when i try to do live http streaming in android stimulator.What to do with live streaming....Anybody knows can respond how should i proceed....
I have tried the code like url
https://stackoverflow.com/questions/4321682/android-source-code-streaming-media
http://code.google.com/p/rxwen-blog-stuff/source/browse/trunk/android/streaming_audio/#streaming_audio%2Fres%2Fdrawable
Thanks in advance
Tushar Sahni
Hey Tushar use an actual device instead of emulator..Emulator do not run all the videos
Yes watching live streams doesn't work with emulators. better test it on devices with OS at least greater than 3.0. Below that guarantee cant be given as I have observed. And I use standard code using VideoView for live streams. They play but don't run as smoothly as on TV / Web. If you have any ideas, please share with me.
Using Vitamio Plugin had good effects but our company isn't allowing third party interfere so...