Friday, May 10, 2024
 Popular · Latest · Hot · Upcoming
12
rated 0 times [  14] [ 2]  / answers: 1 / hits: 40642  / 11 Years ago, tue, july 16, 2013, 12:00:00

I am trying to get this example to work. It works fine when I click the link. But when I try to download the HTML file on my local machine and try the same, it is throwing this error.



Not allowed to load local resource: blob:null/6771f68d-c4b8-49a1-8352-f2c277ddfbd4



The line of code that seems to be causing the issue is this,



video.src = window.URL.createObjectURL(mediaSource);



What this line of code is doing is basically trying to set the source of the video tag media element to the MediaSource object. I have tried various permutations without much luck.



I am using Chrome Version 28.0.1500.72 m, which is the latest stable release.



I would appreciate any pointers.


More From » html

 Answers
73

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



I'm posting this as an answer 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.


[#76960] Monday, July 15, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tyemathewj

Total Points: 484
Total Questions: 107
Total Answers: 111

Location: Equatorial Guinea
Member since Sun, Feb 14, 2021
3 Years ago
;