Is there any way to play a video inside a custom shape and not inside a rectangle? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 8

Is there any way to play a video inside a custom shape and not inside a rectangle?

I know I can mask it in my videosoftware but I'm looking for a smart online solution if possible at all. Any hint guys?

28th Jun 2017, 2:10 PM
John Clapper
John Clapper - avatar
2 Answers
+ 7
you can overlay your video with a transparent canvas. draw on canvas the sections you want to cover your video with. Video controls may not be usable but you could hide them and create custom controls in your canvas. Use css for the overlay. see this simple overlay example. https://code.sololearn.com/WrBG0rrlpUN9/?ref=app
28th Jun 2017, 2:37 PM
seamiki
seamiki - avatar
+ 8
Thanks a lot, that helps. 👍
29th Jun 2017, 9:20 PM
John Clapper
John Clapper - avatar