C# 增加视频缓冲区,暂停下载整个视频

C# 增加视频缓冲区,暂停下载整个视频,c#,video-streaming,blazor,C#,Video Streaming,Blazor,我用Blazor制作了视频流网络 剃须刀页面: <BlazoredVideo EndedEvent="OnEnded" autoplay=true controls=true style="max-width:90%;"> <source src=@streamingUrl /> </BlazoredVideo> 正如你在图片上看到的,它的缓冲区很小 所以当我去慢速上网区时,不能顺利观看视频 我怎样才能让它缓冲更

我用Blazor制作了视频流网络

剃须刀页面:

<BlazoredVideo EndedEvent="OnEnded" autoplay=true controls=true style="max-width:90%;">
  <source src=@streamingUrl />
</BlazoredVideo>

正如你在图片上看到的,它的缓冲区很小

所以当我去慢速上网区时,不能顺利观看视频

我怎样才能让它缓冲更多,并暂停下载整个视频

[HttpGet("{videoId}")]
public FileResult getFileByVideoId(string videoId = null)
{
  if (string.IsNullOrWhiteSpace(videoId))
  {
    return PhysicalFile($"{Config.PhysicalFilePath}/novideo.webm", "application/octet-stream", enableRangeProcessing: true);
  }
  var crawledVideo = dbContext.Crawled.FirstOrDefault(x => x.VideoId == videoId);
  return PhysicalFile($"{Config.PhysicalFilePath}/{crawledVideo.FullPath}", "application/octet-stream", enableRangeProcessing: true);
  //return PhysicalFile(path, MimeUtility.GetMimeMapping(fileName), fileName, true);
}