Azure Media Service -
requirement: upload video(s) on azure portal. generate streaming url after video encoding.
code written in java per page found on website - https://docs.microsoft.com/en-us/azure/media-services/media-services-java-how-to-use
but getting nothing in list when try retrieve list of assetfileinfo listresult assetfiles = mediaservice.list(assetfile.list(asset.getassetfileslink()));
and due assetfileinfo streamingassetfile remains null , can't generate streaming url giving null pointer exception.
return originlocator.getpath() + streamingassetfile.getname() + "/manifest";
please assist. getting below error; java.lang.nullpointerexception @ com.zensar.azure.storage.blob.migration.mediaservices.getstreamingoriginlocator(mediaservices.java:212)
i uploaded mp4 file using azure portal. then, encoded file , got streaming url described in article (https://docs.microsoft.com/en-us/azure/media-services/media-services-java-how-to-use).
the change made commented out following line:
// assetinfo uploadasset = uploadfileandcreateasset("bigbuckbunny.mp4");
and used instead:
listresult outputassets = mediaservice.list(asset.list());
Comments
Post a Comment