Dynamic video URL in HTMLSnippet renders but does not play in Mendix
0
I’m trying to play videos in Mendix using an HTMLSnippet with a dynamic URL returned by a nanoflow. My code looks like this: <video width="100%" controls> <source src="${url}" type="video/mp4"> </video> When I use a hard-coded URL, the video plays fine. But when I use a dynamic URL, the video player renders, yet it stays at 0:00 with a black screen. I’ve checked that the URL is correctly populated and it opens directly in a browser without any issues. I do not want to use any video player widget because I need multiple subtitle support, which is why I’m sticking with the HTML <video> tag. Some of my videos are stored as FileDocuments or on S3, and I’m wondering if there are any special requirements for these URLs to be playable in an HTML5 video tag—like CORS settings, signed URLs, or other configurations. I’d appreciate any tips or guidance on making dynamically generated video URLs work properly in Mendix with HTMLSnippet. Regards Reemali
asked
Reemali Patil
1 answers
0
Use HTML Element control and below settings after choosing div as tag name. Source can be online or local.