mingcheng / chrome-plugin-to-replace-fuck-flash-player

将中国大陆主流视频网站的 Flash 播放器替换为 HTML5 播放器
490 stars 111 forks source link

识别出优酷视频,却无法替换播放器 #7

Closed m13253 closed 11 years ago

m13253 commented 11 years ago

测试地址 http://v.youku.com/v_show/id_XNDIxMTE0Nzg4.html

附控制台:

[HTML5 Player] Found YOUKU video tag, continue. seed.js:68
[HTML5 Player] Finished YOUKU step1 request, continue... seed.js:68

只有这两行

再给一个正常的连接做对比 http://v.youku.com/v_show/id_XNTQ0MDM5NTY4.html

iwege commented 11 years ago

https://github.com/feelinglucky/chrome-plugin-to-replace-fuck-flash-player/blob/master/sites/youku.js#L47

上面这段有问题,在测试地址无法从 spec.data[0]['streamfileids'] 获取 3gphd的字段,只有mp4/hd2,因此这里传入的值是undefined。

kebot commented 11 years ago

直接把UA改成iPad不就可以了嘛?

mingcheng commented 11 years ago

优酷返回了正确的地址,但是却是 404

http://f.youku.com/player/getFlvPath/sid/137031422045614566278_00/st/3gphd/fileid/0300200100516E0B9D877C0247A48FDB96228C-7849-CC34-69D8-C092103F15F2m?K=ca4d49781515e8f124116ca8&callback=_1143829757732

返回

http://119.167.128.148/youku/6571B960934388253C12883161/0300200100516E0B9D877C0247A48FDB96228C-7849-CC34-69D8-C092103F15F2.3gp

很奇怪