private static bool IsCaptionStream(IDictionary <string, string> streamAttributes)
        {
            StreamType result;
            string     type    = streamAttributes.GetEntryIgnoreCase(TypeAttribute);
            string     subType = streamAttributes.GetEntryIgnoreCase(SubTypeAttribute);

#if SILVERLIGHT3
            return(SystemExtensions.TryParse(type, true, out result)
#else
            return Enum.TryParse(type, true, out result)
#endif
                   && result == StreamType.Text &&
                   AllowedCaptionStreamSubTypes.Any(i => string.Equals(i, subType, StringComparison.CurrentCultureIgnoreCase)));
        }