05-07-2009 09:20 AM
Hello
I have a video file here which is raw mpeg4. The following code works and displays the video fine:
FileConnection s = (FileConnection) Connector.open("file:///SDCard/BlackBerry/video.da
InputStream is = s.openInputStream();
byte[] dataBuffer = new byte[1024*256];
is.read(dataBuffer);
ByteArrayInputStream is2 = new ByteArrayInputStream(dataBuffer);
m_player = javax.microedition.media.Manager.createPlayer(is2,
However, if I try and create an inputstream directly, the video flickers horribly:
FileConnection s = (FileConnection) Connector.open("file:///SDCard/BlackBerry/video.da
InputStream is = s.openInputStream();
m_player = javax.microedition.media.Manager.createPlayer(is,"
11-21-2009 11:52 AM
Hi, we are encountering the same issue. Did you find any reason for this problem?
What is the disadvantage of using the first solution?
11-23-2009 09:04 AM
Hi
We changed platform.
Many thanks,
Dave
11-23-2009 09:23 AM
About your first post: The flickering you had, did it always occur at the same time or was it random?
And your working solution: how does it work (for what I understand, your code example only feeds 256K to the Player, that doesn't seem like a large video...)
11-23-2009 09:27 AM
I cannot actually remember the issue as it was a long time ago.
I seem to remember it playing the video fine on emulator, but when moving to real hardware it seemed to ignore PTS values in the stream or some such.
It's all a long time ago, and I had to get something working quickly so I just used a different device.