Player requests mediaSource multiple times

May 10, 2011 at 7:29 AM

I have an Asp.net application which serves asx's, manifests and video urls to the smf player.

Example:

CurrentPlaylistItem.MediaSource is set to http://myservingapp.com?key1=value1&key2=value2

The application at http://myservingapp.com then returns the appropriate url to the player when the player makes the request to the app.

 

The problem with this is that the player makes 3 requests to the application.

 

My first question is:

Is it possible to control the number of requests? I have tried setting different values on SMFPlayer.RetryDuration and SMFPlayer.RetryInterval, but I have only managed to make the player make even more requests.

 

My second question is:

When the player makes the requests to the app the requests don't look the same.

Below you can see the headers of the three subsequent requests made by the player to the app. The first and third calls look the same, but the second is completely different. Why is that? And is is something that you can control?

The requests:

GET http://myservingapp.com?key1=value1&key2=value2 HTTP/1.1
Host: myservingapp.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: sv-se,sv;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Cookie: ASP.NET_SessionId=3q2tz0e2p1wmj555qpylb1bv

GET http://myservingapp.com?key1=value1&key2=value2 HTTP/1.0
Host: myservingapp.com
User-Agent: NSPlayer/11.08.0005.0000
Accept: */*
Accept-Language: en-us, *;q=0.1
Connection: Keep-Alive
Pragma: xClientGuid={3300AD50-2C39-46C0-AE0A-E84FED41BF1A}
Pragma: packet-pair-experiment=1
Supported: com.microsoft.wm.srvppair, com.microsoft.wm.sswitch, com.microsoft.wm.startupprofile, com.microsoft.wm.predstrm
Pragma: no-cache,stream-time=0,stream-offset=0:0,packet-num=4294967295,max-duration=0
Pragma: LinkBW=2147483647,rate=1.000, AccelDuration=10000, AccelBW=2147483647

GET http://play2.digitalpartners.frankfurt.systest.mine.nu/Content.aspx?target=play&playerID=fda02bc7-c679-47a7-b041-5b24150d458a&challengeID=bb7a6210-5af5-4642-8261-90c3607a7602&pt=4bffa4e3-292b-48cd-a71f-cf53aa24a152 HTTP/1.1
Host: myservingapp.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: sv-se,sv;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Cookie: ASP.NET_SessionId=3q2tz0e2p1wmj555qpylb1bv