Embedded YouTube video doesn't work on local server

前端 未结 5 1740
南旧
南旧 2020-12-16 22:29

I saw many questions like this asked on StackOverflow, but none of them had a working answer. My problem is that I can\'t embed a YouTube video, because a \"This video is no

5条回答
  •  青春惊慌失措
    2020-12-16 22:54

    For some god-forsaken reason, known only to YouTube's engineers, some videos require an HTTP server to play.

    If you're familiar with npm and Node.js, you can follow the instructions here so you can set up an HTTP server and try it out for yourself.

    But please, if you do have the time and willingness, send a bug report about this issue by following the instructions here. This sort of issue should definitely not be happening.

    Best of luck!

提交回复
热议问题