NSPlayer User Agent change help?
#1
Question 
Hi, I am updating a plugin for the site livedesi.tv. When you click on a channel there, the site first plays a short stream followed by the actual stream. I did some header sniffing, and found that one of the headers being sent out is NSPlayer...

I was wondering if someone could help me in the right direction. My plugin used to work fine until the site made this change. I am still able to get the stream url, only issue is now it does not play due to the 2 stream issue and the NSPlayer User Agent.

Your guidance will be greatly appreciated.

Thanks.
Reply
#2
append |User-Agent=<urlencodeduseragent> to the urls.
Reply
#3
spiff Wrote:append |User-Agent=<urlencodeduseragent> to the urls.

Thanks for you feedback. I tried the following in my code, but I still get the error message.

Code:
ua = urllib.urlencode({'User-Agent':'NSPlayer/10.0.0.4066'})
strm_url = match[0] + '|User-Agent=' + ua

Here is my log, what could I be doing wrong. Playing wsx file was not an issue before for me, but now it appends this "?MSWMExt=.asf" to the stream url which I assume it gets from redirection. Below is the short log

http://pastebin.com/maabeeb5

Thanks.
Reply
#4
you need to parse the asx yourself, then append to the real url. btw, it somewhat looks like this is mms? it currently won't work there, only with http streams.
Reply
#5
I tried parsing the link, e.g.

Quote:'http://91.121.86.128/data/0ea386d737c403772fb858b74be5a232.wsx|User-Agent=' + urllib.urlencode({User-Agent':'NSPlayer/10.0.0.4066'})

In the body of above, I see below being returned back to me:

Quote:'[Reference]\r\nRef1=http://91.121.86.128/data/0ea386d737c403772fb858b74be5a232.wsx%7CUser-Agent=User-Agent=NSPlayer/10.0.0.4066?MSWMExt=.asf\r\nRef2=http://91.121.86.128:80/data/0ea386d737c403772fb858b74be5a232.wsx%7CUser-Agent=User-Agent=NSPlayer/10.0.0.4066?MSWMExt=.asf\r\n'

I am not sure how I can extract the stream from this, since this is the exact same url?
Reply
#6
lol why working so hard if you know i wont let you ? kinda suxy
Reply
#7
LiveDesi.Tv Wrote:lol why working so hard if you know i wont let you ? kinda suxy

That is not the issue... If you really are from livedesi.tv and do not want us to implement this, I would respect that, and not develop the plugin further.
Reply

Logout Mark Read Team Forum Stats Members Help
NSPlayer User Agent change help?0