How to custom control of VideoPlayer using lightning/sdk

I’m new in lightning JS, I play a video using VideoPlayer of lightning/sdk, but it does not show control tools like: pause, speed, volume, or quality…

can anyone help me with some examples to add these things to my video, thank you a lot

You need to create the controls, then attach them to the video player.

	static _states() {
		return [
			class PlayButton extends this {
				_handleEnter() {
					VideoPlayer.playPause()
				}
			}
		]
	}
1 Like