Does anyone know a way to stream .mp4 video from secure azure blob (via https) to a WPF application.
I generate uri as follows ...
public Uri GetSecureUriForBlob(CloudBlobContainer container, string blobName) { var blockBlob = container.GetBlockBlobReference(blobName); var beforeOffset = new DateTimeOffset(DateTime.UtcNow.AddMinutes(-5)); var afterOffset = new DateTimeOffset(DateTime.UtcNow.AddHours(1)); var builder = new UriBuilder(blockBlob.Uri) { Query = blockBlob.GetSharedAccessSignature( new SharedAccessBlobPolicy { Permissions = SharedAccessBlobPermissions.Read, SharedAccessStartTime = beforeOffset, SharedAccessExpiryTime = afterOffset }).TrimStart('?') }; return builder.Uri; }
I checked that the service version is installed at least "2013-08-15" and that the blob element has the correct set of content types.
I know that the uri format is correct, because I can insert it into the browser, and also use it in the application for storing Windows 8, and the video streams are correct.
However, when I assign the same uri as the source for WPF MediaElement, I get a NullReferenceException in the inner work of MediaPlayer.Open ().
wpf azure azure-storage-blobs
Peregrine
source share