I couldn't find any good documentation on StageFright, and I didn't get much by looking through the code. Supposedly StageFright is pretty buggy, so it makes sense to use OpenCore for the time being (maybe Gingerbread will address some of the problems).
I'm sort of surprised that Android doesn't support this stuff out of the box. Maybe they will add support for HTTP Live Streaming or at the very least invent their own live streaming protocol. On Oct 28, 3:11 pm, Kristian <[email protected]> wrote: > Hi, > > Thanks, I am working on some possible solutions now. One idea I have > is to skip MediaPlayer altogheter and write some native-code that will > communicate directly with Stagefright/OpenCore. However, after a quick > look through their source, they seem to not allow me the freedom I > want either. A possible solution would be to feed the raw h264 > bytestream to the media-framework (if possible) and send the frames > back up to the GUI through JNI. > > Btw, do you have any or know of any examples of how to use Stagefright/ > Opencore? > > -Kristian > > On Oct 27, 9:01 pm, Dana L <[email protected]> wrote: > > > > > > > > > There have been a couple of threads on this topic over the past few > > weeks. I've been trying to get this working as well, and no matter > > what I do, there is always a brief pause between segments. I have seen > > a bunch of other suggested approaches on here that also don't work. > > > I've managed to do POCs of video streaming to Android with both Flash > > and via RTSP. Unfortunately, performance isn't as good as MP4 > > playback, even using the same video codec (h264). > > > It seems like the only option that would actually work is to write a > > custom media player in native code. > > The following company has a working solution (they implement Apple's > > HTTP Live Streaming Protocol in a custom player). Performance isn't > > superb (you aren't going to get 720p playback), but it works at a > > reasonable resolution.http://www.nextreaming.com/ > > > If you manage to get this working, please let me know. > > > - Dana > > > On Oct 27, 8:32 am, Kristian <[email protected]> wrote: > > > > Hello, > > > > I am working on an porting an application supporting segmented video > > > streaming to Android. For those who are not familiar with segmented > > > streaming, it is when a complete video is divided into multiple > > > segments. Each segment can then, for example, be encoded at different > > > qualities to support different clients. > > > > Anyway, my problem is that I am not able to get a smooth transition > > > between segments. Currently, the only way I have gotten segmented > > > streaming working, is to write the segments into independent, > > > temporary files, and then load each file into the MediaPlayer once the > > > previous has finished. This causes an interruption in playback between > > > each segment, probably due to the I/O involved. > > > > I have looked around for different solutions, among others, playlists > > > and storing the videos directly in memory. However, none seem to work > > > or be supported by Android. Also, I tried creating two MediaPlayer- > > > objects and do something similar to double-buffering by preparing the > > > next segment well ahead of the previous, but it only made the > > > application unstable. > > > > My question is therefore: Does anyone have any hints, tips or examples > > > for how to do smooth transition between video segments? The segments I > > > am working with are independent, so there is no dependency and they > > > can be viewed as X number of independent video files. > > > > -Kristian -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

