Quote:
Originally Posted by Gontran
since a few days I'm facing a very stressful issue with librtmp and python 2.7 (my os is Windows 7).
I'm trying to connect to a stream on justin tv but I've probably an encoding issue with jtv token string.
|
You could have avoided that if you cared to read librtmp manpage. it clearly specifies
Code:
Special characters in values may need to be escaped to prevent
misinterpretation by the option parser. The escape encoding
uses a backslash followed by two hexadecimal digits representing
the ASCII value of the character. E.g., spaces must be escaped as \20
and backslashes must be escaped as \5c.
their are two problems with your code. first correct option is
jtv not
token which is for SecureToken. second escaping
" as
\" is only required on shell or cmd prompt. correctly encoded token may look like this.
Code:
jtv=a6faa3f74e0927e80039bb612522d637530d6395:{\22\20swfDomains\22:\20[\22justin.tv\22,\20\22jtvx.com\22,\20\22xarth.com\22,\20\22twitchtv.com\22,\20\22twitch.tv\22,\20\22newjtv.com\22,\20\22jtvnw.net\22,\20\22wdtinc.com\22,\20\22imapweather.com\22,\20\22facebook.com\22,\20\22starcrafting.com\22],\20\22streamName\22:\20\22jtv_toTs9DzRvV8WPazW\22,\20\22expiration\22:\201332084704.643841,\20\22geo_ip\22:\20\2282.243.172.91\22,\20\22server\22:\20\22lhr01-video3-2\22}