Player Object with Alpha Channel - Video Playback with Preserved Transparency
Posted: Mon Feb 26, 2024 9:37 am
Hi all,
does anyone have experience with the playerobject and video content with transparency? My target platforms are Android and iOS. My ultimate goal is to have my videos playback within a hexagonal shape. Think of it like hexagonal tiles in a bathroom. When you click a tile, a video should play within the shape of that tile.
Since the playerobject is always drawn on top of the card, my current thinking is to create the hexagonal shape in my video editing software, export the video with an alpha channel to simulate the hexagonal mask. I have tried with a webM video that can preserve transparency and a H.265 video on Android, the video plays back just fine, but no transparency is preserved. It would be of course much easier if I could draw the mask within livecode itself on top of the video, but I haven't found a solution for that either. Any tips would be welcome.
Thanks,
Oliver
does anyone have experience with the playerobject and video content with transparency? My target platforms are Android and iOS. My ultimate goal is to have my videos playback within a hexagonal shape. Think of it like hexagonal tiles in a bathroom. When you click a tile, a video should play within the shape of that tile.
Since the playerobject is always drawn on top of the card, my current thinking is to create the hexagonal shape in my video editing software, export the video with an alpha channel to simulate the hexagonal mask. I have tried with a webM video that can preserve transparency and a H.265 video on Android, the video plays back just fine, but no transparency is preserved. It would be of course much easier if I could draw the mask within livecode itself on top of the video, but I haven't found a solution for that either. Any tips would be welcome.
Thanks,
Oliver