dngh30
April 25, 2023, 10:47am
1
Backdrop: {
x: 800,
alpha: 0.001,
w: (w) => w,
h: 740,
type: Player,
zIndex: 999,
shader: { type: Lightning.shaders.FadeOut, fade: [0, 700, 900, 0] },
transitions: { alpha: { duration: 1 } },
},
VideoPlayer.consumer(this.tag(“Backdrop”));
→ In the _firstActive
(or _init
) lifecycle event , you can pass a reference to the component that should be set as the consumer .
→ seems like this.tag() is not working for consumer in video player
VideoPlayer lightning sdk
1 Like
Read through this:
Welcome to the world of embedded devices and video playback! This guide is part of a larger series on video playback, diving into the unique challenges and solutions for embedded systems. Whether you’re working with Settop Boxes (STBs), Smart TVs, or even a video-capable fridge, this series is designed to help you navigate the complexities of video playback on embedded devices.
In this chapter, we’ll explore the intricacies of video playback on embedded devices, the hardware pipelines, bespoke …
The important thing to note is on some devices the Video plays on 0 index and you can’t change that. You have to use a hole punch to cut through the canvas tag to reveal the video playing.
1 Like
dngh30
April 26, 2023, 8:25am
3
Thank you for your reply. This helps.
jps
May 1, 2023, 12:17pm
4
You can use the Videoplayer Object to set zIndex. Another way can be to use loader() in Videoplayer which has videoEl property.
export const loader = (url, videoEl, options = {}) => {
videoEl.style.zIndex = 2
...
}
1 Like