03-23-2010 04:18 AM - edited 03-23-2010 04:29 AM
I am using the way of DataSource/SourceStream, following the article "How To - support streaming audio to the media application"
I can get only H264 video stream from remote server, without audio stream or rtsp protocol or any container info.
Can I feed this H264 video stream directly to player? If so, I am not sure which MIME type to use for the function setContentType(). Should it be "video/H264" or any other MIME types? I checked "http://www.rfc-editor.org/rfc/rfc3984.txt" and found that "This type is only defined for transfer via RTP".
Appreciate for your help!
Solved! Go to Solution.
04-14-2010 02:46 AM
Finally I got H264 video stream play fine.
I got my BlackBerry9000(OS5.0) yesterday and tested that H264 video stream can be directly fed to player using InputStream. And the MME type should be "video/mp4".
05-24-2010 02:14 AM - edited 05-24-2010 02:16 AM
Thank you for you replay .
So I just need to send data to player frame by frame ? Can you give me a demo ? email@example.com
05-24-2010 06:02 AM
Hi , I use these codes to play a raw h264 file. but failed!
test.h264 file can be played by vlc.
Please help me!
Class clazz = getClass();
String PHOTO_DIR = System.getProperty ("fileconn.dir.videos");
InputStream is = clazz.getResourceAsStream("/test.264");
player = Manager.createPlayer(is, "video/mp4");