Thanks Anthony, I tried this but it not working, sadly.
But I have some logs from hls.js:
[Log] [log] > attachMedia (clappr.js, line 21793)
[Log] [log] > media source opened (clappr.js, line 21793)
[Log] [log] > loadSource:https://cdn.api.video/vod/vi250QFTfceARvdlDrUPsYK4/token/0ee2ee12-3dd3-48ca-bced-597389d6a17c/hls/manifest.m3u8 (clappr.js, line 21793)
[Debug] [debug] > Loading playlist of type manifest, level: 0, id: null (clappr.js, line 21793)
[Debug] [debug] > Calling internal loader delegate for URL: https://cdn.api.video/vod/vi250QFTfceARvdlDrUPsYK4/token/0ee2ee12-3dd3-48ca-bced-597389d6a17c/hls/manifest.m3u8 (clappr.js, line 21793)
[Log] [log] > trigger BUFFER_RESET (clappr.js, line 21793)
[Log] [log] > manifest loaded,4 level(s) found, first bitrate:440000 (clappr.js, line 21793)
[Log] [log] > 1 bufferCodec event(s) expected (clappr.js, line 21793)
[Log] [log] > startLoad(-1) (clappr.js, line 21793)
[Log] [log] > switching to level 0 (clappr.js, line 21793)
[Debug] [debug] > Loading playlist of type level, level: 0, id: 0 (clappr.js, line 21793)
[Debug] [debug] > Calling internal loader delegate for URL: https://cdn.api.video /vod/vi250QFTfceARvdlDrUPsYK4/token/0ee2ee12-3dd3-48ca-bced-597389d6a17c/hls/360/manifest.m3u8 (clappr.js, line 21793)
[Log] [log] > main stream:STOPPED->IDLE (clappr.js, line 21793)
[Log] [log] > audio tracks updated (clappr.js, line 21793)
[Log] [log] > subtitle tracks updated (clappr.js, line 21793)
[Error] Origin http://localhost:8080 is not allowed by Access-Control-Allow-Origin.
[Error] XMLHttpRequest cannot load https://cdn.api.video/vod/vi250QFTfceARvdlDrUPsYK4/token/0ee2ee12-3dd3-48ca-bced-597389d6a17c/hls/360/manifest.m3u8 due to access control checks.
[Error] [error] > 0 while loading https://cdn.api.video/vod/vi250QFTfceARvdlDrUPsYK4/token/0ee2ee12-3dd3-48ca-bced-597389d6a17c/hls/360/manifest.m3u8
(fonction anonyme) (clappr.js:21793)
readystatechange (clappr.js:22978)
(fonction anonyme)
[Info] [info] > A network error occured while loading a level-type playlist (clappr.js, line 21793)
[Warning] [warn] > level controller, levelLoadError, retry in 1000 ms, current retry count is 1 (clappr.js, line 21793)
[Warning] [warn] > level controller, levelLoadError: switch to 3 (clappr.js, line 21793)
[Error] Failed to load resource: Origin http://localhost:8080 is not allowed by Access-Control-Allow-Origin. (manifest.m3u8, line 0)
[Debug] [debug] > call to loadLevel (clappr.js, line 21793)
[Log] [log] > Attempt loading level index 3 with URL-id 0 (clappr.js, line 21793)
[Debug] [debug] > Loading playlist of type level, level: 3, id: 0 (clappr.js, line 21793)
[Debug] [debug] > Calling internal loader delegate for URL: https://cdn.api.video/vod/vi250QFTfceARvdlDrUPsYK4/token/0ee2ee12-3dd3-48ca-bced-597389d6a17c/hls/1080/manifest.m3u8 (clappr.js, line 21793)
[Error] Origin http://localhost:8080 is not allowed by Access-Control-Allow-Origin.
[Error] XMLHttpRequest cannot load https://cdn.api.video/vod/vi250QFTfceARvdlDrUPsYK4/token/0ee2ee12-3dd3-48ca-bced-597389d6a17c/hls/1080/manifest.m3u8 due to access control checks.
[Error] [error] > 0 while loading https://cdn.api.video/vod/vi250QFTfceARvdlDrUPsYK4/token/0ee2ee12-3dd3-48ca-bced-597389d6a17c/hls/1080/manifest.m3u8
(fonction anonyme) (clappr.js:21793)
readystatechange (clappr.js:22978)
(fonction anonyme)
[Info] [info] > A network error occured while loading a level-type playlist (clappr.js, line 21793)
[Warning] [warn] > level controller, levelLoadError, retry in 2000 ms, current retry count is 2 (clappr.js, line 21793)
[Warning] [warn] > level controller, levelLoadError: switch to 2 (clappr.js, line 21793)
[Error] Failed to load resource: Origin http://localhost:8080 is not allowed by Access-Control-Allow-Origin. (manifest.m3u8, line 0)
I don’t know if it can help you to undestand the issue.
Thanks,
Sylvain