Home > Net >  VLC. DotNet play when emergency video at any time
VLC. DotNet play when emergency video at any time

Time:10-04

Using VLC. The DotNet controls RTSP broadcast, want for emergency video at any time,
There is, for example, emergency video click of a button, the current broadcast images of the video immediately to the local file,
I currently is to create a new object VlcMediaPlayer video store to a local file, can in the case of without creating new VlcMediaPlayer video and broadcast at the same time.

 
Var. Media=playControl SourceProvider. MediaPlayer. GetMedia ();
Var destination=Path.Com bine (" F: \ \ ", a DateTime. Now. ToString (" yyyyMMddHHmmss ") + "mp4");

Var mediaOptions=new []
{
": the sout=# file {DST=" + destination + "} ",
": sout - the display,"
": the sout - all",
": sout - keep
"};
Var recordingMediaPlayer=new VlcMediaPlayer (vlcLibDirectory);
RecordingMediaPlayer. SetMedia (media called simply Mrl, mediaOptions);
RecordingMediaPlayer. Play ();

CodePudding user response:

Ffmpeg look at?
  •  Tags:  
  • C#
  • Related