I'm trying to load a aac radio stream and play it. For this I'm trying to decode the audio and play it using audiotrack.
I'm trying to use FFMPEG for this purpose. Is it possible to pass in the http url and ask ffmpeg's method av_open_input_file to open the http url? I'm trying to do this but its showing some errors while I'm compiling it.
Has anyone tried this. Is this possible?
Regards,
Hari
I have tested some apps on my droid. See the code for these apps here.
http://code.google.com/p/aacplayer-android/
https://github.com/havlenapetr/android_packages_apps_FMRadio
Which works perfectly well on my droid. Hope this helps.
Related
I am trying to play my own videos in Android Leanback example (https://github.com/googlesamples/androidtv-Leanback) putting in PlaybackFragment.java line 178, in prepareMediaForPlaying(Uri.parse(...)) my own mp4 url and it doesn't work. I have an Source error and the log said that it couldn't access to this url. I know that the url that I am trying works properly, because I put it in a browser and it plays.
Could you help me please?
Try to understand which type of video are you going to play! HLS, DASH, MPEG or of which format!
after you got a basic understanding on them, look for exoplayer supporting video formats, then implement your desired one
I have already integrated VLC player in my android app in Linux environment.But now the issue is when i try to play the YouTube link .It Unable to stream the YouTube URL and the concerned g-data ".3gp" URL.The error is mentioned below.
"http://www.youtube.com/watch?v=oq1gNicFkeM can not be played." in Toast.
Does anyone have any idea on the same?
I have found a temporary solution.I'm not an expert, but this did the trick for me:
Find a website which can download youtube video's (I suggest keepvid.com)
Paste the url of your youtube video into the designated bar and, although we are not downloading anything, hit the Download button.
Now the website gives you a list with different formats for you to choose from. RIGHT-click the one on top (mp4?) and copy the link's adress.
This link can be played in VLC Android and includes your youtube video.
VLC for Android does not support the lua plugins needed to parse the YT URL.
You need to parse the HTML layout yourself (and feed the resulting URL to VLC) or add support for lua plugins to VLC for Android to solve this issue.
i am creating an app for my website which contains lots of wmv video files.
and i want to be able to play them in my app.
i understand that android does not support wmv files so my question is:
is there any way for me to do this without to change all videos format in my site?
any modificatios to my videos via code (java - eclipse) or libraries, any loop holes?
I've been trying to create a site that has streaming video and I could never get Android devices to work with it. Then I found this...
http://www.longtailvideo.com/blog/31646/the-pain-of-live-streaming-on-android
I am trying to build a music app on a android device with GStreamer ported on it. But when I try mp3 url streaming on http, it failed to handle stream (however, it works perfectly fine on Android devices with base Media Framework, OPENCore). So I wanted to know whether GStreamer supports http url streaming, or is there any other way of doing it.
Thanks in advance
Yes gstreamer can play http, you need to check if there are proper http source plugin install, by gst-inspect | grep http.
There is one souphttpsrc element that does that, check if its there.
If found many tips about how to stream from classic url link, but nothing about ftp.
Is it the same way to proced ?
Thanks you.
AL.
Android's media framework only supports HTTP and RTSP for streaming. You will need to download your file and play it back, or use some alternative URL that offers HTTP or RTSP for the media file.
If you are looking for an app in android, there is a player for android which will allow streaming from a ftp server. it's called FIPE Video Player. It's free, neat and stream in high quality.
Update: another brilliant app (again if you are looking for an app) I recommend is ES File Explore, which also allows streaming from ftp server instead of downloading locally and then playing.
Just use VLC for Android and add your FTP as a source.
See : https://play.google.com/store/apps/details?id=org.videolan.vlc&hl=fr&gl=US