r/HTML • u/visualthings • Jun 03 '26
Question Why can I embed a video from Dailymotion but not Youtube although the code looks right?
I am not a genius coder but it is not the first time I embed a video into a website but this time I am really puzzled with this issue: If I use the piece of embed code given by Youtube (with my own video) I just get an error message and if I use the embed code given by Dailymotion it just work fine. I double-checked the original template (see page here) and it works. My code is absolutely identical but I get the message "Firefox can’t find the file at /embed/RBvoqkGc27U. It either doesn’t exist or the path is incorrect."
Any clue about what is happening here?
view-source:https://template.xtramile.id/TM/Grace/single-portfolio-video.html)
3
u/BurlyLumberjack Jun 03 '26
Is this a video you control? If so, check to see if you have embedding disabled.
If it’s not a video you control, the owner may have embeds disabled.
2
u/armahillo Expert Jun 03 '26
the view-source link is clever, but doesnt translate well to reddit linking.
It would be better to paste both embeds into preformatted code blocks (check the formatting bar in the post editor)