Hi, Let say we have a scenario where we want to add a video of the products to our Item Card and the video is from online services such as Youtube. There is already existing Video Module in system app which can help us on that.
First , we add additional field for Video URL to our item table and in Item card page.
On above code, we used Video codeunit to play the Video based on the video URL. One thing you need to take note is the Video URL must be using Embed End point like https://www.youtube.com/embed/Vw5Do0ik_6M not the https://www.youtube.com/watch?V=Vw5Do0ik_6M .
Result will be like this :