Embedded YouTube video doesn't work on local server

前端 未结 5 1741
南旧
南旧 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:46

    This is not Youtube APIs fault. Tried running this on my localhost using "python -m SimpleHTTPServer 8080" and got it running easily. So, I'm concluding that you don't have a proper local web server. Also, "file:///C:/path/to/file.html" will never work because to use any of Google APIs, you need to have access to the internet.

提交回复
热议问题