I have web-service which provides me custom format of container which contains H.264 NAL units. I want to play them via MediaElement in silverlight using custom MediaStreamSource.
According this article I need to set private codec data. Web service provides me configCodec but in base64 format (looks like "AUIAHv/hABhnQsAe2gMg7+IhAAADAAEAAAMAMo8WLqABAARozgvI")
So, in other platforms (iOS, Android) all I need is set to extra-data property of codec.
codec->extra-data = info;
But in Windows Phone I should provide this info like 00000001 [SPS] 00000001 [PPS]. So, could someone tell me how I can parse provided private data from web-service to get SPS and PPS values from it?