seeker_flvsp No 'Access-Control-Allow-Origin' header
fanyer opened this issue · comments
I'm a coder and I have a try to watch the American drama of Friends
in sohu , My case is that
,firstly I just install MAMA2 from chrome webstore while it's unvalid. Then I just want to update the rule to enhance it which's in the MAMA2 source repo. It's a pity that,
even though I deploy a local proxy by webpack dev server, the Json api http://acfunfix.sinaapp.com/mama.php
it still cannot work for sake of no access control allow header. Only Access it directly will give back data contain the term of m3u8
.
This happens each time when the 一环
‘s api is called to get data, where I use MAMA2 in sohu
,douyu
, letv
In fact, videos from the 3 sites should have been able to be parsed and transfered into a native video
tag only if it can run through seeker_flvsp.js
. However, it just cannot ajax rightly each time when I call 一环
's php api server .
In addition, I've explore and test other seeker_*.js
except flvsp
, seems only youku
, tudou
,bilibili
can be reached, while others will eventually lead to call 一环
. Just like the bundled files download from chrome webstore, which you also only apply the 3 sites in webpack. Like below:
//bundle.js line of 78~88
let localhost = 'http://localhost:6060/'
let mediaSource = __webpack_require__(/*! ./mediaSource */ 1);
let Nanobar = __webpack_require__(/*! nanobar */ 5);
let bilibili = __webpack_require__(/*! ./bilibili */ 6);
let youku = __webpack_require__(/*! ./youku */ 8);
let tudou = __webpack_require__(/*! ./tudou */ 12);
let createPlayer = __webpack_require__(/*! ./player */ 13);
let flashBlocker = __webpack_require__(/*! ./flashBlocker */ 14);
let flvdemux = __webpack_require__(/*! ./flvdemux */ 2);
let FastDamoo = __webpack_require__(/*! ./damoo */ 15);
In all , Could 一环
‘s php api(http://acfunfix.sinaapp.com/mama.php
) to be enhanced or your sinaapp(zythum.sinaapp.com/mama2/ps4/
) open source so that I can work it out independently?
ps: By now many sites use https, so I think you'd better update links in MAMA2, so that baiduyun
,douyu
, etc can run normally