Unable to read file from isolated storage Windows phone 8

Sep 20, 2013 at 8:23 PM
Hi

I'm trying to display captions in windows phone player (player framework). using following code
Microsoft.PlayerFramework.TimedText.CaptionsPlugin cp = new Microsoft.PlayerFramework.TimedText.CaptionsPlugin();
                    player.Plugins.Add(cp);
                    player.IsCaptionSelectionVisible = true;
                    
                    Caption c = new Caption();
                    c.Source = new Uri("isostore:/ClosedCaptions.xml", UriKind.RelativeOrAbsolute);
                    c.Description = "Captions";             
                    player.AvailableCaptions.Add(c);  
if i give source location as "http://smf.blob.core.windows.net/samples/win8/captions/RealPCPride_native_en.xml, i'm able to see closed captions, and i tried to download the same file to isolated storage with name "ClosedCaptions.xml". if i tried with source as shown in the code, not able to see captions. ClosedCaptions.xml is available in isolated storage before setting the source (verified with isolated storage explorer). and tried with UriKind:Absolute but no luck. tried "ms-appdata:///" instead of "isostore:/" also.

Please help me with assigning caption.source path from isolated storage folder.

Thanks,
SB
Sep 20, 2013 at 10:30 PM
Resolved: ms-appdata:///local works fine