Kodi Community Forum
[RELEASE] Justin.tv (Video) Plugin - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Video Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=154)
+---- Thread: [RELEASE] Justin.tv (Video) Plugin (/showthread.php?tid=51981)



- mrdally204 - 2011-08-02

Stacked,
As I'm sure you are aware, the librtmp can be compiled without it being done by the XBMC team. Since the update to support the new handshake 9 (I believe it was 9), a few different people have compiled it for all the different hardware. I guess my point is, if you make it they will come. The new version will undoubtedly be added to a future build of XBMC, and those with a current build, the librtmp will be compiled if it makes sense to do so. Look forward to having Justin back on my XBMC (:


- fouad796 - 2011-08-04

not released yet ?? Sad


- fouad796 - 2011-08-08

Anything yet ?? plz when this will be released ?


- stacked - 2011-08-08

fouad796 Wrote:not released yet ?? Sad

fouad796 Wrote:Anything yet ?? plz when this will be released ?

I'm still waiting for the XBMC librtmp to be updated.Follow this ticket here: http://trac.xbmc.org/ticket/11794. Once it's closed, I will start updating the addon.


- kyotocafe - 2011-08-08

stacked Wrote:I'm still waiting for the XBMC librtmp to be updated.Follow this ticket here: http://trac.xbmc.org/ticket/11794. Once it's closed, I will start updating the addon.

Thanks for letting us know.


- fouad796 - 2011-08-16

looks like it takes damn long to get this librtmp Update done


- tdhz77 - 2011-08-16

Quote:C:\Users\tdhz77\Desktop>rtmpdump -r "rtmp://199.9.255.14/app/jtv_8Ovn9M_b_Sr0bdE
o" --jtv "3b782902426d21ddddc912c6b378ea23d13b49f6:{\"swfDomains\": [\"justin.tv
\", \"jtvx.com\", \"xarth.com\", \"twitchtv.com\", \"twitch.tv\", \"wdtinc.com\"
, \"imapweather.com\", \"facebook.com\", \"starcrafting.com\"], \"streamName\":
\"jtv_8Ovn9M_b_Sr0bdEo\", \"expiration\": 1312252432.6479681, \"server\": \"mia0
1-video2-2\"}" --swfUrl "http://www-cdn.justin.tv/widgets/live_frontpage_player.
r06e3bdc8c06504f00782c169771f76c3b1d41c04.swf" --flv jtv.flv -V


RTMPDump 2.4 git-b627335 2011-7-23
© 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
DEBUG: Protocol : RTMP
DEBUG: Hostname : 199.9.255.14
DEBUG: Port : 1935
DEBUG: Playpath : jtv_8Ovn9M_b_Sr0bdEo
DEBUG: tcUrl : rtmp://199.9.255.14:1935/app
DEBUG: swfUrl : http://www-cdn.justin.tv/widgets/live_frontpage_player.r06e3bd
c8c06504f00782c169771f76c3b1d41c04.swf
DEBUG: app : app
DEBUG: NetStream.Authenticate.UsherToken : 3b782902426d21ddddc912c6b378ea23d13b4
9f6:{"swfDomains": ["justin.tv", "jtvx.com", "xarth.com", "twitchtv.com", "twitc
h.tv", "wdtinc.com", "imapweather.com", "facebook.com", "starcrafting.com"], "st
reamName": "jtv_8Ovn9M_b_Sr0bdEo", "expiration": 1312252432.6479681, "server": "
mia01-video2-2"}
DEBUG: live : no
DEBUG: timeout : 30 sec
DEBUG: Setting buffer time to: 36000000ms
Connecting ...
DEBUG: RTMP_Connect1, ... connected, handshaking
DEBUG: HandShake: Type Answer : 03
DEBUG: HandShake: Server Uptime : 96850052
DEBUG: HandShake: FMS Version : 3.0.1.1
DEBUG: HandShake: Handshaking finished....
DEBUG: RTMP_Connect1, handshaked
DEBUG: Invoking connect
INFO: Connected...
DEBUG: HandleServerBW: server BW = 2500000
DEBUG: HandleClientBW: client BW = 2500000 2
DEBUG: HandleCtrl, received ctrl. type: 0, len: 6
DEBUG: HandleCtrl, Stream Begin 0
DEBUG: HandleChangeChunkSize, received: chunk size change to 4096
DEBUG: RTMP_ClientPacket, received: invoke 259 bytes
DEBUG: (object begin)
DEBUG: (object begin)
DEBUG: Property: <Name: fmsVer, STRING: FMS/3,5,4,210>
DEBUG: Property: <Name: capabilities, NUMBER: 31.00>
DEBUG: Property: <Name: mode, NUMBER: 1.00>
DEBUG: (object end)
DEBUG: (object begin)
DEBUG: Property: <Name: level, STRING: status>
DEBUG: Property: <Name: code, STRING: NetConnection.Connect.Su
ccess>
DEBUG: Property: <Name: description, STRING: Connection succeeded.>
DEBUG: Property: <Name: data, OBJECT>
DEBUG: (object begin)
DEBUG: Property: <Name: version, STRING: 3,5,4,210>
DEBUG: (object end)
DEBUG: Property: <Name: clientid, NUMBER: 361473752.00>
DEBUG: Property: <Name: objectEncoding, NUMBER: 0.00>
DEBUG: (object end)
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking <_result>
DEBUG: HandleInvoke, received result for method call <connect>
DEBUG: sending ctrl. type: 0x0003
DEBUG: Invoking createStream
DEBUG: UsherToken: 3b782902426d21ddddc912c6b378ea23d13b49f6:{"swfDomains": ["jus
tin.tv", "jtvx.com", "xarth.com", "twitchtv.com", "twitch.tv", "wdtinc.com", "im
apweather.com", "facebook.com", "starcrafting.com"], "streamName": "jtv_8Ovn9M_b
_Sr0bdEo", "expiration": 1312252432.6479681, "server": "mia01-video2-2"}
DEBUG: Invoking NetStream.Authenticate.UsherToken
DEBUG: RTMP_ClientPacket, received: invoke 29 bytes
DEBUG: (object begin)
DEBUG: Property: NULL
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking <_result>
DEBUG: HandleInvoke, received result for method call <createStream>
DEBUG: SendPlay, seekTime=0, stopTime=0, sending play: jtv_8Ovn9M_b_Sr0bdEo
DEBUG: Invoking play
DEBUG: sending ctrl. type: 0x0003
DEBUG: RTMP_ClientPacket, received: invoke 37 bytes
DEBUG: (object begin)
DEBUG: Property: NULL
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking <_result>
DEBUG: HandleInvoke, received result id 3 without matching request
DEBUG: RTMP_ClientPacket, received: invoke 190 bytes
DEBUG: (object begin)
DEBUG: Property: NULL
DEBUG: (object begin)
DEBUG: Property: <Name: level, STRING: error>
DEBUG: Property: <Name: code, STRING: NetStream.Play.Failed>
DEBUG: Property: <Name: description, STRING: tv.justin.usher.Authenti
cationUtils$UsherAuthException: ERR002: The token has expired>
DEBUG: Property: <Name: clientid, NUMBER: 361473752.00>
DEBUG: (object end)
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking <onStatus>
DEBUG: HandleInvoke, onStatus: NetStream.Play.Failed
ERROR: Closing connection: NetStream.Play.Failed
DEBUG: Closing connection.

Quote:http://usher.justin.tv/find/liquidhero.xml?type=any

Will twitch.tv (Justin's sister site for watching gamers online) be available. I tried, but their seemed to be errors, but from the example I can't tell exactly what NetStream.Play is...


- divingmule - 2011-08-25

Is rtmpdump still working with justin.tv?

I wrote this python script to get the twit live stream rtmpdump command -
Code:
import urllib2,re
from BeautifulSoup import BeautifulStoneSoup

req = urllib2.Request('http://justin.tv/')
response = urllib2.urlopen(req)
link=response.read()
response.close()
match = re.compile('swfobject.embedSWF\("(.+?)"').findall(link)
swf = ' --swfUrl "'+str(match[0])+'"'
req = urllib2.Request('http://usher.justin.tv/find/twit.xml?type=live')
req.addheaders = ('Referer', 'http://justin.tv/')
response = urllib2.urlopen(req)
link=response.read()
response.close()
soup = BeautifulStoneSoup(link)
token = " --jtv '"+soup.token.string+"'"
connect = 'rtmpdump -r "'+soup.connect.string+'"'
playpath = ' --playpath "'+soup.play.string+'"'
rtmpdump = connect+playpath+token+swf+' --flv "jtv.flv" -V'
print rtmpdump

I get this error with RTMPDump 2.4 git-b627335 2011-7-23
Code:
ERR001: You must supply
a valid token via NetStream.Authenticate.UsherToken
http://pastebin.com/VQGw015C


- jarjar - 2011-08-25

Twitch TV would be amazing if ported


- rogerzees - 2011-08-25

Hello divingmule

check these links.

http://stream-recorder.com/forum/rtmpdump-problem-downloading-justin-tv-t9611p2.html

and latest patch info

http://lists.mplayerhq.hu/pipermail/rtmpdump/2011-August/001547.html

.


- divingmule - 2011-08-25

rogerzees Wrote:Hello divingmule

check these links.

http://stream-recorder.com/forum/rtmpdump-problem-downloading-justin-tv-t9611p2.html

and latest patch info

http://lists.mplayerhq.hu/pipermail/rtmpdump/2011-August/001547.html

.

Thanks got it sorted.


- WildBill - 2011-08-26

Question since Justin.tv is not working is there anyway we can get it to play with a .strm or .xml file?


- divingmule - 2011-08-26

WildBill Wrote:Question since Justin.tv is not working is there anyway we can get it to play with a .strm or .xml file?

I was wondering the same thing. I haven't been able to figure out how to format the --jtv user token for xbmc.

I got rtmpdump working, so I'm just pointing xbmc to the output file.


- docmichael - 2011-08-26

Does that mean you can update it soon then divingmule? If so that would be awesome and would be much appreciated!


- divingmule - 2011-08-26

docmichael Wrote:Does that mean you can update it soon then divingmule? If so that would be awesome and would be much appreciated!

No, I was just looking to get the TWiT live stream for the twit add-on and a way to watch a few streams untill the add-on gets updated.