2
Hi Chirag,
go through with the following thread
http://anthonygiretti.com/2018/01/16/streaming-video-asynchronously-in-asp-net-core-2-with-web-api/
https://mytechnetknowhows.wordpress.com/2017/05/18/asp-net-web-api-and-streaming-video-content/
https://www.strathweb.com/2013/01/asynchronously-streaming-video-with-asp-net-web-api/
http://www.strathweb.com/2013/01/asynchronously-streaming-video-with-asp-net-web-api/[^]
http://stackoverflow.com/questions/20025137/streaming-live-video-from-my-c-sharp-application-to-asp-net-webpage[^]
http://stackoverflow.com/questions/19217434/live-streaming-video-integration-in-c-sharp-asp-net-website[^]
http://stackoverflow.com/questions/2687677/how-to-stream-video-content-in-asp-net[^]
may be these can fulfill your requirement .
Happy Coding
1
Your question is general and the answer depends on the features and the protocol you want to use in your application.
However, you can use LEADTOOLS SDK to stream from capture devices as well as video file. It Also, supports different streaming Protocols like (UDP, TCP, RTSP,etc..).
If you are streaming from a capture device, the code is very small and it will be similar to this:
- captureCtrl1.VideoDevices[0].Selected = true;
- captureCtrl1.VideoCompressors.H264.Selected = true;
- captureCtrl1.TargetFile = @"TCP://10.0.2.127:40000";
- captureCtrl1.TargetFormat = Leadtools.Multimedia.TargetFormatType.MPEG2Transport;
- captureCtrl1.Preview = true;
- captureCtrl1.StartCapture(Leadtools.Multimedia.CaptureMode.Video);
If you want to stream video files, the following online PDF file contains information on how to stream video files:
https://www.leadtools.com/whitepapers/2015/stream-video-files-to-any-device-with-leadools-media-streaming-server.pdf
Also, the following video explains it:
https://www.leadtools.com/videos/playvideo?id=34
