0
I need to show a video in the view using c#. The video up runs, but the progress bar does not work properly. Currently if I move and forward the video or delay the video by progress bar; nothing happens.
So is my view <video id="video" width="100%" preload="none" type="video/mp4" controls></video>
and so is javascript video.src = "@Url.Content("~/")Noticia/[email protected]";
So is my controller
[HttpGet]
public ActionResult VisualizarVideo(int id)
{
byte[] fileData = new byte[0];
var noticia = db.NOTICIAS.Where(e => e.ID == id).FirstOrDefault();
var memoryStream = new MemoryStream(noticia.VIDEO == null ? fileData : noticia.VIDEO);
return new FileStreamResult(memoryStream, new MediaTypeHeaderValue(noticia.VIDEO_CONTENT_TYPE).MediaType);
}```
Face your question has nothing to do with Asp, mvc or c#... is purely html and javascript, present a [mcve]
– Leandro Angelo