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);