const ogImage = "https://uksnackattack.co.uk/media/reels/202406/AQOoRBx7GkGkFu115iGacvmDiInMm42lD4KRYR7H1GhWwB1Kzl3puVPPoI4DC4iRn6ZqxhdrOCSR57Q_4CUpnnTvAlKTNVoTYczndN0_18023495672184095.mp4"; // Replace this dynamically with your media URL
const isVideo = ogImage.endsWith(".mp4"); //...