Getting “Not allowed to load local resource” error while trying to attach a MediaSource object as the source of a HTML5 video tag

岁酱吖の 提交于 2019-12-03 09:30:05

As @dandavis has said, "run it from http: not file".

i'm Posting this as an aswer for the sake of organization.

For starters: Running you project from http means having a http server (such as apache or a simple node http-server) and running your project via http://localhost.

Install http-server globally using npm command(provided you have installed Node.js in your system beforehand). Navigate to your file folder in CMD and type http-server. Your app should run in localhost:8080.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!