0
我正在嘗試使索引MP4文件的Azure函數。我正在尋找一種方法來讀取索引器所需的配置文件。我已經制作了一個控制檯應用程序,它正在從我的硬盤讀取配置文件,這是完美的。但是,如何讀取Azure函數中的文件?閱讀配置文件索引azure函數中的作業
例如:
EncodeFile(asset, @"e:\index.xml");
public static IAsset EncodeFile(IAsset asset, string configurationFile)
{
IJob job = _context.Jobs.Create("Media Encoder Standard Job");
string MediaProcessorName = "Azure Media Indexer";
IMediaProcessor processor = GetLatestMediaProcessorByName(MediaProcessorName);
string configuration = string.IsNullOrEmpty(configurationFile) ? "" : File.ReadAllText(**configurationFile**);
ITask task = job.Tasks.AddNew("My encoding task",
processor,
**configuration**,
TaskOptions.None);