Display a video through a gif or png file ?

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Bruno1
Posts: 4
Joined: Sun Dec 05, 2021 6:33 pm

Display a video through a gif or png file ?

Post by Bruno1 » Sun Dec 05, 2021 7:11 pm

Hi,
I'm trying to display a video into the image of a old rounded screen TV.
I thought this would be easy to do but after many trials, the video still dispays in the foreground ("above", instead of "behind" the TV screen).
Any suggestion very welcome !

Klaus
Posts: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Display a video through a gif or png file ?

Post by Klaus » Sun Dec 05, 2021 7:49 pm

Hi Bruno1,

welcome to the forum!

Hm, good question, in earlier version one could check "alwaysbuffer" for the player object,
but I just made a little test, this does not work anymore, the video still "floats" above everything.
Sorry, no brilliant idea in the moment...


Best

Klaus

Bruno1
Posts: 4
Joined: Sun Dec 05, 2021 6:33 pm

Re: Display a video through a gif or png file ?

Post by Bruno1 » Sun Dec 05, 2021 8:13 pm

Hi Klaus,

Thanks anyway for trying.
I thought one of the "ink" proprieties would do the job, but I didn't succeed...

Best,
Bruno1

Bruno1
Posts: 4
Joined: Sun Dec 05, 2021 6:33 pm

Re: Display a video through a gif or png file ?

Post by Bruno1 » Sun Dec 05, 2021 9:06 pm

Thanks to Klaus (you were right : the Buffer option had to be checked !), I finally found something that works fine :

- media : movie, TV (png), button to play the movie.

- Step 1 : Group movie + TV image :
Object > Group Selected

- Step 2 : Tools > Project Browser > Card id # > Group id # > Property Inspector > Ink : blendSrcOver

- Step 3 : TV > Ink : blendSrc

- Step 4 : Button
on mouseup
start player "(movie)"
end mouseup

That's all !
Hope this will help some other users...

Klaus
Posts: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Display a video through a gif or png file ?

Post by Klaus » Sun Dec 05, 2021 9:51 pm

Cool, thanks for sharing!

INKS! Go figure! :-D

Xero
Posts: 152
Joined: Sat Jun 23, 2018 2:22 pm

Re: Display a video through a gif or png file ?

Post by Xero » Mon Dec 13, 2021 4:14 am

Gee! I really do hope you've cracked this! I have been trying to work out how to get something to sit on top of a video for a while. If it's a group situation, I'd be interested to know!
Are you able to post a stack, even if the media isn't included (I can change code to reference other things on my HD)?
XdM

Bruno1
Posts: 4
Joined: Sun Dec 05, 2021 6:33 pm

Re: Display a video through a gif or png file ?

Post by Bruno1 » Wed Dec 22, 2021 12:57 pm

Hi Xero,

Unfortunately, I'm not allowed to post any media on this forum.
If you can, upload a non working stack and I'll try to tell you what is missing.

If you follow the instructions I gave in my last post (checking the "buffer" option), everything should be working fine though.

Bruno1

Klaus
Posts: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Display a video through a gif or png file ?

Post by Klaus » Wed Dec 22, 2021 1:23 pm

Hi Bruno1,

you need to have at least seven postings before you can post links, attachments etc.


Best

Klaus

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”