You are not logged in.


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* .