2014-07-23, 08:55
(2014-07-21, 10:39)Huuh Wrote: So I checked the http address that the pptv app tries to connect to.
If e.g. I try to connect to the Beijing tv station, it uses this address.
"http://web-play.pptv.com/web-m3u8-300166.m3u8?type=m3u8.web.pad"
If I open up that link using a web browser, it says
Code:"ERROR:live dt failed:http://live2.jump.idc.pplive.cn:8080/live2/d005a79e2c474848a7b316f6f87cecee?playtag=true&key=true&kk=&pre=ikan&type=m3u8.web.pad&chid=300166&&playtag=true"
if I try to ping live2.jump.idc.pplive.cn, it doesn't seem to exist.
If I change the address to "http://web-play.pptv.com/web-m3u8-300166.m3u8?type=ppbox", a m3u8 file is generated.
e.g.
Code:#EXTM3U
#EXT-X-STREAM-INF:PROGRAM-ID=1, BANDWIDTH=400000
http://117.135.161.35:80/live/5/30/d005a79e2c474848a7b316f6f87cecee.m3u8?pre=ikan&type=ppbox&chid=300166&k=
#EXT-X-STREAM-INF:PROGRAM-ID=1, BANDWIDTH=400000
http://112.117.210.22:80/live/5/30/d005a79e2c474848a7b316f6f87cecee.m3u8?pre=ikan&type=ppbox&chid=300166&k=
The problem is "type=ppbox" is wrong, and it should be "type=m3u8.web.pad". Once I change the type, I can use the generated .m3u8 file under xbmc.
I don't know enough exactly what's going on in the default.py file to make some quick edits, but can someone look into it, and simply query instead using type=ppbox, and then replace type=ppbox with type=m3u8.web.pad in the generated m3u8 file? Seems like a simple fix for someone who knows what they are doing.
Thanks.
have test, the method only works for live channels.