0

BackgroundBitmap Instruction problems



Please provide an example on how to use the BackgroundBitmap instruction. I have my autoplay file with the following:

EnableZones
VideoMode 1920x1080x60i
BackgroundBitmap fondo.bmp
After this I programmed some zones (2 image, 1 video and one text zone

I put the fondo.bmp file on root folder of the SD card. The screen just go black and it does not show any image or video.

Is there any requirement to the type of file you can use?
Is it not working because I have a video zone?

6 comments

  • 0
    Avatar
    tmloving


    Having same issue...  both in HDMI & VGA...
  • 0
    Avatar
    RokuLyndon


    The background bitmap keyword only applies to widgets like clock or rss or text.



    With the 3.1 software, there's a static image you can use that replaces the video layer. So, that means you can have a background image, but you can't play videos over it.



    Here's a playlist using this example:





    EnableZones

    VideoMode 1024x768x75p

    Language Spanish



    DefineZone StaticImage 0,0,1024,768 background.png



    DefineZone Images 320,315,685,400

    transition 14

    brightsign1.jpg

    brightsign2.jpg

    brightsign3.jpg

    brightsign4.jpg

    brightsign5.jpg

    brightsign6.jpg



    DefineZone Text 250,728,750,50 2 1 5 0 0

    ForegroundTextColor 0:0:0

    BackgroundTextColor 255:255:255:0

    String Tel. 902 20 20 30 - <!-- e --><a href="mailto:imaginart@imaginart.es">imaginart@imaginart.es</a><!-- e -->

    String Sus expertos en soluciones audiovisuales e imagen digital
  • 0
    Avatar
    Chris


    Lyndon will there be an upgrade to this in the future where we can use a background image and lay a video over it... this almost seems counter intuitive as it would be nice to create a Picture Frame effect where you could then play videos or images or text/rss in certain areas/knockouts of the background image...



    Thanks,

    Chris
  • 0
    Avatar
    RokuLyndon


    I don't know. But, I will check and see if it's possible, and if so, when. The way this currently works is the image is displayed on the video layer. That's why you can't then play a video over it.



    To get the effect you describe, you could have multiple zones that have parts of the picture frame to make up the template you describe. It's not as clean as being able to play a vidoe over the static image.
  • 0
    Avatar
    ba_hill


    Hi,



    I know it isn't supposed to work but I am able to play a video over a background image on the HD2000. With the autorun.bas from the Monterey Bay Aquarium demo and an autoplay.bsp containing this:



    EnableZones

    VideoMode 1280x720x60p   'Using HD2000's HDMI output



    DefineZone Images 0,0,1280,720

    demo_menu.bmp



    DefineZone VideoOrImages 320,195,640,480

    otter.vob

     

    The otter video plays on top of the menu background. I've tried it with a few other video/background combinations and it works every time. Unfortunately I haven't been able to figure out what's in the autorun.bas that allows this to work. I tried to create a script to play the video on top of the background and can't get it to work. I'm in the process of stripping out the parts of code in the autorun.bas that aren't being used so that I can get something to start from to write my own script as I need to be able to detect and respond to mouse clicks as well as play the video. Is there something special in the autorun that alllows this to work?



    Thanks,



    Brian



    HD2000, firmware version 2.0.94







    "RokuLyndon" wrote:

    I don't know. But, I will check and see if it's possible, and if so, when. The way this currently works is the image is displayed on the video layer. That's why you can't then play a video over it.

    To get the effect you describe, you could have multiple zones that have parts of the picture frame to make up the template you describe. It's not as clean as being able to play a vidoe over the static image.

  • 0
    Avatar
    ba_hill


    Hi,



    I found the answer. Here is my autorun.bas that displays video over a background image on an HD2000. I have no idea if this will work on any other model.



    EnableZoneSupport(true)

    v=CreateObject("roVideoMode")

    v.SetMode("1280x720x60p")    ' HD2000's HDMI output



    r1=CreateObject("roRectangle",0,0,1280,720) 'Create zone for bkgnd image

    i1=CreateObject("roImagePlayer")

    i1.SetRectangle(r1)



    r=CreateObject("roRectangle",320,195,640,480) ' Create zone for video

    v1=CreateObject("roVideoPlayer")

    v1.SetRectangle(r)

    v1.SetViewMode(2)

    v1.SetLoopMode(1)



    i2=CreateObject("roImagePlayer") ' Create IMAGE zone to overlay video

    i2.SetRectangle(r)

    i2.SetDefaultMode(2)



    i1.DisplayFile("demo_menu.bmp") 'Show bkgnd image



    v1.PlayFile("otter.vob") ' Start video

    i2.StopDisplay() ' Stopping overlay image allows video to show through



    p=CreateObject("roMessagePort") ' Loop indefinitely

    msg=wait(0,p)



    Brian
Please sign in to leave a comment.