This content has been marked as final. Show 2 replies
If you want to add a background image you must add it in the Background Layer, adding a container with an HBackgroundImage has no sense.
You must get and reserve the HBackgroundDevice and set its preference of STILL_BACKGROUND to make it able to have an image as background with a template. After aplying this configuration to the background device it will be able to run its method .displayImage(HBackgroundImage hbi) And you will be able to see the background as soon as move the video layer or reduce it.
Remember that if you are using XletView you will able to use a .jpg or .gif image as the background image but if you're gonna work over a real STB you should use a .mpg file containing an I-frame with the image
I was successful in displaying an i-frame (saved as .mpg file) after creating & loading a HBackgroundImage onto the HBackgroundDevice using HAVi.
However, I get the data bytes from the Heap in real-time. If I try to create an instance of HBackgroundImage from those bytes and try to load it, the imageLoadFailed() gets invoked on the HBackgroundImageListener. Has this something to do with how the bytes were encoded?
Could you help me on this? Thanks very much in advance!