PDA

View Full Version : coding for kodi


tubfeared
12-28-2015, 07:57 PM
Trying to get this to work but seems like when streaming vlc or kodi it would not work. The website is http://tv24.vn/livetv. Im trying to stream SCTV HD. Using URLsnooper i get m3u8 http://vtsstr4.sctv.vn/f1betalive2/c009_mb.smil/chunklist_w1449073671_b1192000_sleng.m3u8?t=af4e3c 6aa71ebd2afcdcfb3e6a6ff0b1e51eb6564b2a2f8de6cb35ac 72136667&e=1451357418
I must not be using the correct tool to extract url. Please advise. Thanks.

ColdRain
12-29-2015, 07:22 AM
not sure what your kodi code looks like, but did you try directly playing m3u8 by creating empty file and name it to .strm and play that via Kodi? if that doesn't work, then look at request your browser makes when m3u8 is called (you can use fiddler or inbuild browser developer tools' network tab), and check whether anything else is added to Request like Referer or Cookies. If it does have any of that, then add pipe character after your m3u8 and append whatever is being sent, for example (xxxxx.m3u8.xxxxx|Referer=http://xxxxx) and then try again in Kodi.

tubfeared
01-01-2016, 10:57 AM
What do i look for in the inbrowser network tab? I have added the referrer part but did not work either. the info displayed looks the same when i use urlsnooper.

tubfeared
01-01-2016, 11:15 AM
Using debugger code "pageref": "page_1",
"startedDateTime": "2016-01-01T12:04:28.168-06:00",
"time": 780,
"request": {
"bodySize": 0,
"method": "GET",
"url": "http://vtsstr5.sctv.vn/f1betalive2/c009_mb.smil/chunklist_w941296414_b692000_sleng.m3u8?t=c7b60e2c ae6e0b31c412c460ad737317aa9593179810ffa1bbd20d4e74 ea3889&e=1451670698",
"httpVersion": "HTTP/1.1",
"headers": [
{
"name": "Host",
"value": "vtsstr5.sctv.vn"
},
{
"name": "User-Agent",
"value": "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0"
},
{
"name": "Accept",
"value": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
},
{
"name": "Accept-Language",
"value": "en-US,en;q=0.5"
},
{
"name": "Accept-Encoding",
"value": "gzip, deflate"
},
{
"name": "Referer",
"value": "http://ssl.p.jwpcdn.com/player/v/7.2.4/jwplayer.flash.swf"
},
{
"name": "Connection",
"value": "keep-alive"
}
],
"cookies": [],
"queryString": [
{
"name": "t",
"value": "c7b60e2cae6e0b31c412c460ad737317aa9593179810ffa1bb d20d4e74ea3889"
},
{
"name": "e",
"value": "1451670698"
}

how do i add cookies to the code in order for it to stream externally(VLC or Kodi) without going to website.