sagiadinos / garlic-player

Digital Signage Player based on SMIL
https://garlic-player.com
GNU Affero General Public License v3.0
88 stars 17 forks source link

Layout background image / Question #18

Closed adalidortiz closed 4 years ago

adalidortiz commented 4 years ago

Garlic Player support layout background image? Any help about it?

Saludos .

sagiadinos commented 4 years ago

Holá,

There is no support for background images, currently. One possible workaround is: you can try to use two overlapping regions and set the "background" image in the back region as infinity loop.

I implemented backgroundImage and backgroundRepeat functionality for regions yesterday, but the solution is unsatisfying so I did not commit the code.

The problem is that QWidget supports only local files as backgrounds. So background image must downloaded first. If the player starts the SMIL-File with a remote background image for the first time, the download is not completed and background will not shown.

Give me some time to find a more elegant solution. If you can live with local background files I can commit the current code.

adalidortiz commented 4 years ago

I'am wil try with overlays as you say.

Gracias !

sagiadinos commented 4 years ago

I changed some internal calls in the lib and now garlic-player (build v0.3.0.430) support background images and background-repeat attribute as expected. The workaround with a multi zone is not necessary anymore ;)

adalidortiz commented 4 years ago

Hi Mr. Sagiadinos, thanks for the feature. How can i include this feature in my smil index. Can you share the tags?

Gracias !!!

sagiadinos commented 4 years ago

Hi, Here you can find a small demonstration with a multizone playlist and par running images.

https://github.com/sagiadinos/garlic-player/blob/master/tests/data/smil/simple_par_with_backgrounds.smil

adalidortiz commented 4 years ago

Many thanks !!!