10-12-2011 10:36 AM
So I'm working with some code that creates a video player, waits for it to initialize and start, then calls VideoControl.getSnapshot(null) to create an RGB565 preview image for the video.
On OS 6.0 and below, this code works fine, returning a byte with the image data.
However, on OS 7.0, this call returns null.
Are there any new gotchas or bugs/changes in OS 7.0 I should be aware of?
(I've seen this issue on both a real Bold 9900 device and in the 9900 simulator.)
P.S. I get the same results, regardless of whether I call getSnapshot() from a background thread or the UI thread. It also doesn't make a difference whether I pass null or "encoding=rgb565" as the argument. It also doesn't make a difference if try the new AdvancedVideoControl/USE_DIRECT_VIDEO method.
10-18-2011 11:46 AM
I've tested using the Snapshot KB on an OS 7 device and it works as expected:
Could you please try the above sample?
If you continue to experience difficulties then please respond with the snippet of code being used to take the picture and the OS version of the device being tested to reproduce (Options > Device > About Device Versions).