Supported Streams for PlaylistItem's

Mar 23, 2012 at 2:49 PM
Edited Mar 23, 2012 at 2:54 PM


I was hoping that the PlaylistItem class (on WP7) would allow me to specify a stream which was retrieved via my own HttpWebRequest. However, i'm finding that this doesn't appear to work. I'm guessing that it has the same limitation as the standard MediaElement which only allows streams from Isolated Storage?

The reason i'm trying to do this is to basically control the HTTP Headers (e.g. User-Agent, etc) and Cookies when the player is accessing the associated URI's. I thought it I could perform this manually for the player, I could get a lot more control over the request, simply giving the response stream to the player. Is any of this possible?

Thanks in advance!

Apr 27, 2012 at 3:52 PM

After various searching I see that i'm not the only person haven't problems attempting to control the User-Agent used to request URLs. I attempted to register my own prefix handler to the WebRequest (here), however this is not called/used by the underlying (SmoothStreaming)MediaElement...

Looking at the source of the SMFPlayer, does anyone know of any reason why the MediaElement.CookieContainer is not exposed via the Playlist? It appears that it could be supported and is just omitted. If this was supported for WP7, I would immediately swap over to this framework...

Jun 2, 2012 at 2:05 AM

Ian, you should be able to access this by setting it directly on the SmoothStreamingMediaElement just before it makes the first web request. The solution is not pretty, but I expect it to work. Please refer to the following thread for a way to access the SSME just before its source is set:

Sep 2, 2012 at 11:16 PM

Also see the Smooth Streaming Cache plugin for SMF available at that might have code to help with that