Azure Blob Storage video works in old account not new one

Robin Tan 61 Reputation points
2020-11-04T17:35:09.37+00:00

Hi, I'm storing mp4 video on azure blob storage, and I can play it on Android fine using https. I created a new azure function (v3) storage, and I can't play it. Old storage account works, new one doesn't.

Same code, same video.
File type is Block Blob video/mp4
Both storage are V1

In logcat, I see this error for the new storage when trying to play

W/MediaPlayer: Couldn't open https://newxx.blob.core.windows.net/xx/xx.mp4: java.io.FileNotFoundException: No content provider: https://newxx.blob.core.windows.net/xx/xx.mp4  

I check azure portal, settings are default and all the same. What else could it be?

37398-image.png

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,570 questions
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Robin Tan 61 Reputation points
    2020-11-04T17:48:37.417+00:00

    So actually , one video file actually works from the new storage. The rest of them don't . All of them play fine from the old storage.

    0 comments No comments

  2. deherman-MSFT 34,841 Reputation points Microsoft Employee
    2020-11-04T22:03:36.347+00:00

    @Robin Tan
    This looks similar to the issues that was submitted here. Can you try the workaround using Set Blob Service Properties to set DefaultServiceVersion = "2011-08-18"? Also can you see if this works in a v2 storage account?

    -------------------------------

    Please don’t forget to "Accept the answer" and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments

  3. Robin Tan 61 Reputation points
    2020-11-05T15:14:13.13+00:00

    Before I do the upgrade, I use this to get the DefaultService version to check

     var credentials = new StorageCredentials        (storageAccountName, accessKey);
     var account     = new CloudStorageAccount       (credentials, true);
     var client      = account.CreateCloudBlobClient ();
     var properties  = client.GetServiceProperties   ();
    
     Console.WriteLine ($"DefaultServiceVersion:{properties.DefaultServiceVersion}");
    

    The old storage returns 2018-03-28
    The new one returns empty string

    0 comments No comments

  4. Robin Tan 61 Reputation points
    2020-11-06T01:55:34.08+00:00

    I updated to latest Storage SDK, same result, I posted a github issue https://github.com/Azure/azure-sdk-for-net/issues/16664

    0 comments No comments