Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #35422
| Newsgroups | comp.lang.javascript |
|---|---|
| Subject | Re: video and cross origin |
| From | "Evertjan." <exxjxw.hannivoort@inter.nl.net> |
| References | <EImdnfkFge0ciNXGnZ2dnUU7-TPNnZ2d@westnet.com.au> <V9WdnS7wF57fsdXGnZ2dnUU7-cvNnZ2d@westnet.com.au> |
| Date | 2018-07-13 09:11 +0200 |
| Message-ID | <XnsA91E5D922560eejj99@194.109.6.166> (permalink) |
Andrew Poulos <ap_prog@hotmail.com> wrote on 13 Jul 2018 in comp.lang.javascript: > On 13/07/2018 12:59 PM, Andrew Poulos wrote: >> While testing locally I found that if the HTML contains a video element >> then the video plays as expected in Chrome. Yet if I dynamically >> recreate the same video element Chrome complains that >> >> "Cross origin requests are only supported for protocol schemes: http, >> data, chrome, chrome-extension, https." This clearly states what you are asking. Do you see "file" as one of the supported schemes? >> The URL for the page and the video source both start with >> file:///C:/Andrew/test/ >> >> The video's source is file:///C:/Andrew/test/sakan.mp4 >> >> Why the cross origin error when both start the same? > > I note that just a text track in a video element within a page eg > > <video src="sakan.mp4" controls preload="auto"> > <track label="English" kind="subtitles" srclang="en" src="sakan.vtt" > default> > </video> > > also throws the cross origin error. > > What really confuses me is that if I create an iframe and within it > create a new video element pointing to a youtube video Chrome happily > plays it. > > Andrew Poulos > -- Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress)
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
video and cross origin Andrew Poulos <ap_prog@hotmail.com> - 2018-07-13 12:59 +1000
Re: video and cross origin Andrew Poulos <ap_prog@hotmail.com> - 2018-07-13 14:36 +1000
Re: video and cross origin "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2018-07-13 09:11 +0200
Re: video and cross origin Ben Bacarisse <ben.usenet@bsb.me.uk> - 2018-07-13 12:10 +0100
Re: video and cross origin "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2018-07-13 14:04 +0200
Re: video and cross origin Andrew Poulos <ap_prog@hotmail.com> - 2018-07-14 18:52 +1000
Re: video and cross origin Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2018-07-15 00:10 +0200
Re: video and cross origin "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2018-07-16 00:55 +0200
csiph-web