My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 83: Allow apps to supply alternate components to the media streaming subsystem.
67 people starred this issue and may be notified of changes. Back to list
Status:  Assigned
Owner:  ----


Sign in to add a comment
 
Reported by wink.to....@gmail.com, Jan 24, 2008
If I understand correctly, at the moment audio/video steaming models only
allow data to be sourced from files. There are many use cases where the
application would like to supply the data without creating a file. A simple
example would be playing video/audio from a server over the network.
Although this might be so obvious that a few protocols could be supplied in
the core, there are many others that could be proprietary or need
specialized code.

Other components may also need to be enhanced or replaced such as support
for different renderer's or even different types of data sinks in the
streaming subsystem. But at a minimum the source component must be
replaceable with the application being able to supply a stream of buffers
and a way to select which renderer is needed.
Jan 25, 2008
#1 ankurja...@gmail.com
well it is true .but is it possible of streaming a video file from server using
android..i tried a lot but still many problems are there...
Jan 25, 2008
#2 morri...@gmail.com
This Issue has been reviewed and accepted.
An engineer will be assigned to work on it according to its priority.
Status: Reviewed
Jan 28, 2008
#3 ankurja...@gmail.com
Well Thank you for ur response...but how much time it will take to resolve that
issue...i really need a sort of guidance in that direction...well thanks again..........
Jan 29, 2008
#4 kevindor...@gmail.com
Could anyone confirm me if Audio Streaming is currently possible in Android latest
version or not.Audio streaming and listening means the something like streaming music
from shoutcast itself.please help me out in letting know this  i'm working on this
and not able to find a solution for this.If anyone has the code..please share it with
me in my mail id..
its kevindorson@gmail.com

Jan 29, 2008
#5 ankurja...@gmail.com
hi kevindorson

i made a sample application of streaming by which i can stream 3gp file from server .
the sound is audible and buffering is 100% . but i cann`t able to display video of
that file.. i am send code to u at ur gmail.u just try it and if possible solve it....ok
Feb 4, 2008
#6 kevindor...@gmail.com
Ankur, have u ever tried streaming from a Streamign servers wherein We Actually
require the concept of Streaming.Servers Like Aol music, Shoutcast servers which r
more popular wherein we can continuously hear Music.
Your Model of streaming actually workd only for a Statically kept file in a server
wherein there is no streaming.Try out streaming from streaming servers.I'm also
working on the same..but found till now No support is  available yet.If u find
something..Please let me know


Feb 5, 2008
#7 eocanha
I'm also very interested in this issue being solved. If at least the Android SDK
source code was available, we could try to find out how the MediaPlayer works inside
and try to solve the problem and suggest a patch.
Feb 5, 2008
#8 ankurja...@gmail.com
Hi Kevin,

The link that I have used in the code is of some streaming server, becuase:
1. The code written is for receiving streamed data, and play it asynchrounously.
2. I am able to get the audio playing even before complete file gets streamed, i.e.,
when I analyzed the logs of android, I was seeing audio being played even when buffer
status was 15-20%.
Is there any way to find out if the URL I used was not of a streaming server?
Feb 7, 2008
#9 qinmin...@gmail.com
Hi, Ankur
  I think you are playing a file through a URL rather than a stream, such as .m3u,
playlist, icecast. You can try to open that url in ur browser. Normally your browser
will try to download that file or play that file. In that case, you can see the file
size or sth. like that. However, for a pure audio stream, you cannot view the file
size or download the file, coz the browser will continuously play it.

Min
Feb 7, 2008
#10 ankurja...@gmail.com
Hi qinminusc,
             Actually what i did,just specify URL for particular file then make a
connection and perform buffering thru code.means suppose URL is
http://www.daily3gp.com/vids/3.3gp.   So make connection with it and Stream it.
What u think ,is it the proper way. Give me some ideas..

Well Thanks in Advance. 
Feb 20, 2008
#11 newel...@gmail.com
I just have to chime in on this feature request.  I've written classes to parse out
meta data from a shoutcast stream and just need a way to send my buffered audio
stream  directly to the media player.  I think many developers are looking for a
similar solution from reading the groups online.
Mar 31, 2008
#12 ankurja...@gmail.com
Well I submitted comment for Video Streaming at 25 jan so i would like know tht what
is current status of tht issue.
Any new release abt this topic is available.How much time it will take to resolve it..
Well inform abt it..

May 15, 2008
#13 susama.c...@gmail.com
Hi,
Right now I am working for Android Browser applications like Downloading a file from 
a link and streaming the data (Audio/Video Streaming).
I am a beginner in this aspect.
So can u please post me the Source Code for Download a A/V File and stream the data.

Thanks in advance,
Susama
Jun 24, 2008
#14 patel.ne...@gmail.com
Hi all,

i gone thru above discussion.. so at last what is conclusion is ?
can we have support of audio / video streaming feature available with latest release
of android SDK. or not ?



Nov 2, 2008
#15 martin.v...@gmail.com
Greetings, I have implemented a simple streaming server which is able to read mp3/ogg
files supplied in an InputStream and pass it into the MediaPlayer. The code may be a
bit obscure as it is tailored for my needs, however you are welcomed to find an
inspiration :) Just checkout the code [1] and search for the StreamerServer class.

[1]: http://ambientmp.sourceforge.net/source-repository.html
Nov 21, 2008
#16 JGav...@gmail.com
Hi all,

Do you know if it is possible to support a MP4 video streaming ?

Dec 5, 2008
#17 alpesh.h...@gmail.com
Hi Ankur, i m new in android development and working on audio streaming.so can u send
me the code in my email id pls...
thnks a lot. :)

my email id is alpesh.harsoda@gmail.com

Regards,
Alpesh Harsoda
Feb 6, 2009
#20 jbq+legacy@google.com
(No comment was entered for this change.)
Labels: -Type-Defect Type-Enhancement
Apr 14, 2009
#21 forw...@mail.ru
Hi All,

I have a couple questions regarding to audio streaming/progressive download over
HTTP. Could you please help me?

1. MediaPlayer supports progressive download according to the developer guide from
this link http://developer.android.com/guide/topics/media/index.html ("If you're
passing a URL to an online media file, the file must be capable of progressive
download."). As far as I understand progressive download means media playback during
download process with saving media file to file system(SD card or internal FS) after
the downloading is finished (if it's file, not a stream in the passed URL). 
So, I tried to set the following URL: setDataSource
(http://84.204.154.49/mmapi/music.mp3 Playback is fine, but the file isn't saved to
SD card or internal phone FS. Can MediaPlayer saves media content to file system
after downloading is completed? Is there a way to turn on such capability?


2. Does MediaPlayer support HTTP streaming? I tried to use
http://217.10.32.134:8129/ultrafan128.mp3 http://62.32.66.180:8800 also AMR, AAC
audio stream over HTTP on the local server, but playback does not work. For example,
RTSP streaming works fine with AMR and AAC. 


Thanks,
   Alexander
May 11, 2009
#22 jayshild...@gmail.com
I tried streaming a video to a file and then playing it using the VideoView by
calling setVideoPath(). It kept on giving me cannot play file. I was able to play the
same file when it was saved in the sdcard is there a issue of files which are made by
streaming videos ?? The video is of .3gp format. If any1 has got any suggestions
please let me know.

Thanks in Advance,
Jayshil Dave
Jun 7, 2009
#23 miland...@gmail.com
What is the situation with android and shoutcast?  i saw a posting from an android
employee saying it should be out soon (which was in feb 2009).  

If there is support for streaming audio (i.e .pls files) please guide me in the right
direction.  

Very vague documentation out there on streaming audio from a server like shoutcast.

does anyone have any source code to send (with instructions to use) so I can try and
dig it up?

cheers,
milan
milandave@gmail.com
Jun 23, 2009
#25 charmed....@gmail.com
Does anyone know any source codes for a shoutcast streamer or any simple online radio
app (like nagare)? I already have the nagare source code but it's so buggy so I can't
even run it in my emulator. I also have ambient source code but I wanted a simpler
shoutcast streamer like nagare. thanks.

Aug 24, 2009
#26 jbq+legacy@google.com
(No comment was entered for this change.)
Labels: Component-GfxMedia
Nov 2, 2009
#27 dileepku...@gmail.com
Hi,

I have gone through the discussion above unable draw a conclusion whether is it
possible to play audio/video from http/rtsp. I have tried to play from local file
system and no issues with that. But I have problem when I give  setDataSource("http
or rtsp url");

Immediate reply with a conclusion will be a relief for my mind

Thanks & Regards
Dileep Kumar
email: dileepkumar.renintech@gmail.com
Nov 8, 2009
#28 MarlonNi...@gmail.com
yes, it is possible to play both audio and video from an http and rtsp server.

however, streaming through an rtsp server is not supported by the emulator (cupcake
version).
Nov 8, 2009
#29 dileepku...@gmail.com
I am able to play media through http. But not able to play it from an rtsp source....
I get an alert saying sorry this video cannot be played. As you are saying that 
streaming through rtsp server is not supported by the emulator but why is it like 
that.

Thanks & Regards
Dileep Kumar
email: dileepkumar.renintech@gmail.com

Nov 12, 2009
#30 luce...@gmail.com
Has anyone been able to play an audio .pls pointing to shoutcast?  It just hangs on
the prepare() call when I try it.  (I tried prepareAsync() too - however no data is
downloaded from the shoutcast server)   Not sure why - is it because the Shoutcast
server isn't recognizing the user-agent that the mediaplayer sends, or am I missing
something else?

Thanks,

lucener@gmail.com 
Nov 17, 2009
#31 dschla...@gmail.com
Can Android handle live http streaming ? How about adaptive streaming where the bit
rate changes similar to other devices like the Iphone.
Nov 18, 2009
#32 dhaiwat....@gmail.com
Hi All

any one say surely that android support "live video streaming" or not?
if yes than how can u able to do that?

Regards,
Dhaiwat Bhavsar 
Nov 26, 2009
#34 jwusch
Well, I know it is bad to point to a porn example, but as usual, they lead the way in 
video technology.  Go look at the website http://mobile.pornhub.com in your android 
browser.  They have streaming video working to the android.  Not sure how they are 
doing it, I am investigating it myself for a video tutorial project I am working on.  
Jan 4, 2010
#35 michael....@gmail.com
live video streaming using rtsp as a transport protocol is working using VLC as a
streaming server. I got this running using EyeTV -> CyTV -> VLC -> DSS in my LAN. DSS
is not necessarily needed. 
The backside is that the Android Video player is only supporting UDP and not TCP
fallback. UDP is not playing nice with NAT which means I cannot stream from my LAN
via 3G to my Droid.
I haven't found any way for adaptive or progresive http streaming which would solve
my NAT issue.

vc -v http://192.168.2.106:8002/stream/live -I dummy
--sout='#transcode{soverlay,ab=42,samplerate=44100,channels=1,acodec=mp4a,vcodec=h264,width=848,height=480,vfilter="canvas{width=848,height=480,aspect=16:9}",fps=25,vb=768,venc=x264{vbv-bufsize=500,partitions=all,level=12,no-cabac,subme=7,threads=4,ref=2,mixed-refs=1,bframes=0,min-keyint=1,keyint=50,trellis=2,direct=auto,qcomp=0.0,qpmax=51}}:gather:rtp{mp4a-latm,sdp=rtsp://0.0.0.0:5557/stream.sdp}'
Mar 23, 2010
#36 plau...@gmail.com
reading this issue, the same kind of problems I had. I made an audio streaming
application, and all right, I'm playing on demand. I made it with an array of Files
(3 parts). The problem now is I tried to develop a video streaming application and
when I downloaded  the data (video) in parts with Inputstream I lose the format (with
audio this portion keep the format), but with a video (3gp or mp4) lose it. How Do i
do to keep the format or reformat that portion of video?.... any help i will
appreciate you. 

Note: I'm trying only a different way to streaming with a media player class. I know
a little about the rtsp and videoview problems (sometimes).
May 12, 2010
#37 kdroi...@gmail.com
Hi Ankur

I am developing app for audio,video streaming. can you send me your code. as i do 
not reincarnate the wheel.

thanks
Kal
Jun 9, 2010
#38 aamer.78...@gmail.com
Hi Ankur & all;
I have just joined the community. I am new to android. I am trying to make Video Streaming Server and client for android 2.1. Can anyone share me the code so that I can take some idea. Secondly, any refernce stuff in this regard (specially about streaming with your own implemented Server on android)

My email is: 
aamer.786pk@gmail.com
Sep 25, 2011
#39 iayde...@gmail.com
can you send me your code www.rokettube.co
Oct 2, 2011
#40 sinmadi...@gmail.com
Android has had some difficulties with this for sure. There are a few good examples pointing to some quality websites but another one with a great mobile option is http://www.passionfriends.com and it seems to have been working great. Anyone know when the same compatibility will be available for blackberry users?
Oct 25, 2011
#41 007SALMAN007
can you sen me the code http://www.humourbook.blogspot.com
Nov 6, 2011
#43 harah...@gmail.com
Well, I know it is bad to point to a porn example, but as usual, they lead the way in 
video technology.  Go look at the website http://me.theamateurzone.info in your android browser.  They have streaming video working to the android.  Not sure how they are doing it, I am investigating it myself for a video tutorial project I am working on.  
Nov 30, 2011
#44 burakme...@gmail.com
Do you know if it is possible to support a MP4 video streaming ?
Go look at the website http://www.proflightsimulatornews.us  in your android browser.
Dec 24, 2011
#45 ufos...@googlemail.com
Hello,

do you know how it is possible to support a MP4 video streaming for http://www.free-porn.info ?
Dec 28, 2011
#46 freedoo...@gmail.com
Hi I think so!
I have done it on http://www.yteenporn.com and its working.
Check with your android or iphone..
Apr 18, 2012
#47 harah...@gmail.com
Well, I know it is bad to point to a porn example, but as usual, they lead the way in 
video technology.  Go look at the website http://www.nudeamateurgirls.net in your android browser.  They have streaming video working to the android.  Not sure how they are doing it, I am investigating it myself for a video tutorial project I am working on.  
Check with your android or iphone..
Jun 19, 2013
#48 jbq@android.com
(No comment was entered for this change.)
Status: Assigned
Oct 15, 2013
#49 esteba...@gmail.com
As in #35 I'm trying to receive video stream on TCP instead of UDP.
Are there a way to tell mediaplayer to request for it? As I understood this is something that the rtsp client should ask for.
"rstp://user:pass@10.10.90.200:554/Streaming/Channels/101" works fine as the parameter for the setDataSource()  method from the class mediaplayer but stream servers always answer using UDP

Regards
Esteban Castro
estebanc2@gmail.com
Sign in to add a comment

Powered by Google Project Hosting