locked
Old critical problem is actual for Windows 8.1 Update and Windows 10 TP

    Question

  • Hello,

    my app is in the Windows Store 2 years and all 2 years I am getting reviews with 1 stars with complaining about cache size, which can be 10-30Gb... I have reported about this problem to Microsoft Support at October 2013, but problem is not solved in Windows 8.1 Update and it is amazing... I reproduced problem on Windows 10 TP. More details about problem in my old topic https://social.msdn.microsoft.com/Forums/ru-RU/0a5d2822-9a3f-48ef-a30e-e8826e76b5b5/critical-problem-still-exists?forum=winappswithcsharp Big files with size more than 5Mb are stored and are not deleted, so information in last message is not right.

    Is it so difficult problem to resolve? Please enable option for Windows store apps co they can delete their cache manually. If problem is not resolved in Windows 10 final release, I will write about it to all major IT magazines, because problem is very critical and AFFECT ALL APPS from Windows Store.

    sorry for my English, thank you.

    Thursday, March 26, 2015 4:40 PM

Answers

  • Hello Andev,

    I apologize but I believe that I misunderstood what you were trying to do. Are you connecting to a continuous MP3 file source that does not use an actual streaming protocol? Unfortunately this is not directly supported. This is considered a progressive download scenario. In a progressive download scenario we expect to reach the end of the file. If the MP3 data is being artificially generated it will appear to be a single file of infinite size. The entire file will be cached without control over how much of the file is cached.

    To facilitate websites that transfer MP3 content as a continuous synthesized file for download you will need to create your own MediaStreamSource. You can use the HTTPClient to connect to the content and download it. You can then use the cache stings of the HTTPClient to facilitate the functionality that you are looking for. You will then need to parse the MP3 container In your MediaStreamSource and pass the individual samples downstream.

    The following sample shows how to use the MediaStreamSource to connect to and parse an MP3 content source. AFAIK It does not take into account cache control.

    MediaStreamSource streaming sample

    If you are indeed connecting to a synthesized MP3 file source I deeply apologize for the confusion.

    -James


    Windows SDK Technologies - Microsoft Developer Services - http://blogs.msdn.com/mediasdkstuff/


    Wednesday, May 20, 2015 8:21 PM
    Moderator

All replies

  • Hello Andev,

    This should be resolved. I will check with the devs and see if they can shed any light on this problem.

    Thanks,

    James


    Windows SDK Technologies - Microsoft Developer Services - http://blogs.msdn.com/mediasdkstuff/

    Thursday, March 26, 2015 8:20 PM
    Moderator
  • Hello Andev,

    This should be resolved. I will check with the devs and see if they can shed any light on this problem.

    Thanks,

    James


    Windows SDK Technologies - Microsoft Developer Services - http://blogs.msdn.com/mediasdkstuff/

    thank you,

    I began test on Windows 10 10041, problem is on the attached screenshot, size of package's folder is already around 200Mb

    Friday, March 27, 2015 5:52 PM
  • Hello,

    Keep in mind that the current cache size limit (W8.1) is 95% of free space or 4 GB whatever is smaller. 200 MB is not very large. Do you see the cache reach a size of greater than 4 GB?

    -James


    Windows SDK Technologies - Microsoft Developer Services - http://blogs.msdn.com/mediasdkstuff/

    Tuesday, March 31, 2015 6:22 PM
    Moderator
  • Hello,

    Keep in mind that the current cache size limit (W8.1) is 95% of free space or 4 GB whatever is smaller. 200 MB is not very large. Do you see the cache reach a size of greater than 4 GB?

    -James


    Windows SDK Technologies - Microsoft Developer Services - http://blogs.msdn.com/mediasdkstuff/

    yes, my users report about 10-30Gb size, also for my radio app I do not see any reasons to store radio stream cache even 100Mb, because it is absolutely unnecessary. I think 4 Gb for cache on Windows tablets with 32 Gb SSD is too big. Also users think what it is my trouble that app generates big .dat files, and they think I do not see their reviews and do not do anything to solve problem, it makes me very unhappy.

    • Edited by Andev Wednesday, April 01, 2015 8:02 AM
    Wednesday, April 01, 2015 7:49 AM
  • Update. Few tests on Win10 TP... cache is bigger.

    Saturday, April 04, 2015 8:21 PM
  • problem is not solved in the last 10074 TP build
    Wednesday, May 20, 2015 2:52 PM
  • Hello Andev,

    I apologize but I believe that I misunderstood what you were trying to do. Are you connecting to a continuous MP3 file source that does not use an actual streaming protocol? Unfortunately this is not directly supported. This is considered a progressive download scenario. In a progressive download scenario we expect to reach the end of the file. If the MP3 data is being artificially generated it will appear to be a single file of infinite size. The entire file will be cached without control over how much of the file is cached.

    To facilitate websites that transfer MP3 content as a continuous synthesized file for download you will need to create your own MediaStreamSource. You can use the HTTPClient to connect to the content and download it. You can then use the cache stings of the HTTPClient to facilitate the functionality that you are looking for. You will then need to parse the MP3 container In your MediaStreamSource and pass the individual samples downstream.

    The following sample shows how to use the MediaStreamSource to connect to and parse an MP3 content source. AFAIK It does not take into account cache control.

    MediaStreamSource streaming sample

    If you are indeed connecting to a synthesized MP3 file source I deeply apologize for the confusion.

    -James


    Windows SDK Technologies - Microsoft Developer Services - http://blogs.msdn.com/mediasdkstuff/


    Wednesday, May 20, 2015 8:21 PM
    Moderator
  • Hello, James,

    I don't know format of the streams exactly, I only know these are MP3 or AAC streams with Shoutcast meta data inside them or without it. I don't have such problem in my iOS and Android version of my radio app. Also I have found that not all streams generate big cache, also when I tried to create a universal app and tried to listen to the radio I faced problem that some streams cannot be played in the Windows Phone version, after your reply I suppose that Windows Phone even don't play these problem streams that generate big cache on Windows, but iOS and Android built-in media class can. I hope I will have a free time to implement custom MediaStreamSource. Thanks.

    Saturday, May 30, 2015 11:56 AM