You are not logged in.

Dear visitor, welcome to Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.


Tuesday, May 26th 2020, 5:12pm

videoplayer occurs cross-origin error when playing m3u8

when i play m3u8 live-video,occurs cross-origin error:

Source code

ERROR:SecurityError: Failed to execute 'texImage2D' on 'WebGlRenderingContext':The video element contains cross-origin data,and may not be loaded

but in fact, there is crossdomain.xml on streaming server:

Source code

<cross-domain-policy><site-control permitted-cross-domain-policies="all"/><allow-access-from domain="*" secure="true"/><allow-http-request-headers-from domain="*" headers="*" secure="true"/></cross-domain-policy>

so i really don't know where i got wrong, does anyone have any idea?
thanks in advance!


Tuesday, May 26th 2020, 5:20pm

only on android

the problem just happens on android but ios, i think it's related to chromium *confused* .