Chimeejs / chimee

a video player framework aims to bring wonderful experience on browser
http://chimee.pyzy.net/
MIT License
2.4k stars 201 forks source link

m3u8视频如果不带m3u8的后缀,就无法播放,电脑播放器直接可以播放器 #187

Closed andyhuai closed 5 years ago

andyhuai commented 5 years ago

如代码中的链接,电脑的播放器可以播放,但是chimee就会提示跨域

const chimee = new Chimee({
      wrapper: '#wrapper',
      src: 'http://hc.yinyuetai.com/uploads/videos/common/208A012CE45A945FF5D859C30E09DEB4.flv?sc=75f0a0acf6da89f1&br=731&vid=108361&aid=1083&area=ML&vst=0Y',
      controls: true,
      autoplay: true,
      box: 'hls',
      kernels: {
        hls,
        flv,
      },
    });
    chimee.play();

错误:


Access to XMLHttpRequest at 'http://hc.yinyuetai.com/uploads/videos/common/208A012CE45A945FF5D859C30E09DEB4.flv?sc=75f0a0acf6da89f1&br=731&vid=108361&aid=1083&area=ML&vst=0Y' from origin 'http://localhost:8000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.```
toxic-johann commented 5 years ago

目前看是 hls.js 上也不能播放。需要针对 hls.js 看看。

huangxok commented 5 years ago

这个问题什么时候能解决

toxic-johann commented 5 years ago

hls.js 的问题额。需要具体看 hls.js