asset is not null but avAsset always comes up as null. That's why I can't get video url. How can I fix this?
var vOptions = new PHVideoRequestOptions();
vOptions.NetworkAccessAllowed = true;
vOptions.Version = PHVideoRequestOptionsVersion.Original;
vOptions.DeliveryMode = PHVideoRequestOptionsDeliveryMode.FastFormat;
PHImageManager.DefaultManager.RequestAvAsset(asset, vOptions, (avAsset, audioMix, vInfo) =>
{
if (avAsset != null)
{
videoUrl = ((AVFoundation.AVUrlAsset)avAsset).Url.Path;
}
});
await Task.Delay(5000);